]> git.lizzy.rs Git - shadowclad.git/blobdiff - src/game/input.c
Restructure keyboard input handling
[shadowclad.git] / src / game / input.c
index bf4ab03ebab671bb0ef44f52d443f84263a946a7..f52a27e79742ec4bff65c73279399096e4dc4b5f 100644 (file)
@@ -1,8 +1,10 @@
 #include "input.h"
 
+#include <GLFW/glfw3.h>
+
 #include "player.h"
 
-void onKeyboardEvent(GLFWwindow* window, int key, int scancode, int action, int mods) {
+void keyboardInput(int key, int scancode, int action, int mods) {
        switch (key) {
                case GLFW_KEY_W:
                        if (action == GLFW_PRESS) {