소스 검색

Document that SDL_GetKeyName() always returns uppercase names for alphabetic keycodes

Sam Lantinga 1 년 전
부모
커밋
78dbf9be50
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      include/SDL3/SDL_keyboard.h

+ 2 - 0
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.