Switch events test to use glfwGetKeyNameModifiers

This commit is contained in:
Yukari Hafner 2026-06-26 21:32:40 +02:00
parent 7b6e62829d
commit c87aaa8111
No known key found for this signature in database
GPG key ID: A65ADD33A582C0E2

View file

@ -411,7 +411,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action,
}
else
{
const char* name = glfwGetKeyName(key, scancode);
const char* name = glfwGetKeyNameModifiers(key, scancode, mods);
if (name)
{
printf("%08x to %i at %0.3f: Key 0x%04x (%s) Scancode 0x%04x Name %s (with%s) was %s\n",