From 29173b3199ea526b6f9de13ee9255db3900f3f42 Mon Sep 17 00:00:00 2001 From: oroborus Date: Wed, 30 Apr 2008 19:11:49 +0000 Subject: - program si kontroluje ci existuju subory ktore pouziva git-svn-id: http://opensvn.csie.org/tuxanci_ng@48 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/interface.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/interface.c') 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() { -- cgit v1.2.3