Simplify GLFW code
This commit is contained in:
parent
39ddfd9791
commit
b72b631e95
1 changed files with 1 additions and 11 deletions
|
@ -21,17 +21,7 @@
|
|||
|
||||
#define DO_KEY(GLFW_KEY, BACKEND_KEY) \
|
||||
case GLFW_KEY: \
|
||||
switch (action) \
|
||||
{ \
|
||||
case GLFW_PRESS: \
|
||||
backend_keyboard_state[BACKEND_KEY] = TRUE; \
|
||||
break; \
|
||||
\
|
||||
case GLFW_RELEASE: \
|
||||
backend_keyboard_state[BACKEND_KEY] = FALSE; \
|
||||
break; \
|
||||
} \
|
||||
\
|
||||
backend_keyboard_state[BACKEND_KEY] = action == GLFW_PRESS; \
|
||||
break;
|
||||
|
||||
GLFWwindow *window;
|
||||
|
|
Loading…
Add table
Reference in a new issue