diff options
author | Franklin Wei <git@fwei.tk> | 2017-01-21 15:18:31 -0500 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-12-23 21:01:26 -0500 |
commit | a855d6202536ff28e5aae4f22a0f31d8f5b325d0 (patch) | |
tree | 8c75f224dd64ed360505afa8843d016b0d75000b /apps/plugins/sdl/src/video/ataricommon/SDL_atarikeys.h | |
parent | 01c6dcf6c7b9bb1ad2fa0450f99bacc5f3d3e04b (diff) | |
download | rockbox-a855d6202536ff28e5aae4f22a0f31d8f5b325d0.tar.gz rockbox-a855d6202536ff28e5aae4f22a0f31d8f5b325d0.zip |
Port of Duke Nukem 3D
This ports Fabien Sanglard's Chocolate Duke to run on a version of SDL
for Rockbox.
Change-Id: I8f2c4c78af19de10c1633ed7bb7a997b43256dd9
Diffstat (limited to 'apps/plugins/sdl/src/video/ataricommon/SDL_atarikeys.h')
-rw-r--r-- | apps/plugins/sdl/src/video/ataricommon/SDL_atarikeys.h | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/apps/plugins/sdl/src/video/ataricommon/SDL_atarikeys.h b/apps/plugins/sdl/src/video/ataricommon/SDL_atarikeys.h new file mode 100644 index 0000000000..a9f7cfd41b --- /dev/null +++ b/apps/plugins/sdl/src/video/ataricommon/SDL_atarikeys.h | |||
@@ -0,0 +1,140 @@ | |||
1 | /* | ||
2 | SDL - Simple DirectMedia Layer | ||
3 | Copyright (C) 1997-2012 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 | |||
23 | /* | ||
24 | * Atari Scancode definitions | ||
25 | * | ||
26 | * Patrice Mandin | ||
27 | */ | ||
28 | |||
29 | #ifndef _SDL_ATARIKEYS_H_ | ||
30 | #define _SDL_ATARIKEYS_H_ | ||
31 | |||
32 | /* --- Keyboard scancodes --- */ | ||
33 | /* taken from svgalib/vgakeyboard.h */ | ||
34 | |||
35 | #define SCANCODE_ESCAPE 0x01 | ||
36 | #define SCANCODE_1 0x02 | ||
37 | #define SCANCODE_2 0x03 | ||
38 | #define SCANCODE_3 0x04 | ||
39 | #define SCANCODE_4 0x05 | ||
40 | #define SCANCODE_5 0x06 | ||
41 | #define SCANCODE_6 0x07 | ||
42 | #define SCANCODE_7 0x08 | ||
43 | #define SCANCODE_8 0x09 | ||
44 | #define SCANCODE_9 0x0a | ||
45 | #define SCANCODE_0 0x0b | ||
46 | #define SCANCODE_MINUS 0x0c | ||
47 | #define SCANCODE_EQUAL 0x0d | ||
48 | #define SCANCODE_BACKSPACE 0x0e | ||
49 | |||
50 | #define SCANCODE_TAB 0x0f | ||
51 | #define SCANCODE_Q 0x10 | ||
52 | #define SCANCODE_W 0x11 | ||
53 | #define SCANCODE_E 0x12 | ||
54 | #define SCANCODE_R 0x13 | ||
55 | #define SCANCODE_T 0x14 | ||
56 | #define SCANCODE_Y 0x15 | ||
57 | #define SCANCODE_U 0x16 | ||
58 | #define SCANCODE_I 0x17 | ||
59 | #define SCANCODE_O 0x18 | ||
60 | #define SCANCODE_P 0x19 | ||
61 | #define SCANCODE_BRACKET_LEFT 0x1a | ||
62 | #define SCANCODE_BRACKET_RIGHT 0x1b | ||
63 | #define SCANCODE_ENTER 0x1c | ||
64 | #define SCANCODE_DELETE 0x53 | ||
65 | |||
66 | #define SCANCODE_LEFTCONTROL 0x1d | ||
67 | #define SCANCODE_A 0x1e | ||
68 | #define SCANCODE_S 0x1f | ||
69 | #define SCANCODE_D 0x20 | ||
70 | #define SCANCODE_F 0x21 | ||
71 | #define SCANCODE_G 0x22 | ||
72 | #define SCANCODE_H 0x23 | ||
73 | #define SCANCODE_J 0x24 | ||
74 | #define SCANCODE_K 0x25 | ||
75 | #define SCANCODE_L 0x26 | ||
76 | #define SCANCODE_SEMICOLON 0x27 | ||
77 | #define SCANCODE_APOSTROPHE 0x28 | ||
78 | #define SCANCODE_GRAVE 0x29 | ||
79 | |||
80 | #define SCANCODE_LEFTSHIFT 0x2a | ||
81 | #define SCANCODE_BACKSLASH 0x2b | ||
82 | #define SCANCODE_Z 0x2c | ||
83 | #define SCANCODE_X 0x2d | ||
84 | #define SCANCODE_C 0x2e | ||
85 | #define SCANCODE_V 0x2f | ||
86 | #define SCANCODE_B 0x30 | ||
87 | #define SCANCODE_N 0x31 | ||
88 | #define SCANCODE_M 0x32 | ||
89 | #define SCANCODE_COMMA 0x33 | ||
90 | #define SCANCODE_PERIOD 0x34 | ||
91 | #define SCANCODE_SLASH 0x35 | ||
92 | #define SCANCODE_RIGHTSHIFT 0x36 | ||
93 | |||
94 | #define SCANCODE_LEFTALT 0x38 | ||
95 | #define SCANCODE_SPACE 0x39 | ||
96 | #define SCANCODE_CAPSLOCK 0x3a | ||
97 | |||
98 | /* Functions keys */ | ||
99 | #define SCANCODE_F1 0x3b | ||
100 | #define SCANCODE_F2 0x3c | ||
101 | #define SCANCODE_F3 0x3d | ||
102 | #define SCANCODE_F4 0x3e | ||
103 | #define SCANCODE_F5 0x3f | ||
104 | #define SCANCODE_F6 0x40 | ||
105 | #define SCANCODE_F7 0x41 | ||
106 | #define SCANCODE_F8 0x42 | ||
107 | #define SCANCODE_F9 0x43 | ||
108 | #define SCANCODE_F10 0x44 | ||
109 | |||
110 | /* Numeric keypad */ | ||
111 | #define SCANCODE_KP0 0x70 | ||
112 | #define SCANCODE_KP1 0x6d | ||
113 | #define SCANCODE_KP2 0x6e | ||
114 | #define SCANCODE_KP3 0x6f | ||
115 | #define SCANCODE_KP4 0x6a | ||
116 | #define SCANCODE_KP5 0x6b | ||
117 | #define SCANCODE_KP6 0x6c | ||
118 | #define SCANCODE_KP7 0x67 | ||
119 | #define SCANCODE_KP8 0x68 | ||
120 | #define SCANCODE_KP9 0x69 | ||
121 | #define SCANCODE_KP_PERIOD 0x71 | ||
122 | #define SCANCODE_KP_DIVIDE 0x65 | ||
123 | #define SCANCODE_KP_MULTIPLY 0x66 | ||
124 | #define SCANCODE_KP_MINUS 0x4a | ||
125 | #define SCANCODE_KP_PLUS 0x4e | ||
126 | #define SCANCODE_KP_ENTER 0x72 | ||
127 | #define SCANCODE_KP_LEFTPAREN 0x63 | ||
128 | #define SCANCODE_KP_RIGHTPAREN 0x64 | ||
129 | |||
130 | /* Cursor keypad */ | ||
131 | #define SCANCODE_HELP 0x62 | ||
132 | #define SCANCODE_UNDO 0x61 | ||
133 | #define SCANCODE_INSERT 0x52 | ||
134 | #define SCANCODE_CLRHOME 0x47 | ||
135 | #define SCANCODE_UP 0x48 | ||
136 | #define SCANCODE_DOWN 0x50 | ||
137 | #define SCANCODE_RIGHT 0x4d | ||
138 | #define SCANCODE_LEFT 0x4b | ||
139 | |||
140 | #endif /* _SDL_ATARIKEYS_H_ */ | ||