Antkeeper
0.0.1
src
engine
input
modifier-key.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2023 Christopher J. Howard
3
*
4
* This file is part of Antkeeper source code.
5
*
6
* Antkeeper source code is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* Antkeeper source code is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with Antkeeper source code. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef ANTKEEPER_INPUT_MODIFIER_KEY_HPP
21
#define ANTKEEPER_INPUT_MODIFIER_KEY_HPP
22
23
#include <cstdint>
24
25
namespace
input
{
26
30
namespace
modifier_key {
31
33
enum
: std::uint16_t
34
{
36
none
= 0b0000000000000000,
37
39
left_shift
= 0b0000000000000001,
40
42
right_shift
= 0b0000000000000010,
43
45
shift
=
left_shift
|
right_shift
,
46
48
left_ctrl
= 0b0000000000000100,
49
51
right_ctrl
= 0b0000000000001000,
52
54
ctrl
=
left_ctrl
|
right_ctrl
,
55
57
left_alt
= 0b0000000000010000,
58
60
right_alt
= 0b0000000000100000,
61
63
alt
=
left_alt
|
right_alt
,
64
66
left_gui
= 0b0000000001000000,
67
69
right_gui
= 0b0000000010000000,
70
72
gui
=
left_gui
|
right_gui
,
73
75
num_lock
= 0b0000000100000000,
76
78
caps_lock
= 0b0000001000000000,
79
81
scroll_lock
= 0b0000010000000000,
82
84
alt_gr
= 0b0000100000000000
85
};
86
87
}
// namespace modifier_key
88
}
// namespace input
89
90
#endif
// ANTKEEPER_INPUT_MODIFIER_KEY_HPP
input::modifier_key::right_alt
@ right_alt
Right alt modifier key is pressed.
Definition:
modifier-key.hpp:60
input::modifier_key::gui
@ gui
One or both gui modifier keys are pressed.
Definition:
modifier-key.hpp:72
input::modifier_key::left_gui
@ left_gui
Left gui modifier key is pressed.
Definition:
modifier-key.hpp:66
input::modifier_key::right_shift
@ right_shift
Right shift modifier key is pressed.
Definition:
modifier-key.hpp:42
input::modifier_key::left_shift
@ left_shift
Left shift modifier key is pressed.
Definition:
modifier-key.hpp:39
input::modifier_key::left_alt
@ left_alt
Left alt modifier key is pressed.
Definition:
modifier-key.hpp:57
input::modifier_key::num_lock
@ num_lock
Num lock modifier key is pressed.
Definition:
modifier-key.hpp:75
input::modifier_key::scroll_lock
@ scroll_lock
Scroll lock modifier key is pressed.
Definition:
modifier-key.hpp:81
input::modifier_key::left_ctrl
@ left_ctrl
Left ctrl modifier key is pressed.
Definition:
modifier-key.hpp:48
input::modifier_key::none
@ none
No modifier key is pressed.
Definition:
modifier-key.hpp:36
input::modifier_key::right_gui
@ right_gui
Right gui modifier key is pressed.
Definition:
modifier-key.hpp:69
input::modifier_key::ctrl
@ ctrl
One or both ctrl modifier keys are pressed.
Definition:
modifier-key.hpp:54
input::modifier_key::shift
@ shift
One or both shift modifier keys are pressed.
Definition:
modifier-key.hpp:45
input::modifier_key::alt
@ alt
One or both alt modifier keys are pressed.
Definition:
modifier-key.hpp:63
input::modifier_key::right_ctrl
@ right_ctrl
Right ctrl modifier key is pressed.
Definition:
modifier-key.hpp:51
input::modifier_key::caps_lock
@ caps_lock
Caps lock modifier key is pressed.
Definition:
modifier-key.hpp:78
input::modifier_key::alt_gr
@ alt_gr
AltGr modifier key is pressed.
Definition:
modifier-key.hpp:84
input
Input devices, events, and mapping.
Definition:
action-events.hpp:23