diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-12-26 17:51:39 +0100 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-12-26 17:51:39 +0100 |
| commit | 5eadac72916ce9d53ffdc3f908a6e414858fe7e0 (patch) | |
| tree | 4c94efaa376280b44c510bad96eee41c43fc6c3a /src/keypad.c | |
| parent | 24aadae14da23e852285d4d726148d260edc147d (diff) | |
Cleaning repository
Diffstat (limited to 'src/keypad.c')
| -rw-r--r-- | src/keypad.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/keypad.c b/src/keypad.c index 2ff7be4..e0073e9 100644 --- a/src/keypad.c +++ b/src/keypad.c @@ -1,5 +1,6 @@ #include "keypad.h" +/// @brief Define you keymaps here int map[]={ KEY_X, // 0 KEY_ONE, // 1 @@ -19,6 +20,12 @@ int map[]={ KEY_V // F }; +/** + * @brief Get hex from keycode (used only in this file) + * + * @param keycode + * @return int + */ int KeypadGetKey(int keycode){ for(int i=0;i<16;i++){ if(map[i]==keycode) @@ -27,7 +34,6 @@ int KeypadGetKey(int keycode){ return -1; } - int KeypadGetPressed(){ for(int i=0;i<16;i++){ if(IsKeyDown(map[i])) |
