]> git.lizzy.rs Git - shadowclad.git/blobdiff - src/engine/input.c
Add prelude with UNUSED macro
[shadowclad.git] / src / engine / input.c
index b8431434ff2a1423726a99aaef1cdb13e4edb9ba..df33578353e1d0f74b4489df1a6960ca9e111bbe 100644 (file)
@@ -2,13 +2,14 @@
 
 #include <stdbool.h>
 
+#include "_prelude.h"
 #include "render.h"
 
 static void (*keyboardInputCallback) (int, int, int, int);
 
 
 
-void onKeyboardEvent(GLFWwindow* window, int key, int scancode, int action, int mods) {
+void onKeyboardEvent(GLFWwindow* window UNUSED, int key, int scancode, int action, int mods) {
        if (!(mods & GLFW_MOD_CONTROL)) {
                if (keyboardInputCallback) {
                        keyboardInputCallback(key, scancode, action, mods);