mirror of
https://github.com/glfw/glfw.git
synced 2026-08-27 21:55:54 +02:00
Added scancode to key callback.
This commit is contained in:
@@ -54,7 +54,7 @@ static void window_close_callback(GLFWwindow* window)
|
||||
printf("Close callback triggered\n");
|
||||
}
|
||||
|
||||
static void key_callback(GLFWwindow* window, int key, int action, int mods)
|
||||
static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
|
||||
{
|
||||
if (action != GLFW_PRESS)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user