4 #include <GLFW/glfw3.h> 6 #include <mos/io/gamepad.hpp> 7 #include <mos/io/keyboard.hpp> 8 #include <mos/io/mouse.hpp> 13 class [[deprecated("Use glfw or similar directly")]] Window {
20 Window(
const std::string &title =
"Window",
21 const glm::ivec2 &resolution = {1920, 1080},
22 int swap_interval = 0);
24 static Output poll_events();
28 void close(
const bool close);
31 static Keyboard keyboard_;
33 static Gamepad gamepad_;
34 static void error_callback(
int error,
const char* description);
35 static void key_callback(GLFWwindow * window,
int key,
int scancode,
int action,
int mods);
36 static void char_callback(GLFWwindow * window,
const unsigned int codepoint);
37 static void cursor_position_callback(GLFWwindow * window,
double xpos,
double ypos);
38 static void mouse_button_callback(GLFWwindow * window,
int button,
int action,
int mods);
Definition: gamepad.hpp:5