diff options
Diffstat (limited to 'src/client/hotKey.c')
| -rw-r--r-- | src/client/hotKey.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/client/hotKey.c b/src/client/hotKey.c index 5b981ea..3e67edd 100644 --- a/src/client/hotKey.c +++ b/src/client/hotKey.c @@ -1,4 +1,3 @@ - #include <stdio.h> #include <stdlib.h> #include <assert.h> @@ -31,7 +30,7 @@ static hotKey_t *newHotKey(SDLKey key, void (*handler) ()) return new; } -static void destroyHotKey(hotKey_t * hotkey) +static void destroyHotKey(hotKey_t *hotkey) { free(hotkey); } @@ -79,7 +78,7 @@ void hot_key_unregister(SDLKey key) hotkey = findHotkey(key); if (hotkey == NULL) { - assert(!"This hotkey not register"); + assert(!_("[Error] Unregisterring not registerred hotkey")); } my_index = list_search(listHotKey, hotkey); @@ -94,7 +93,7 @@ void hot_key_enable(SDLKey key) hotkey = findHotkey(key); if (hotkey == NULL) { - assert(!"This hotkey not register"); + assert(!_("[Error] Enabling not registerred hotkey")); } lastActive = timer_get_current_time(); @@ -108,7 +107,7 @@ void hot_key_disable(SDLKey key) hotkey = findHotkey(key); if (hotkey == NULL) { - assert(!"This hotkey not register"); + assert(!_("[Error] Disabling not registerred hotkey")); } lastActive = timer_get_current_time(); @@ -136,7 +135,7 @@ void hot_key_event() if (mapa[this->key] == SDL_PRESSED && this->active == TRUE) { lastActive = timer_get_current_time(); - //printf("hotKey = %d\n", this->key); + /*printf("hotKey = %d\n", this->key);*/ this->handler(); return; |