2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2009 Sam Lantinga
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with XBMC; see the file COPYING. If not, see
17 <http://www.gnu.org/licenses/>.
26 // The XBMC_vkey identifies a key that is mapped to an action or function.
27 // The keysym.sym generated by SDL_KEYDOWN is mapped to a vkey and the vkey
28 // is used to lookup an action in the global mapping table.
29 // The vkey values are the ASCII code of the character where this is possible.
30 // Non-printing keypresses get a value in the range 0x80 - 0xFF.
31 // Note that the vkey is a byte value so it cannot be greater than 0xFF.
40 XBMCVK_EXCLAIM
= 0x21,
41 XBMCVK_QUOTEDBL
= 0x22,
44 XBMCVK_PERCENT
= 0x25,
45 XBMCVK_AMPERSAND
= 0x26,
47 XBMCVK_LEFTPAREN
= 0x28,
48 XBMCVK_RIGHTPAREN
= 0x29,
49 XBMCVK_ASTERISK
= 0x2A,
68 XBMCVK_SEMICOLON
= 0x3B,
71 XBMCVK_GREATER
= 0x3E,
72 XBMCVK_QUESTION
= 0x3F,
102 XBMCVK_LEFTBRACKET
= 0x5B,
103 XBMCVK_BACKSLASH
= 0x5C,
104 XBMCVK_RIGHTBRACKET
= 0x5D,
106 XBMCVK_UNDERSCORE
= 0x5F,
107 XBMCVK_BACKQUOTE
= 0x60,
109 // Lowercase letters 0x61 - 0x7a have the same vkey as uppercase, so
110 // use this block for the numpad keys
111 XBMCVK_NUMPADDIVIDE
= 0x61,
112 XBMCVK_NUMPADTIMES
= 0x62,
113 XBMCVK_NUMPADMINUS
= 0x63,
114 XBMCVK_NUMPADPLUS
= 0x64,
115 XBMCVK_NUMPADENTER
= 0x65,
116 XBMCVK_NUMPADPERIOD
= 0x66,
117 XBMCVK_NUMPAD0
= 0x70,
118 XBMCVK_NUMPAD1
= 0x71,
119 XBMCVK_NUMPAD2
= 0x72,
120 XBMCVK_NUMPAD3
= 0x73,
121 XBMCVK_NUMPAD4
= 0x74,
122 XBMCVK_NUMPAD5
= 0x75,
123 XBMCVK_NUMPAD6
= 0x76,
124 XBMCVK_NUMPAD7
= 0x77,
125 XBMCVK_NUMPAD8
= 0x78,
126 XBMCVK_NUMPAD9
= 0x79,
128 XBMCVK_LEFTBRACE
= 0x7B,
130 XBMCVK_RIGHTBRACE
= 0x7D,
133 // Non-printing characters
139 XBMCVK_PAGEUP
= 0x84,
140 XBMCVK_PAGEDOWN
= 0x85,
141 XBMCVK_INSERT
= 0x86,
142 XBMCVK_DELETE
= 0x87,
171 XBMCVK_BROWSER_BACK
= 0xB0,
172 XBMCVK_BROWSER_FORWARD
= 0xB1,
173 XBMCVK_BROWSER_REFRESH
= 0xB2,
174 XBMCVK_BROWSER_STOP
= 0xB3,
175 XBMCVK_BROWSER_SEARCH
= 0xB4,
176 XBMCVK_BROWSER_FAVORITES
= 0xB5,
177 XBMCVK_BROWSER_HOME
= 0xB6,
178 XBMCVK_VOLUME_MUTE
= 0xB7,
179 XBMCVK_VOLUME_DOWN
= 0xB8,
180 XBMCVK_VOLUME_UP
= 0xB9,
181 XBMCVK_MEDIA_NEXT_TRACK
= 0xBA,
182 XBMCVK_MEDIA_PREV_TRACK
= 0xBB,
183 XBMCVK_MEDIA_STOP
= 0xBC,
184 XBMCVK_MEDIA_PLAY_PAUSE
= 0xBD,
185 XBMCVK_LAUNCH_MAIL
= 0xBE,
186 XBMCVK_LAUNCH_MEDIA_SELECT
= 0xBF,
187 XBMCVK_LAUNCH_APP1
= 0xC0,
188 XBMCVK_LAUNCH_APP2
= 0xC1,
189 XBMCVK_LAUNCH_FILE_BROWSER
= 0xC2,
190 XBMCVK_LAUNCH_MEDIA_CENTER
= 0xC3,
191 XBMCVK_MEDIA_REWIND
= 0xC4,
192 XBMCVK_MEDIA_FASTFORWARD
= 0xC5,
193 XBMCVK_MEDIA_RECORD
= 0xC6,
195 XBMCVK_LCONTROL
= 0xD0,
196 XBMCVK_RCONTROL
= 0xD1,
197 XBMCVK_LSHIFT
= 0xD2,
198 XBMCVK_RSHIFT
= 0xD3,
204 XBMCVK_CAPSLOCK
= 0xD9,
205 XBMCVK_NUMLOCK
= 0xDA,
207 XBMCVK_PRINTSCREEN
= 0xDB,
208 XBMCVK_SCROLLLOCK
= 0xDC,
213 XBMCVK_SETTINGS
= 0xE1,
217 XBMCVK_YELLOW
= 0xE5,
221 XBMCVK_FAVORITES
= 0xE9,
222 XBMCVK_HOMEPAGE
= 0xEA,
223 XBMCVK_CONFIG
= 0xEB,
229 // These should be in winuser.h. Not sure why they have been defined here
269 /* These keys haven't been defined, but were experimentally determined */
271 #define VK_SEMICOLON 0xBA
272 #define VK_EQUALS 0xBB
273 #define VK_COMMA 0xBC
274 #define VK_MINUS 0xBD
275 #define VK_PERIOD 0xBE
276 #define VK_SLASH 0xBF
277 #define VK_GRAVE 0xC0
278 #define VK_LBRACKET 0xDB
279 #define VK_BACKSLASH 0xDC
280 #define VK_RBRACKET 0xDD
281 #define VK_APOSTROPHE 0xDE
282 #define VK_BACKTICK 0xDF
283 #define VK_OEM_102 0xE2
286 #endif // XBMC_vkeys_h