sandbox
Loading...
Searching...
No Matches
input_mod.hpp
1#ifndef LIBSBX_DEVICES_INPUT_MOD_HPP_
2#define LIBSBX_DEVICES_INPUT_MOD_HPP_
3
4#include <cinttypes>
5
6#include <GLFW/glfw3.h>
7
8#include <libsbx/utility/bitmask.hpp>
9
10namespace sbx::devices {
11
12enum class input_mod : std::int32_t {
13 shift = GLFW_MOD_SHIFT,
14 control = GLFW_MOD_CONTROL,
15 alt = GLFW_MOD_ALT,
16 super = GLFW_MOD_SUPER,
17 caps_lock = GLFW_MOD_CAPS_LOCK,
18 num_lock = GLFW_MOD_NUM_LOCK,
19}; // enum class input_mod
20
21} // namespace sbx::devices
22
23template<>
24struct sbx::utility::enable_bitmask_operators<sbx::devices::input_mod> : std::true_type { };
25
26#endif // LIBSBX_DEVICES_INPUT_MOD_HPP_
Definition: bitmask.hpp:11