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