MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
include
mgl
input
keyboard
mgl_keyboard_keycode.h
[詳解]
1
// SPDX-License-Identifier: Zlib
2
/* ------------------------------------------------------------------------- */
9
/* ------------------------------------------------------------------------- */
10
11
#ifndef INCGUARD_MGL_KEYBOARD_KEYCODE_H_1608986800
12
#define INCGUARD_MGL_KEYBOARD_KEYCODE_H_1608986800
13
14
#include <array>
15
#include <bitset>
16
#include <cstdint>
17
#include <type_traits>
18
19
namespace
MGL::Input
20
{
22
enum class
Keycode
: uint8_t
23
{
24
Invalid
,
25
KeyA
,
26
KeyB
,
27
KeyC
,
28
KeyD
,
29
KeyE
,
30
KeyF
,
31
KeyG
,
32
KeyH
,
33
KeyI
,
34
KeyJ
,
35
KeyK
,
36
KeyL
,
37
KeyM
,
38
KeyN
,
39
KeyO
,
40
KeyP
,
41
KeyQ
,
42
KeyR
,
43
KeyS
,
44
KeyT
,
45
KeyU
,
46
KeyV
,
47
KeyW
,
48
KeyX
,
49
KeyY
,
50
KeyZ
,
51
Key1
,
52
Key2
,
53
Key3
,
54
Key4
,
55
Key5
,
56
Key6
,
57
Key7
,
58
Key8
,
59
Key9
,
60
Key0
,
61
Return
,
62
Escape
,
63
Backspace
,
64
Tab
,
65
Space
,
66
F1
,
67
F2
,
68
F3
,
69
F4
,
70
F5
,
71
F6
,
72
F7
,
73
F8
,
74
F9
,
75
F10
,
76
F11
,
77
F12
,
78
Delete
,
79
Right
,
80
Left
,
81
Down
,
82
Up
,
83
LeftControl
,
84
LeftShift
,
85
LeftAlt
,
86
LeftGUI
,
87
RightControl
,
88
RightShift
,
89
RightAlt
,
90
RightGUI
,
91
Control
,
92
Shift
,
93
Alt
,
94
GUI
,
95
};
96
98
constexpr
auto
kKeycodeCount
=
static_cast<
size_t
>
(Keycode::GUI) + 1;
99
101
using
KeycodeArray
= std::bitset<kKeycodeCount>;
102
}
// namespace MGL::Input
103
#endif
// INCGUARD_MGL_KEYBOARD_KEYCODE_H_1608986800
104
105
// vim: et ts=4 sw=4 sts=4
MGL::Input::PadID::Invalid
@ Invalid
無効値
MGL::Input::PadButton::Down
@ Down
下
MGL::Input::PadButton::Up
@ Up
上
MGL::Input::PadButton::Right
@ Right
右
MGL::Input::PadButton::Left
@ Left
左
MGL::Input::Keycode
Keycode
キーボード用コード
Definition
mgl_keyboard_keycode.h:23
MGL::Input::Keycode::Escape
@ Escape
Escape
MGL::Input::Keycode::KeyY
@ KeyY
Y
MGL::Input::Keycode::KeyI
@ KeyI
I
MGL::Input::Keycode::GUI
@ GUI
Command or Windowsキー(左右共通)
MGL::Input::Keycode::F6
@ F6
F6
MGL::Input::Keycode::KeyU
@ KeyU
U
MGL::Input::Keycode::Key9
@ Key9
9
MGL::Input::Keycode::RightShift
@ RightShift
右Shift
MGL::Input::Keycode::F5
@ F5
F5
MGL::Input::Keycode::Key3
@ Key3
3
MGL::Input::Keycode::Key7
@ Key7
7
MGL::Input::Keycode::F7
@ F7
F7
MGL::Input::Keycode::F8
@ F8
F8
MGL::Input::Keycode::KeyP
@ KeyP
P
MGL::Input::Keycode::F3
@ F3
F3
MGL::Input::Keycode::KeyS
@ KeyS
S
MGL::Input::Keycode::KeyJ
@ KeyJ
J
MGL::Input::Keycode::KeyG
@ KeyG
G
MGL::Input::Keycode::Tab
@ Tab
Tab
MGL::Input::Keycode::KeyE
@ KeyE
E
MGL::Input::Keycode::KeyN
@ KeyN
N
MGL::Input::Keycode::LeftControl
@ LeftControl
左Ctrl
MGL::Input::Keycode::F11
@ F11
F11
MGL::Input::Keycode::KeyL
@ KeyL
L
MGL::Input::Keycode::KeyA
@ KeyA
A
MGL::Input::Keycode::Key8
@ Key8
8
MGL::Input::Keycode::KeyF
@ KeyF
F
MGL::Input::Keycode::KeyO
@ KeyO
O
MGL::Input::Keycode::Shift
@ Shift
Shiftキー(左右共通)
MGL::Input::Keycode::Key5
@ Key5
5
MGL::Input::Keycode::RightControl
@ RightControl
右Ctrl
MGL::Input::Keycode::F9
@ F9
F9
MGL::Input::Keycode::RightGUI
@ RightGUI
右Command or 右Windows
MGL::Input::Keycode::KeyB
@ KeyB
B
MGL::Input::Keycode::KeyZ
@ KeyZ
Z
MGL::Input::Keycode::LeftAlt
@ LeftAlt
左Option or 左Alt
MGL::Input::Keycode::LeftShift
@ LeftShift
左Shift
MGL::Input::Keycode::Return
@ Return
Return or Enter
MGL::Input::Keycode::KeyQ
@ KeyQ
Q
MGL::Input::Keycode::KeyT
@ KeyT
T
MGL::Input::Keycode::KeyX
@ KeyX
X
MGL::Input::Keycode::KeyW
@ KeyW
W
MGL::Input::Keycode::Key6
@ Key6
6
MGL::Input::Keycode::Control
@ Control
Ctrlキー(左右共通)
MGL::Input::Keycode::Alt
@ Alt
Option or Altキー(左右共通)
MGL::Input::Keycode::LeftGUI
@ LeftGUI
左Command or 左Windows
MGL::Input::Keycode::Key0
@ Key0
0
MGL::Input::Keycode::F10
@ F10
F10
MGL::Input::Keycode::Key2
@ Key2
2
MGL::Input::Keycode::KeyM
@ KeyM
M
MGL::Input::Keycode::Backspace
@ Backspace
Backspace
MGL::Input::Keycode::Space
@ Space
Space
MGL::Input::Keycode::RightAlt
@ RightAlt
右Option or 右Alt
MGL::Input::Keycode::KeyV
@ KeyV
V
MGL::Input::Keycode::KeyH
@ KeyH
H
MGL::Input::Keycode::Key4
@ Key4
4
MGL::Input::Keycode::F1
@ F1
F1
MGL::Input::Keycode::F4
@ F4
F4
MGL::Input::Keycode::F12
@ F12
F12
MGL::Input::Keycode::KeyK
@ KeyK
K
MGL::Input::Keycode::KeyC
@ KeyC
C
MGL::Input::Keycode::Delete
@ Delete
Delete
MGL::Input::Keycode::KeyD
@ KeyD
D
MGL::Input::Keycode::Key1
@ Key1
1
MGL::Input::Keycode::KeyR
@ KeyR
R
MGL::Input::Keycode::F2
@ F2
F2
MGL::Input::KeycodeArray
std::bitset< kKeycodeCount > KeycodeArray
キーコード用配列のエイリアス
Definition
mgl_keyboard_keycode.h:101
MGL::Input::kKeycodeCount
constexpr auto kKeycodeCount
有効なキーコードの数
Definition
mgl_keyboard_keycode.h:98
構築:
1.12.0