Go to the documentation of this file.
4 #include <unordered_map>
6 #define GLFW_INCLUDE_NONE
7 #include <GLFW/glfw3.h>
8 #include <glm/vec2.hpp>
12 #define PRESSED (1 << 0)
13 #define RELEASED (1 << 1)
14 #define JUST_PRESSED (1 << 2)
15 #define JUST_RELEASED (1 << 3)
17 #define MAX_MOUSE_BUTTONS 8
23 std::uint64_t
mDownTick{std::numeric_limits<std::uint64_t>::max()};
24 std::uint64_t
mUpTick{std::numeric_limits<std::uint64_t>::max()};
32 void FeedKeyboard(
int key,
int scancode,
int action,
int mods);
43 void SetUICapture(
bool mouseCapture,
bool keyboardCapture);
46 void DownEvent(std::unordered_map<size_t, IState> &map,
size_t loc);
47 void DownModEvent(std::unordered_map<size_t, IState> &map, std::uint32_t mods);
48 void UpEvent(std::unordered_map<size_t, IState> &map,
size_t loc);
49 void UpModEvent(std::unordered_map<size_t, IState> &map, std::uint32_t mods);
51 std::uint32_t
GetState(std::unordered_map<size_t, IState> &map,
size_t loc);