SDL and Key Trapping - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html) +--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html) +--- Thread: SDL and Key Trapping (/thread-5971.html) |
SDL and Key Trapping - Nathan1993 - 02-09-2005 please, point me to where I can learn key trapping and sdl. if you want me to look at code please comment it! :lol: SDL and Key Trapping - na_th_an - 02-09-2005 This is the best source I know about SDL: http://sdldoc.csn.ul.ie/index.php and, of course, http://www.libsdl.org/tutorials.php SDL and Key Trapping - BastetFurry - 02-09-2005 This goes as follow: Code: dim keys as uint8 ptr If you need to know what SDLK_Something you need have a look at SDL_keysym.bi Have fun ^.^ EDIT: If you just want to check it when a key is actauly pressed, check your event holder for SDL_KEYDOWN (Just copied my simple keywait routine) Code: sub SDL_WaitForKeypress() |