]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/keycode.tex
Added missing include
[wxWidgets.git] / docs / latex / wx / keycode.tex
CommitLineData
3972fb49
JS
1\section{Keycodes}\label{keycodes}
2
21ed3f20
VZ
3\wxheading{Include files}
4
5<wx/defs.h>
6
702c4208
VZ
7Keypresses are represented by an enumerated type, wxKeyCode. The possible
8values are the ASCII character codes, plus the following:
3972fb49
JS
9
10{\small
11\begin{verbatim}
702c4208
VZ
12 WXK_BACK = 8
13 WXK_TAB = 9
14 WXK_RETURN = 13
15 WXK_ESCAPE = 27
16 WXK_SPACE = 32
17 WXK_DELETE = 127
3972fb49 18
702c4208
VZ
19 WXK_START = 300
20 WXK_LBUTTON
21 WXK_RBUTTON
22 WXK_CANCEL
23 WXK_MBUTTON
24 WXK_CLEAR
25 WXK_SHIFT
26 WXK_CONTROL
27 WXK_MENU
28 WXK_PAUSE
29 WXK_CAPITAL
30 WXK_PRIOR
31 WXK_NEXT
32 WXK_END
33 WXK_HOME
34 WXK_LEFT
35 WXK_UP
36 WXK_RIGHT
37 WXK_DOWN
38 WXK_SELECT
39 WXK_PRINT
40 WXK_EXECUTE
41 WXK_SNAPSHOT
42 WXK_INSERT
43 WXK_HELP
44 WXK_NUMPAD0
45 WXK_NUMPAD1
46 WXK_NUMPAD2
47 WXK_NUMPAD3
48 WXK_NUMPAD4
49 WXK_NUMPAD5
50 WXK_NUMPAD6
51 WXK_NUMPAD7
52 WXK_NUMPAD8
53 WXK_NUMPAD9
54 WXK_MULTIPLY
55 WXK_ADD
56 WXK_SEPARATOR
57 WXK_SUBTRACT
58 WXK_DECIMAL
59 WXK_DIVIDE
60 WXK_F1
61 WXK_F2
62 WXK_F3
63 WXK_F4
64 WXK_F5
65 WXK_F6
66 WXK_F7
67 WXK_F8
68 WXK_F9
69 WXK_F10
70 WXK_F11
71 WXK_F12
72 WXK_F13
73 WXK_F14
74 WXK_F15
75 WXK_F16
76 WXK_F17
77 WXK_F18
78 WXK_F19
79 WXK_F20
80 WXK_F21
81 WXK_F22
82 WXK_F23
83 WXK_F24
84 WXK_NUMLOCK
85 WXK_SCROLL
86 WXK_PAGEUP,
87 WXK_PAGEDOWN,
88
89 WXK_NUMPAD_SPACE,
90 WXK_NUMPAD_TAB,
91 WXK_NUMPAD_ENTER,
92 WXK_NUMPAD_F1,
93 WXK_NUMPAD_F2,
94 WXK_NUMPAD_F3,
95 WXK_NUMPAD_F4,
96 WXK_NUMPAD_HOME,
97 WXK_NUMPAD_LEFT,
98 WXK_NUMPAD_UP,
99 WXK_NUMPAD_RIGHT,
100 WXK_NUMPAD_DOWN,
101 WXK_NUMPAD_PRIOR,
102 WXK_NUMPAD_PAGEUP,
103 WXK_NUMPAD_NEXT,
104 WXK_NUMPAD_PAGEDOWN,
105 WXK_NUMPAD_END,
106 WXK_NUMPAD_BEGIN,
107 WXK_NUMPAD_INSERT,
108 WXK_NUMPAD_DELETE,
109 WXK_NUMPAD_EQUAL,
110 WXK_NUMPAD_MULTIPLY,
111 WXK_NUMPAD_ADD,
112 WXK_NUMPAD_SEPARATOR,
113 WXK_NUMPAD_SUBTRACT,
114 WXK_NUMPAD_DECIMAL,
115 WXK_NUMPAD_DIVIDE,
116
117 // the following key codes are only generated under Windows currently
118 WXK_WINDOWS_LEFT,
119 WXK_WINDOWS_RIGHT,
afafd942
JS
120 WXK_WINDOWS_MENU,
121 WXK_COMMAND,
122
123 // Hardware-specific buttons
124 WXK_SPECIAL1 = 193,
125 WXK_SPECIAL2,
126 WXK_SPECIAL3,
127 WXK_SPECIAL4,
128 WXK_SPECIAL5,
129 WXK_SPECIAL6,
130 WXK_SPECIAL7,
131 WXK_SPECIAL8,
132 WXK_SPECIAL9,
133 WXK_SPECIAL10,
134 WXK_SPECIAL11,
135 WXK_SPECIAL12,
136 WXK_SPECIAL13,
137 WXK_SPECIAL14,
138 WXK_SPECIAL15,
139 WXK_SPECIAL16,
140 WXK_SPECIAL17,
141 WXK_SPECIAL18,
142 WXK_SPECIAL19,
143 WXK_SPECIAL20
3972fb49
JS
144\end{verbatim}
145}
146