From 82ace43103a8e737e204d7bb5a892da16842f30b Mon Sep 17 00:00:00 2001 From: Mossieur-Patate Date: Wed, 27 Nov 2024 14:20:24 +0100 Subject: [PATCH] Update raylib.h: GeyKeyName prototype Prototype for GetKeyName, which is already implemented elsewhere. --- src/raylib.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/raylib.h b/src/raylib.h index 56abfa7a5..980e19b6c 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