Use CORE.Input.Keyboard.exitKey instead of KEY_ESCAPE

... in rcore_desktop_win32 when handling window closing
This commit is contained in:
aceinetx 2026-06-06 18:42:45 +00:00
parent e7edb181dc
commit 88048af35c
No known key found for this signature in database

View File

@ -2033,7 +2033,7 @@ static void HandleKey(WPARAM wparam, LPARAM lparam, char state)
{ {
CORE.Input.Keyboard.currentKeyState[key] = state; CORE.Input.Keyboard.currentKeyState[key] = state;
if ((key == KEY_ESCAPE) && (state == 1)) CORE.Window.shouldClose = true; if ((key == CORE.Input.Keyboard.exitKey) && (state == 1)) CORE.Window.shouldClose = true;
} }
else TRACELOG(LOG_WARNING, "INPUT: Unknown (or currently unhandled) virtual keycode %d (0x%x)", wparam, wparam); else TRACELOG(LOG_WARNING, "INPUT: Unknown (or currently unhandled) virtual keycode %d (0x%x)", wparam, wparam);
@ -2270,4 +2270,4 @@ static bool IsWglExtensionAvailable(HDC hdc, const char *extension)
} }
return result; return result;
} }