From 78dbf9be504e6c466595338ef1a4cfbca66a7beb Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 30 Jun 2024 20:07:31 -0700 Subject: [PATCH] Document that SDL_GetKeyName() always returns uppercase names for alphabetic keycodes --- include/SDL3/SDL_keyboard.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/SDL3/SDL_keyboard.h b/include/SDL3/SDL_keyboard.h index 232cde110f..92d40d46fd 100644 --- a/include/SDL3/SDL_keyboard.h +++ b/include/SDL3/SDL_keyboard.h @@ -321,6 +321,8 @@ extern SDL_DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromName(const char *nam /** * Get a human-readable name for a key. * + * Both lowercase and uppercase alphabetic keycodes have uppercase names, e.g. SDL_Keycode 'a' and 'A' both have the name "A". + * * The returned string follows the SDL_GetStringRule. * * \param key the desired SDL_Keycode to query.