24 glm::ivec2& fullscreen_size;
25 glm::vec2& content_scale;
29 const std::function<void(uint32_t)>& framebuffer_resize_callback;
39 enum class MouseButtonAction
45 static void HandleWindowSize(State state,
int width,
int height);
46 static void HandleWindowClose(State state);
47 static void HandleKeyAction(State state, pixelbullet::input::KeyCode key_code, KeyAction action);
48 static void HandleTextInput(State state,
char32_t codepoint);
49 static void HandleMouseButtonAction(State state, pixelbullet::input::MouseCode button, MouseButtonAction action);
50 static void HandleMouseScroll(State state,
float x_offset,
float y_offset);
51 static void HandleCursorPosition(State state,
float x_pos,
float y_pos);
52 static void HandleFramebufferSize(State state,
int width,
int height);
53 static void HandleContentScale(State state,
float x_scale,
float y_scale);
54 static void HandleFocusChanged(State state,
bool focused);
55 static void HandleWindowMoved(State state,
int x,
int y);