[SDL] Key press events
William Brodie-Tyrrell
william at brodie-tyrrell.org
Wed Nov 1 02:18:44 PST 2006
Does your window have the focus? If not, it won't get any events at
all. Perhaps the shell still has focus.
Try grabbing the input:
SDL_WM_GrabInput(SDL_GRAB_ON);
in which case you should get everything. Make sure you have a way to
exit the program cleanly :)
Stoned koala bears drooled eucalyptus spit in awe as Taylor Chris
Nohara said:
> I'm using the sample 3-10 program located here:
>
> http://docs.mandragor.org/files/Common_libs_documentation/SDL/SDL_Documentation_project_en/guideinputkeyboard.html
>
> I'm writing a program on top of X Windows and I'm not getting any key
> press events apart from the CTRL-C.
>
> If there's any ideas why there SDL_PollEvent doesn't return any key
> press events, I'd love to hear them!
--
William Brodie-Tyrrell
Carpe Diem - fish of the day.
<william at brodie-tyrrell.org>
http://www.brodie-tyrrell.org/
More information about the SDL
mailing list