MRPT
2.0.4
mrpt
gui
keycodes.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| https://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6
| See: https://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See: https://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
#pragma once
10
11
#include <mrpt/config.h>
12
13
namespace
mrpt::gui
14
{
15
// These key codes are an exact replication of those of wxWidgets.
16
// They are defined within MRPT for convenience, since users don't have to
17
// install
18
// wxWidgets in order to build MRPT applications.
19
// See: http://docs.wxwidgets.org/stable/wx_keycodes.html
20
21
/* Virtual keycodes */
22
enum
mrptKeyCode
23
{
24
MRPTK_BACK
= 8,
25
MRPTK_TAB
= 9,
26
MRPTK_RETURN
= 13,
27
MRPTK_ESCAPE
= 27,
28
MRPTK_SPACE
= 32,
29
MRPTK_DELETE
= 127,
30
31
MRPTK_START
= 300,
32
MRPTK_LBUTTON
,
33
MRPTK_RBUTTON
,
34
MRPTK_CANCEL
,
35
MRPTK_MBUTTON
,
36
MRPTK_CLEAR
,
37
MRPTK_SHIFT
,
38
MRPTK_ALT
,
39
MRPTK_CONTROL
,
40
MRPTK_MENU
,
41
MRPTK_PAUSE
,
42
MRPTK_CAPITAL
,
43
MRPTK_END
,
44
MRPTK_HOME
,
45
MRPTK_LEFT
,
46
MRPTK_UP
,
47
MRPTK_RIGHT
,
48
MRPTK_DOWN
,
49
MRPTK_SELECT
,
50
MRPTK_PRINT
,
51
MRPTK_EXECUTE
,
52
MRPTK_SNAPSHOT
,
53
MRPTK_INSERT
,
54
MRPTK_HELP
,
55
MRPTK_NUMPAD0
,
56
MRPTK_NUMPAD1
,
57
MRPTK_NUMPAD2
,
58
MRPTK_NUMPAD3
,
59
MRPTK_NUMPAD4
,
60
MRPTK_NUMPAD5
,
61
MRPTK_NUMPAD6
,
62
MRPTK_NUMPAD7
,
63
MRPTK_NUMPAD8
,
64
MRPTK_NUMPAD9
,
65
MRPTK_MULTIPLY
,
66
MRPTK_ADD
,
67
MRPTK_SEPARATOR
,
68
MRPTK_SUBTRACT
,
69
MRPTK_DECIMAL
,
70
MRPTK_DIVIDE
,
71
MRPTK_F1
,
72
MRPTK_F2
,
73
MRPTK_F3
,
74
MRPTK_F4
,
75
MRPTK_F5
,
76
MRPTK_F6
,
77
MRPTK_F7
,
78
MRPTK_F8
,
79
MRPTK_F9
,
80
MRPTK_F10
,
81
MRPTK_F11
,
82
MRPTK_F12
,
83
MRPTK_F13
,
84
MRPTK_F14
,
85
MRPTK_F15
,
86
MRPTK_F16
,
87
MRPTK_F17
,
88
MRPTK_F18
,
89
MRPTK_F19
,
90
MRPTK_F20
,
91
MRPTK_F21
,
92
MRPTK_F22
,
93
MRPTK_F23
,
94
MRPTK_F24
,
95
MRPTK_NUMLOCK
,
96
MRPTK_SCROLL
,
97
MRPTK_PAGEUP
,
98
MRPTK_PAGEDOWN
,
99
100
MRPTK_NUMPAD_SPACE
,
101
MRPTK_NUMPAD_TAB
,
102
MRPTK_NUMPAD_ENTER
,
103
MRPTK_NUMPAD_F1
,
104
MRPTK_NUMPAD_F2
,
105
MRPTK_NUMPAD_F3
,
106
MRPTK_NUMPAD_F4
,
107
MRPTK_NUMPAD_HOME
,
108
MRPTK_NUMPAD_LEFT
,
109
MRPTK_NUMPAD_UP
,
110
MRPTK_NUMPAD_RIGHT
,
111
MRPTK_NUMPAD_DOWN
,
112
MRPTK_NUMPAD_PAGEUP
,
113
MRPTK_NUMPAD_PAGEDOWN
,
114
115
MRPTK_NUMPAD_END
,
116
MRPTK_NUMPAD_BEGIN
,
117
MRPTK_NUMPAD_INSERT
,
118
MRPTK_NUMPAD_DELETE
,
119
MRPTK_NUMPAD_EQUAL
,
120
MRPTK_NUMPAD_MULTIPLY
,
121
MRPTK_NUMPAD_ADD
,
122
MRPTK_NUMPAD_SEPARATOR
,
123
MRPTK_NUMPAD_SUBTRACT
,
124
MRPTK_NUMPAD_DECIMAL
,
125
MRPTK_NUMPAD_DIVIDE
,
126
127
MRPTK_WINDOWS_LEFT
,
128
MRPTK_WINDOWS_RIGHT
,
129
MRPTK_WINDOWS_MENU
,
130
MRPTK_COMMAND
,
131
132
/* Hardware-specific buttons */
133
MRPTK_SPECIAL1
= 193,
134
MRPTK_SPECIAL2
,
135
MRPTK_SPECIAL3
,
136
MRPTK_SPECIAL4
,
137
MRPTK_SPECIAL5
,
138
MRPTK_SPECIAL6
,
139
MRPTK_SPECIAL7
,
140
MRPTK_SPECIAL8
,
141
MRPTK_SPECIAL9
,
142
MRPTK_SPECIAL10
,
143
MRPTK_SPECIAL11
,
144
MRPTK_SPECIAL12
,
145
MRPTK_SPECIAL13
,
146
MRPTK_SPECIAL14
,
147
MRPTK_SPECIAL15
,
148
MRPTK_SPECIAL16
,
149
MRPTK_SPECIAL17
,
150
MRPTK_SPECIAL18
,
151
MRPTK_SPECIAL19
,
152
MRPTK_SPECIAL20
153
};
154
155
/* This enum contains bit mask constants used in wxKeyEvent */
156
enum
mrptKeyModifier
157
{
158
MRPTKMOD_NONE
= 0x0000,
159
MRPTKMOD_ALT
= 0x1000,
160
MRPTKMOD_CONTROL
= 0x2000,
161
MRPTKMOD_ALTGR
=
MRPTKMOD_ALT
|
MRPTKMOD_CONTROL
,
162
MRPTKMOD_SHIFT
= 0x4000,
163
MRPTKMOD_META
= 0x8000,
164
MRPTKMOD_WIN
=
MRPTKMOD_META
,
165
#ifdef __APPLE__
166
MRPTKMOD_CMD
=
MRPTKMOD_META
167
#else
168
MRPTKMOD_CMD
=
MRPTKMOD_CONTROL
169
#endif
170
};
171
172
}
// namespace mrpt::gui
mrpt::gui::MRPTK_SPECIAL3
Definition:
keycodes.h:135
mrpt::gui::MRPTKMOD_ALT
Definition:
keycodes.h:159
mrpt::gui::MRPTK_F18
Definition:
keycodes.h:88
mrpt::gui::MRPTK_SPECIAL8
Definition:
keycodes.h:140
mrpt::gui::MRPTK_CANCEL
Definition:
keycodes.h:34
mrpt::gui::MRPTK_NUMPAD1
Definition:
keycodes.h:56
mrpt::gui::MRPTK_SPECIAL1
Definition:
keycodes.h:133
mrpt::gui::MRPTK_NUMPAD_F4
Definition:
keycodes.h:106
mrpt::gui::MRPTK_F10
Definition:
keycodes.h:80
mrpt::gui::MRPTK_SPECIAL5
Definition:
keycodes.h:137
mrpt::gui::MRPTK_RIGHT
Definition:
keycodes.h:47
mrpt::gui::MRPTK_SEPARATOR
Definition:
keycodes.h:67
mrpt::gui::MRPTK_F19
Definition:
keycodes.h:89
mrpt::gui::MRPTK_NUMLOCK
Definition:
keycodes.h:95
mrpt::gui::MRPTK_F15
Definition:
keycodes.h:85
mrpt::gui::MRPTK_WINDOWS_LEFT
Definition:
keycodes.h:127
mrpt::gui::MRPTK_DOWN
Definition:
keycodes.h:48
mrpt::gui::MRPTK_F21
Definition:
keycodes.h:91
mrpt::gui::MRPTK_END
Definition:
keycodes.h:43
mrpt::gui::MRPTK_WINDOWS_RIGHT
Definition:
keycodes.h:128
mrpt::gui::MRPTK_F8
Definition:
keycodes.h:78
mrpt::gui::MRPTKMOD_CMD
Definition:
keycodes.h:168
mrpt::gui::mrptKeyCode
mrptKeyCode
Definition:
keycodes.h:22
mrpt::gui::MRPTK_DELETE
Definition:
keycodes.h:29
mrpt::gui::MRPTK_NUMPAD8
Definition:
keycodes.h:63
mrpt::gui::MRPTK_MBUTTON
Definition:
keycodes.h:35
mrpt::gui::MRPTK_CLEAR
Definition:
keycodes.h:36
mrpt::gui::MRPTKMOD_SHIFT
Definition:
keycodes.h:162
mrpt::gui::MRPTK_NUMPAD_F3
Definition:
keycodes.h:105
mrpt::gui::MRPTK_LBUTTON
Definition:
keycodes.h:32
mrpt::gui::MRPTK_NUMPAD0
Definition:
keycodes.h:55
mrpt::gui::MRPTK_NUMPAD_SPACE
Definition:
keycodes.h:100
mrpt::gui::MRPTK_NUMPAD_F1
Definition:
keycodes.h:103
mrpt::gui::mrptKeyModifier
mrptKeyModifier
Definition:
keycodes.h:156
mrpt::gui::MRPTK_NUMPAD_END
Definition:
keycodes.h:115
mrpt::gui::MRPTK_SHIFT
Definition:
keycodes.h:37
mrpt::gui::MRPTK_NUMPAD_ENTER
Definition:
keycodes.h:102
mrpt::gui::MRPTK_TAB
Definition:
keycodes.h:25
mrpt::gui::MRPTK_SPECIAL11
Definition:
keycodes.h:143
mrpt::gui::MRPTK_NUMPAD_SEPARATOR
Definition:
keycodes.h:122
mrpt::gui::MRPTK_SPECIAL14
Definition:
keycodes.h:146
mrpt::gui::MRPTK_PAGEUP
Definition:
keycodes.h:97
mrpt::gui::MRPTK_LEFT
Definition:
keycodes.h:45
mrpt::gui::MRPTK_WINDOWS_MENU
Definition:
keycodes.h:129
mrpt::gui::MRPTK_PAUSE
Definition:
keycodes.h:41
mrpt::gui::MRPTK_NUMPAD_INSERT
Definition:
keycodes.h:117
mrpt::gui::MRPTK_SPECIAL19
Definition:
keycodes.h:151
mrpt::gui::MRPTK_F6
Definition:
keycodes.h:76
mrpt::gui::MRPTK_NUMPAD_DELETE
Definition:
keycodes.h:118
mrpt::gui::MRPTK_NUMPAD_ADD
Definition:
keycodes.h:121
mrpt::gui::MRPTK_ALT
Definition:
keycodes.h:38
mrpt::gui::MRPTK_F22
Definition:
keycodes.h:92
mrpt::gui::MRPTK_INSERT
Definition:
keycodes.h:53
mrpt::gui::MRPTK_NUMPAD_DOWN
Definition:
keycodes.h:111
mrpt::gui::MRPTK_SPECIAL7
Definition:
keycodes.h:139
mrpt::gui::MRPTK_SPACE
Definition:
keycodes.h:28
mrpt::gui::MRPTK_DIVIDE
Definition:
keycodes.h:70
mrpt::gui::MRPTK_F17
Definition:
keycodes.h:87
mrpt::gui::MRPTK_EXECUTE
Definition:
keycodes.h:51
mrpt::gui::MRPTK_DECIMAL
Definition:
keycodes.h:69
mrpt::gui::MRPTK_CONTROL
Definition:
keycodes.h:39
mrpt::gui::MRPTK_NUMPAD7
Definition:
keycodes.h:62
mrpt::gui::MRPTK_F23
Definition:
keycodes.h:93
mrpt::gui::MRPTK_NUMPAD_BEGIN
Definition:
keycodes.h:116
mrpt::gui::MRPTK_RETURN
Definition:
keycodes.h:26
mrpt::gui::MRPTK_NUMPAD_MULTIPLY
Definition:
keycodes.h:120
mrpt::gui::MRPTK_SPECIAL6
Definition:
keycodes.h:138
mrpt::gui::MRPTK_F20
Definition:
keycodes.h:90
mrpt::gui::MRPTK_NUMPAD_UP
Definition:
keycodes.h:109
mrpt::gui::MRPTK_SELECT
Definition:
keycodes.h:49
mrpt::gui::MRPTK_NUMPAD3
Definition:
keycodes.h:58
mrpt::gui::MRPTK_NUMPAD_HOME
Definition:
keycodes.h:107
mrpt::gui::MRPTK_ESCAPE
Definition:
keycodes.h:27
mrpt::gui::MRPTK_SPECIAL2
Definition:
keycodes.h:134
mrpt::gui::MRPTK_F7
Definition:
keycodes.h:77
mrpt::gui::MRPTK_NUMPAD6
Definition:
keycodes.h:61
mrpt::gui::MRPTK_RBUTTON
Definition:
keycodes.h:33
mrpt::gui::MRPTKMOD_NONE
Definition:
keycodes.h:158
mrpt::gui::MRPTK_HOME
Definition:
keycodes.h:44
mrpt::gui::MRPTK_NUMPAD5
Definition:
keycodes.h:60
mrpt::gui::MRPTK_SPECIAL16
Definition:
keycodes.h:148
mrpt::gui::MRPTK_F14
Definition:
keycodes.h:84
mrpt::gui::MRPTK_F4
Definition:
keycodes.h:74
mrpt::gui::MRPTK_F2
Definition:
keycodes.h:72
mrpt::gui::MRPTK_NUMPAD4
Definition:
keycodes.h:59
mrpt::gui::MRPTK_F11
Definition:
keycodes.h:81
mrpt::gui::MRPTK_SCROLL
Definition:
keycodes.h:96
mrpt::gui::MRPTK_SPECIAL13
Definition:
keycodes.h:145
mrpt::gui::MRPTK_MULTIPLY
Definition:
keycodes.h:65
mrpt::gui::MRPTKMOD_META
Definition:
keycodes.h:163
mrpt::gui::MRPTK_PRINT
Definition:
keycodes.h:50
mrpt::gui::MRPTK_UP
Definition:
keycodes.h:46
mrpt::gui::MRPTK_MENU
Definition:
keycodes.h:40
mrpt::gui::MRPTK_SPECIAL10
Definition:
keycodes.h:142
mrpt::gui::MRPTK_NUMPAD_SUBTRACT
Definition:
keycodes.h:123
mrpt::gui::MRPTK_NUMPAD_DIVIDE
Definition:
keycodes.h:125
mrpt::gui::MRPTK_SPECIAL18
Definition:
keycodes.h:150
mrpt::gui::MRPTK_F16
Definition:
keycodes.h:86
mrpt::gui::MRPTK_CAPITAL
Definition:
keycodes.h:42
mrpt::gui::MRPTK_F1
Definition:
keycodes.h:71
mrpt::gui::MRPTK_F9
Definition:
keycodes.h:79
mrpt::gui::MRPTK_NUMPAD2
Definition:
keycodes.h:57
mrpt::gui::MRPTK_SUBTRACT
Definition:
keycodes.h:68
mrpt::gui::MRPTK_F5
Definition:
keycodes.h:75
mrpt::gui::MRPTK_ADD
Definition:
keycodes.h:66
mrpt::gui::MRPTK_NUMPAD_TAB
Definition:
keycodes.h:101
mrpt::gui::MRPTK_NUMPAD_LEFT
Definition:
keycodes.h:108
mrpt::gui::MRPTK_NUMPAD_RIGHT
Definition:
keycodes.h:110
mrpt::gui::MRPTK_SPECIAL4
Definition:
keycodes.h:136
mrpt::gui
Classes for creating GUI windows for 2D and 3D visualization.
Definition:
about_box.h:14
mrpt::gui::MRPTKMOD_ALTGR
Definition:
keycodes.h:161
mrpt::gui::MRPTK_SPECIAL17
Definition:
keycodes.h:149
mrpt::gui::MRPTK_COMMAND
Definition:
keycodes.h:130
mrpt::gui::MRPTK_F12
Definition:
keycodes.h:82
mrpt::gui::MRPTK_HELP
Definition:
keycodes.h:54
mrpt::gui::MRPTKMOD_CONTROL
Definition:
keycodes.h:160
mrpt::gui::MRPTK_NUMPAD_F2
Definition:
keycodes.h:104
mrpt::gui::MRPTK_SPECIAL15
Definition:
keycodes.h:147
mrpt::gui::MRPTK_SNAPSHOT
Definition:
keycodes.h:52
mrpt::gui::MRPTK_F13
Definition:
keycodes.h:83
mrpt::gui::MRPTK_NUMPAD_EQUAL
Definition:
keycodes.h:119
mrpt::gui::MRPTK_F3
Definition:
keycodes.h:73
mrpt::gui::MRPTK_NUMPAD_PAGEDOWN
Definition:
keycodes.h:113
mrpt::gui::MRPTK_SPECIAL20
Definition:
keycodes.h:152
mrpt::gui::MRPTK_BACK
Definition:
keycodes.h:24
mrpt::gui::MRPTK_SPECIAL9
Definition:
keycodes.h:141
mrpt::gui::MRPTK_PAGEDOWN
Definition:
keycodes.h:98
mrpt::gui::MRPTK_START
Definition:
keycodes.h:31
mrpt::gui::MRPTK_NUMPAD_PAGEUP
Definition:
keycodes.h:112
mrpt::gui::MRPTK_NUMPAD9
Definition:
keycodes.h:64
mrpt::gui::MRPTKMOD_WIN
Definition:
keycodes.h:164
mrpt::gui::MRPTK_SPECIAL12
Definition:
keycodes.h:144
mrpt::gui::MRPTK_F24
Definition:
keycodes.h:94
mrpt::gui::MRPTK_NUMPAD_DECIMAL
Definition:
keycodes.h:124
Page generated by
Doxygen 1.8.14
for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020