diff options
Diffstat (limited to 'src/game/client/glfw.hh')
| -rw-r--r-- | src/game/client/glfw.hh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/game/client/glfw.hh b/src/game/client/glfw.hh new file mode 100644 index 0000000..9cdf734 --- /dev/null +++ b/src/game/client/glfw.hh @@ -0,0 +1,37 @@ +#ifndef CLIENTFW +#define CLIENTFW 1 +#pragma once + +struct GlfwCursorPosEvent final { + glm::fvec2 pos; +}; + +struct GlfwFramebufferSizeEvent final { + glm::ivec2 size; + float aspect; +}; + +struct GlfwJoystickEvent final { + int joystick_id; + int event_type; +}; + +struct GlfwKeyEvent final { + int key { GLFW_KEY_UNKNOWN }; + int scancode; + int action; + int mods; +}; + +struct GlfwMouseButtonEvent final { + int button { GLFW_KEY_UNKNOWN }; + int action; + int mods; +}; + +struct GlfwScrollEvent final { + float dx; + float dy; +}; + +#endif /* CLIENTFW */ |
