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