mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 05:55:46 +01:00
9 lines
284 B
C
9 lines
284 B
C
#include <GLFW/glfw3.h>
|
|
void key_callback(GLFWwindow *win, int key, int scancode, int action, int mods) {
|
|
(void)win, (void)key, (void)scancode, (void)action, (void)mods;
|
|
#ifndef NDEBUG
|
|
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
|
|
glfwSetWindowShouldClose(win, 1);
|
|
#endif
|
|
}
|