diff options
Diffstat (limited to 'src/keypad.c')
| -rw-r--r-- | src/keypad.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/keypad.c b/src/keypad.c index 30b4479..d106642 100644 --- a/src/keypad.c +++ b/src/keypad.c @@ -26,3 +26,14 @@ int KeypadIsPressed(unsigned char c){ } return 0; } + +int KeypadGetPressed(){ + int keycode=GetKeyPressed(); + if(keycode){ + for(int i=0;i<16;i++){ + if(map[i]==keycode) + return 1; + } + } + return -1; +} |
