Mercurial > sdl-ios-xcode
comparison src/video/photon/SDL_photon_keycodes.h @ 3108:aa1897bee1e9
Continue working on QNX Photon with OpenGL ES support
author | Mike Gorchak <lestat@i.com.ua> |
---|---|
date | Tue, 28 Apr 2009 04:30:52 +0000 |
parents | |
children | 7f684f249ec9 |
comparison
equal
deleted
inserted
replaced
3107:3cf236d3cd81 | 3108:aa1897bee1e9 |
---|---|
1 /* | |
2 SDL - Simple DirectMedia Layer | |
3 Copyright (C) 1997-2009 Sam Lantinga | |
4 | |
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. | |
9 | |
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. | |
14 | |
15 You should have received a copy of the GNU Lesser General Public | |
16 License along with this library; if not, write to the Free Software | |
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | |
19 Sam Lantinga | |
20 slouken@libsdl.org | |
21 | |
22 QNX Photon GUI SDL driver | |
23 Copyright (C) 2009 Mike Gorchak | |
24 (mike@malva.ua, lestat@i.com.ua) | |
25 */ | |
26 | |
27 #ifndef __SDL_PHOTON_KEYCODES_H__ | |
28 #define __SDL_PHOTON_KEYCODES_H__ | |
29 | |
30 #define PHOTON_SCANCODE_ESCAPE 0x01 | |
31 #define PHOTON_SCANCODE_F1 0x3B | |
32 #define PHOTON_SCANCODE_F2 0x3C | |
33 #define PHOTON_SCANCODE_F3 0x3D | |
34 #define PHOTON_SCANCODE_F4 0x3E | |
35 #define PHOTON_SCANCODE_F5 0x3F | |
36 #define PHOTON_SCANCODE_F6 0x40 | |
37 #define PHOTON_SCANCODE_F7 0x41 | |
38 #define PHOTON_SCANCODE_F8 0x42 | |
39 #define PHOTON_SCANCODE_F9 0x43 | |
40 #define PHOTON_SCANCODE_F10 0x44 | |
41 #define PHOTON_SCANCODE_F11 0x57 | |
42 #define PHOTON_SCANCODE_F12 0x58 | |
43 | |
44 #define PHOTON_SCANCODE_BACKQOUTE 0x29 | |
45 #define PHOTON_SCANCODE_1 0x02 | |
46 #define PHOTON_SCANCODE_2 0x03 | |
47 #define PHOTON_SCANCODE_3 0x04 | |
48 #define PHOTON_SCANCODE_4 0x05 | |
49 #define PHOTON_SCANCODE_5 0x06 | |
50 #define PHOTON_SCANCODE_6 0x07 | |
51 #define PHOTON_SCANCODE_7 0x08 | |
52 #define PHOTON_SCANCODE_8 0x09 | |
53 #define PHOTON_SCANCODE_9 0x0A | |
54 #define PHOTON_SCANCODE_0 0x0B | |
55 #define PHOTON_SCANCODE_MINUS 0x0C | |
56 #define PHOTON_SCANCODE_EQUAL 0x0D | |
57 #define PHOTON_SCANCODE_BACKSPACE 0x0E | |
58 | |
59 #define PHOTON_SCANCODE_TAB 0x0F | |
60 #define PHOTON_SCANCODE_Q 0x10 | |
61 #define PHOTON_SCANCODE_W 0x11 | |
62 #define PHOTON_SCANCODE_E 0x12 | |
63 #define PHOTON_SCANCODE_R 0x13 | |
64 #define PHOTON_SCANCODE_T 0x14 | |
65 #define PHOTON_SCANCODE_Y 0x15 | |
66 #define PHOTON_SCANCODE_U 0x16 | |
67 #define PHOTON_SCANCODE_I 0x17 | |
68 #define PHOTON_SCANCODE_O 0x18 | |
69 #define PHOTON_SCANCODE_P 0x19 | |
70 #define PHOTON_SCANCODE_LEFT_SQ_BR 0x1A | |
71 #define PHOTON_SCANCODE_RIGHT_SQ_BR 0x1B | |
72 #define PHOTON_SCANCODE_ENTER 0x1C | |
73 | |
74 #define PHOTON_SCANCODE_CAPSLOCK 0x3A | |
75 #define PHOTON_SCANCODE_A 0x1E | |
76 #define PHOTON_SCANCODE_S 0x1F | |
77 #define PHOTON_SCANCODE_D 0x20 | |
78 #define PHOTON_SCANCODE_F 0x21 | |
79 #define PHOTON_SCANCODE_G 0x22 | |
80 #define PHOTON_SCANCODE_H 0x23 | |
81 #define PHOTON_SCANCODE_J 0x24 | |
82 #define PHOTON_SCANCODE_K 0x25 | |
83 #define PHOTON_SCANCODE_L 0x26 | |
84 #define PHOTON_SCANCODE_SEMICOLON 0x27 | |
85 #define PHOTON_SCANCODE_QUOTE 0x28 | |
86 #define PHOTON_SCANCODE_BACKSLASH 0x2B | |
87 | |
88 #define PHOTON_SCANCODE_LEFT_SHIFT 0x2A | |
89 #define PHOTON_SCANCODE_Z 0x2C | |
90 #define PHOTON_SCANCODE_X 0x2D | |
91 #define PHOTON_SCANCODE_C 0x2E | |
92 #define PHOTON_SCANCODE_V 0x2F | |
93 #define PHOTON_SCANCODE_B 0x30 | |
94 #define PHOTON_SCANCODE_N 0x31 | |
95 #define PHOTON_SCANCODE_M 0x32 | |
96 #define PHOTON_SCANCODE_COMMA 0x33 | |
97 #define PHOTON_SCANCODE_POINT 0x34 | |
98 #define PHOTON_SCANCODE_SLASH 0x35 | |
99 #define PHOTON_SCANCODE_RIGHT_SHIFT 0x36 | |
100 | |
101 #define PHOTON_SCANCODE_CTRL 0x1D | |
102 #define PHOTON_SCANCODE_WFLAG 0x5B | |
103 #define PHOTON_SCANCODE_ALT 0x38 | |
104 #define PHOTON_SCANCODE_SPACE 0x39 | |
105 #define PHOTON_SCANCODE_MENU 0x5D | |
106 | |
107 #define PHOTON_SCANCODE_PRNSCR 0x54 /* only key pressed event, no release */ | |
108 #define PHOTON_SCANCODE_SCROLLLOCK 0x46 | |
109 /* #define PHOTON_SCANCODE_PAUSE 0x?? */ /* pause doesn't generates a scancode */ | |
110 #define PHOTON_SCANCODE_INSERT 0x52 | |
111 #define PHOTON_SCANCODE_HOME 0x47 | |
112 #define PHOTON_SCANCODE_PAGEUP 0x49 | |
113 #define PHOTON_SCANCODE_DELETE 0x53 | |
114 #define PHOTON_SCANCODE_END 0x4F | |
115 #define PHOTON_SCANCODE_PAGEDOWN 0x51 | |
116 #define PHOTON_SCANCODE_UP 0x48 | |
117 #define PHOTON_SCANCODE_DOWN 0x50 | |
118 #define PHOTON_SCANCODE_LEFT 0x4B | |
119 #define PHOTON_SCANCODE_RIGHT 0x4D | |
120 | |
121 #define PHOTON_SCANCODE_NUMLOCK 0x45 | |
122 | |
123 #endif /* __SDL_PHOTON_KEYCODES_H__ */ |