diff --git a/src/engine/callbacks.h b/src/engine/callbacks.h new file mode 100644 index 0000000..f6d0190 --- /dev/null +++ b/src/engine/callbacks.h @@ -0,0 +1,17 @@ +#pragma once +// Header +// Other includes +#include "types.h" + +class Callback { + public: + static void keyboardCallback(GLFWwindow* window, int key, int scancode, int action, int mods); +}; + +#ifdef CALLBACK_IMPL +void Callback::keyboardCallback(GLFWwindow* window, int key, int scancode, int action, int mods) { + #ifndef NDEBUG + fmt::println("Key pressed: {}", scancode); + #endif +} +#endif