Create callbacks.h

This commit is contained in:
Alexandre 2026-04-19 01:38:18 +02:00
parent 102e4de093
commit 0e1c4da452

17
src/engine/callbacks.h Normal file
View File

@ -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