//im sudo coding as to how i think it should work
if( SDLK_x.isDown == true) {
// then do what ever the hell you want
}
SDL Keyborad input handling
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
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 codingLol...someone's been spending too much time at the *nix command line ;)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement