[SDL] Well, me again having problems with the Key Events...

Manuel García Cabrera manugarciac5 at yahoo.com.ar
Tue Jun 12 19:02:13 PDT 2007


Let me explain what I'm doing. I'm doing a VNC client. I have two
threads, one that is constantly showing images that are received from
the net, and other that is constantly looking for mouse and keyboard
events (quit events too, of course). Well, I can show you the code in
the events thread, but I don't see how it would help. If I put a printf
inside the case SDL_KEYDOWN it prints even when I released the key...


Ryan C. Gordon escribió:
>> It's really driving me crazy... Can it be that it's sometimes missing
>> the KEYUP event? Because I really don't get it.
> 
> We're really going to need to see the code that causes the issue...my 
> experience has been that code that looks like this...
> 
> 		case SDL_KEYDOWN:
> 			//Some code
> 		...
> 
> ...tends to have a bug in the "..." or "//Some code" part.
> 
> If you can either post your actual code, or a small test case that 
> reproduces the problem, we can be more helpful.
> 
> --ryan.
> 
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> 



More information about the SDL mailing list