Adding GetKeyName(int key) (WIP) (#4161)

This commit is contained in:
MrScautHD
2024-07-16 14:00:00 +02:00
committed by GitHub
parent 5ede47618b
commit 576bee5cce
7 changed files with 47 additions and 0 deletions

View File

@ -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);