]> git.lizzy.rs Git - shadowclad.git/blobdiff - src/game/game.c
Restructure keyboard input handling
[shadowclad.git] / src / game / game.c
index a1a1da2b4c39b0f50a63a840e516c4228280e445..25b1c30d8550183dd4b6cbfddd3d169fe659d1a4 100644 (file)
@@ -1,6 +1,6 @@
 #include "game.h"
 
-#include "engine/engine.h"
+#include "engine/input.h"
 
 #include "input.h"
 #include "level.h"
@@ -11,7 +11,7 @@ void initGame() {
        initPlayer();
        startLevel();
 
-       setKeyboardEventCallback(onKeyboardEvent);
+       setKeyboardInputCallback(keyboardInput);
 }
 
 void update(float delta) {