From 2c4c6e6201000dd60c3727fbc1c3da86e0abd7a1 Mon Sep 17 00:00:00 2001 From: Mossieur-Patate Date: Thu, 28 Nov 2024 22:50:00 +0100 Subject: [PATCH] GetKeyName prototype (#4544) * Update raylib.h: GeyKeyName prototype Prototype for GetKeyName, which is already implemented elsewhere. * Update raylib_to_parse.h: GetKeyName prototype --- projects/Notepad++/raylib_npp_parser/raylib_to_parse.h | 1 + src/raylib.h | 1 + 2 files changed, 2 insertions(+) diff --git a/projects/Notepad++/raylib_npp_parser/raylib_to_parse.h b/projects/Notepad++/raylib_npp_parser/raylib_to_parse.h index 3467e21d..2ff4c9cb 100644 --- a/projects/Notepad++/raylib_npp_parser/raylib_to_parse.h +++ b/projects/Notepad++/raylib_npp_parser/raylib_to_parse.h @@ -216,6 +216,7 @@ RLAPI bool IsKeyUp(int key); // Check if a key RLAPI int GetKeyPressed(void); // Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty RLAPI int GetCharPressed(void); // Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty RLAPI void SetExitKey(int key); // Set a custom key to exit program (default is ESC) +RLAPI const char *GetKeyName(int key); // Get name of a QWERTY key on the current keyboard layout (eg returns string "q" for KEY_A on an AZERTY keyboard) // Input-related functions: gamepads RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available diff --git a/src/raylib.h b/src/raylib.h index 56abfa7a..980e19b6 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1178,6 +1178,7 @@ RLAPI bool IsKeyUp(int key); // Check if a key RLAPI int GetKeyPressed(void); // Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty RLAPI int GetCharPressed(void); // Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty RLAPI void SetExitKey(int key); // Set a custom key to exit program (default is ESC) +RLAPI const char *GetKeyName(int key); // Get name of a QWERTY key on the current keyboard layout (eg returns string "q" for KEY_A on an AZERTY keyboard) // Input-related functions: gamepads RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available