diff options
| author | MrScautHD <[email protected]> | 2024-07-16 14:00:00 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-16 14:00:00 +0200 |
| commit | 576bee5cce1254791561b57f2137e2a3b611d26a (patch) | |
| tree | 076669257265a68a30e1871012c326787b7f29d7 /src/platforms/rcore_desktop_sdl.c | |
| parent | 5ede47618bd9f9a440af648da1b4817e51644994 (diff) | |
| download | raylib-576bee5cce1254791561b57f2137e2a3b611d26a.tar.gz raylib-576bee5cce1254791561b57f2137e2a3b611d26a.zip | |
Adding GetKeyName(int key) (WIP) (#4161)
Diffstat (limited to 'src/platforms/rcore_desktop_sdl.c')
| -rw-r--r-- | src/platforms/rcore_desktop_sdl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index 3d629359..794f9e6a 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -966,6 +966,12 @@ void SetMouseCursor(int cursor) CORE.Input.Mouse.cursor = cursor; } +// Get physical key name. +const char *GetKeyName(int key) +{ + return SDL_GetKeyName(key); +} + static void UpdateTouchPointsSDL(SDL_TouchFingerEvent event) { CORE.Input.Touch.pointCount = SDL_GetNumTouchFingers(event.touchId); |
