diff options
Diffstat (limited to 'src/interface.c')
| -rwxr-xr-x | src/interface.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c index d629c5b..9e0d6bf 100755 --- a/src/interface.c +++ b/src/interface.c @@ -122,6 +122,22 @@ int isMouseClicked() return SDL_GetMouseState(NULL,NULL) & SDL_BUTTON(SDL_BUTTON_LEFT); } +int isPessAnyKey() +{ + Uint8 *mapa; + int i; + + mapa = SDL_GetKeyState(NULL); + + for( i = SDLK_BACKSPACE ; i < SDLK_KP9 ; i++ ) + if( mapa[i] == SDL_PRESSED ) + { + return 1; + } + + return 0; +} + /* static void action_esc() { |