3 #include <unordered_set> 8 class [[deprecated("Use glfw or similar directly")]] Keyboard {
12 enum class Key : int {
30 enum class Action : int {
40 bool operator==(
const Event &event)
const{
41 return key ==
event.key && action ==
event.action;
47 size_t operator()(
const Event& e)
const {
48 return ((std::hash<int>()(static_cast<int>(e.key)) ^ (std::hash<int>()(static_cast<int>(e.action)) << 1)) >> 1);
52 using Events = std::unordered_set<Event, EventHash>;
53 using Codepoints = std::vector<unsigned int>;
55 Codepoints codepoints;
Definition: gamepad.hpp:5