#include #include std::function Stub::m_active; std::function Stub::m_resize; std::function Stub::m_keyboard; std::function Stub::m_char_input; std::function Stub::m_mouse_btn; std::function Stub::m_mouse_move; std::function Stub::m_scroll; void Stub::active_stub(void *user_data, bool isActive) { m_active(user_data, isActive); } void Stub::resize_stub(void *user_data, int width, int height) { m_resize(user_data, width, height); } void Stub::keyboard_stub(void *user_data, Key key, KeyMod mod, bool isPressed) { m_keyboard(user_data, key, mod, isPressed); } void Stub::char_input_stub(void *user_data, unsigned int code) { m_char_input(user_data, code); } void Stub::mouse_btn_stub(void *user_data, MouseButton button, KeyMod mod, bool isPressed) { m_mouse_btn(user_data, button, mod, isPressed); } void Stub::mouse_move_stub(void *user_data, int x, int y) { m_mouse_move(user_data, x, y); } void Stub::scroll_stub(void *user_data, KeyMod mod, float deltaX, float deltaY) { m_scroll(user_data, mod, deltaX, deltaY); }