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