4 #include <unordered_set> 9 class [[deprecated("Use glfw or similar directly")]] Mouse {
12 enum class Button : int {
23 enum class Action : int {
33 bool operator==(
const Event &event)
const{
34 return button ==
event.button && action ==
event.action;
41 size_t operator()(
const Event& e)
const {
42 return ((std::hash<int>()(static_cast<int>(e.button)) ^ (std::hash<int>()(static_cast<int>(e.action)) << 1)) >> 1);
46 using Events = std::unordered_set<Event, EventHash>;
48 glm::dvec2 position{};
49 glm::dvec2 old_position{};
51 std::array<bool, 3> buttons{
false,
false,
false};
Definition: gamepad.hpp:5