SDL Keyborad input handling

Started by
0 comments, last by Zakwayda 14 years ago
i was wondering if there was a way to call every frame on something that would return 1 or 0 as to weather or not a key was down. the reason i want this is mostly because I'm more used to Flash. i have grown to like SDL more though. an exaple would be
 
//im sudo coding as to how i think it should work
if( SDLK_x.isDown == true) {
  // then do what ever the hell you want
}
Advertisement
Quote:i was wondering if there was a way to call every frame on something that would return 1 or 0 as to weather or not a key was down.
SDL_GetKeyState().
Quote:im sudo coding
Lol...someone's been spending too much time at the *nix command line ;)

This topic is closed to new replies.

Advertisement