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