diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-12-25 21:29:52 +0100 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-12-25 21:29:52 +0100 |
| commit | 4ad64d82c3007f4dffd973c8f8a22653312357c5 (patch) | |
| tree | 27fc1126d000aa321eaa93657b16e7d05c905b47 /src/keypad.c | |
| parent | c50ed6ba7358f49b61ef32558630f37f257cb365 (diff) | |
Minor changes
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; +} |
