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 9e0d6bf..1da3989 100755 --- a/src/interface.c +++ b/src/interface.c @@ -138,6 +138,22 @@ int isPessAnyKey() return 0; } +void printPessAnyKey() +{ + Uint8 *mapa; + int i; + + mapa = SDL_GetKeyState(NULL); + + for( i = SDLK_BACKSPACE ; i < SDLK_KP9 ; i++ ) + if( mapa[i] == SDL_PRESSED ) + { + printf("press key with code : %d\n", i); + } + +} + + /* static void action_esc() { |