From a8bec57e7a9be7b1fa36ef8be618db4e46cbd599 Mon Sep 17 00:00:00 2001 From: oroborus Date: Tue, 15 Apr 2008 19:28:48 +0000 Subject: - oprava chyby #0007 #0006 #0005 - nova zbran bombball - client dostava svoju vlastnu poziciu od servera kazdych 5000 ms git-svn-id: http://opensvn.csie.org/tuxanci_ng@45 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 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() { -- cgit v1.2.3