[SDL] SDL_KEYDOWN event on mouse movement

James Barrett xucaen at gmail.com
Mon Dec 17 08:36:39 PST 2007


Sorry, my logic was faulty. When a mouse event occurred,  my code was
allowing it to fall thru a switch statement. Ugh.

Jim

David Olofson wrote:
> On Monday 17 December 2007, James Barrett wrote:
>   
>> Hi, I am finding that moving the mouse over an sdl screen is causing
>> the SDL_WaitEvent function to detect an SDL_KEYDOWN event. Has
>> anyone else seen this?
>>     
>
> No, and I'm quite sure that would have confused some of my code...!
>
> Do you have a minimal code example that demonstrates this?
>
>
> //David Olofson - Programmer, Composer, Open Source Advocate
>
> .-------  http://olofson.net - Games, SDL examples  -------.
> |        http://zeespace.net - 2.5D rendering engine       |
> |       http://audiality.org - Music/audio engine          |
> |     http://eel.olofson.net - Real time scripting         |
> '--  http://www.reologica.se - Rheology instrumentation  --'
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>   



More information about the SDL mailing list