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

This commit is contained in:
MrScautHD 2024-07-16 14:00:00 +02:00 • committed by GitHub
commit 576bee5cce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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