24 glm::ivec2& fullscreen_size;
27 const std::function<void(
Event&)>& event_callback;
28 const std::function<void(uint32_t)>& framebuffer_resize_callback;
38 enum class MouseButtonAction
44 static void HandleWindowSize(State state,
int width,
int height);
45 static void HandleWindowClose(State state);
46 static void HandleKeyAction(State state, input::KeyCode key_code, KeyAction action);
47 static void HandleKeyTyped(State state, input::KeyCode key_code);
48 static void HandleMouseButtonAction(State state, input::MouseCode button, MouseButtonAction action);
49 static void HandleMouseScroll(State state,
float x_offset,
float y_offset);
50 static void HandleCursorPosition(State state,
float x_pos,
float y_pos);
51 static void HandleFramebufferSize(State state,
int width,
int height);
52 static void HandleFocusChanged(State state,
bool focused);
53 static void HandleWindowMoved(State state,
int x,
int y);