mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-22 18:28:52 -05:00
Fixed broken file flags.
This commit is contained in:
parent
525d517f86
commit
7ebe76289d
|
@ -185,6 +185,14 @@ static void window_refresh_callback(GLFWwindow window)
|
|||
printf("%08x at %0.3f: Window refresh\n", counter++, glfwGetTime());
|
||||
}
|
||||
|
||||
static void window_focus_callback(GLFWwindow window, int activated)
|
||||
{
|
||||
printf("%08x at %0.3f: Window %s\n",
|
||||
counter++,
|
||||
glfwGetTime(),
|
||||
activated ? "activated" : "deactivated");
|
||||
}
|
||||
|
||||
static void mouse_button_callback(GLFWwindow window, int button, int action)
|
||||
{
|
||||
const char* name = get_button_name(button);
|
||||
|
@ -290,6 +298,7 @@ int main(void)
|
|||
glfwSetWindowSizeCallback(window, window_size_callback);
|
||||
glfwSetWindowCloseCallback(window, window_close_callback);
|
||||
glfwSetWindowRefreshCallback(window, window_refresh_callback);
|
||||
glfwSetWindowFocusCallback(window, window_focus_callback);
|
||||
glfwSetMouseButtonCallback(window, mouse_button_callback);
|
||||
glfwSetMousePosCallback(window, mouse_position_callback);
|
||||
glfwSetMouseWheelCallback(window, mouse_wheel_callback);
|
||||
|
|
0
tests/fsfocus.c
Executable file → Normal file
0
tests/fsfocus.c
Executable file → Normal file
Loading…
Reference in New Issue
Block a user