mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
Cleaned up drop callback design.
This commit is contained in:
+7
-5
@@ -381,12 +381,14 @@ static void char_callback(GLFWwindow* window, unsigned int codepoint)
|
||||
get_character_string(codepoint));
|
||||
}
|
||||
|
||||
static void drop_callback(GLFWwindow* window, const char* descriptor)
|
||||
static void drop_callback(GLFWwindow* window, int count, const char** names)
|
||||
{
|
||||
printf("%08x at %0.3f: Drop of \"%s\" input\n",
|
||||
counter++,
|
||||
glfwGetTime(),
|
||||
descriptor);
|
||||
int i;
|
||||
|
||||
printf("%08x at %0.3f: Drop input\n", counter++, glfwGetTime());
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
printf(" %i: \"%s\"\n", i, names[i]);
|
||||
}
|
||||
|
||||
void monitor_callback(GLFWmonitor* monitor, int event)
|
||||
|
||||
Reference in New Issue
Block a user