소스 검색

GetKeyName prototype (#4544)

* Update raylib.h: GeyKeyName prototype

Prototype for GetKeyName, which is already implemented elsewhere.

* Update raylib_to_parse.h: GetKeyName prototype
pull/4556/head
Mossieur-Patate 2 주 전
committed by GitHub
부모
커밋
2c4c6e6201
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      projects/Notepad++/raylib_npp_parser/raylib_to_parse.h
  2. +1
    -0
      src/raylib.h

+ 1
- 0
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

+ 1
- 0
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

불러오는 중...
취소
저장