Reassign debug keys, backspace on textfield added

This commit is contained in:
2016-08-17 15:57:42 +10:00
parent 8aa23b7cfc
commit cb857cfaa6
3 changed files with 34 additions and 9 deletions
+3 -1
View File
@@ -7,7 +7,6 @@
INTERNAL inline void processKey(KeyState *state, int action)
{
// TODO(doyle): Handle GLFW_REPEAT, and probably remove this function
if (action == GLFW_PRESS || action == GLFW_RELEASE)
{
state->newHalfTransitionCount++;
@@ -47,6 +46,9 @@ INTERNAL void keyCallback(GLFWwindow *window, int key, int scancode, int action,
case GLFW_KEY_BACKSPACE:
processKey(&game->input.keys[keycode_backspace], action);
break;
case GLFW_KEY_TAB:
processKey(&game->input.keys[keycode_tab], action);
break;
default:
if (key >= ' ' && key <= '~')
{