comparison src/video/ataricommon/SDL_atarikeys.h @ 281:c5010ab8ba35

Added initial support for Atari (thanks Patrice!)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 17 Feb 2002 19:54:28 +0000
parents
children f6ffac90895c
comparison
equal deleted inserted replaced
280:0ddcea45d829 281:c5010ab8ba35
1 /*
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997, 1998, 1999, 2000, 2001 Sam Lantinga
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 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 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 Sam Lantinga
20 slouken@libsdl.org
21 */
22
23 #ifdef SAVE_RCSID
24 static char rcsid =
25 "@(#) $Id$";
26 #endif
27
28 /*
29 * Atari Scancode definitions
30 *
31 * Patrice Mandin
32 */
33
34 #ifndef _SDL_ATARIKEYS_H_
35 #define _SDL_ATARIKEYS_H_
36
37 /* --- Keyboard scancodes --- */
38 /* taken from svgalib/vgakeyboard.h */
39
40 #define SCANCODE_ESCAPE 0x01
41 #define SCANCODE_1 0x02
42 #define SCANCODE_2 0x03
43 #define SCANCODE_3 0x04
44 #define SCANCODE_4 0x05
45 #define SCANCODE_5 0x06
46 #define SCANCODE_6 0x07
47 #define SCANCODE_7 0x08
48 #define SCANCODE_8 0x09
49 #define SCANCODE_9 0x0a
50 #define SCANCODE_0 0x0b
51 #define SCANCODE_MINUS 0x0c
52 #define SCANCODE_EQUAL 0x0d
53 #define SCANCODE_BACKSPACE 0x0e
54
55 #define SCANCODE_TAB 0x0f
56 #define SCANCODE_Q 0x10
57 #define SCANCODE_W 0x11
58 #define SCANCODE_E 0x12
59 #define SCANCODE_R 0x13
60 #define SCANCODE_T 0x14
61 #define SCANCODE_Y 0x15
62 #define SCANCODE_U 0x16
63 #define SCANCODE_I 0x17
64 #define SCANCODE_O 0x18
65 #define SCANCODE_P 0x19
66 #define SCANCODE_BRACKET_LEFT 0x1a
67 #define SCANCODE_BRACKET_RIGHT 0x1b
68 #define SCANCODE_ENTER 0x1c
69 #define SCANCODE_DELETE 0x53
70
71 #define SCANCODE_LEFTCONTROL 0x1d
72 #define SCANCODE_A 0x1e
73 #define SCANCODE_S 0x1f
74 #define SCANCODE_D 0x20
75 #define SCANCODE_F 0x21
76 #define SCANCODE_G 0x22
77 #define SCANCODE_H 0x23
78 #define SCANCODE_J 0x24
79 #define SCANCODE_K 0x25
80 #define SCANCODE_L 0x26
81 #define SCANCODE_SEMICOLON 0x27
82 #define SCANCODE_APOSTROPHE 0x28
83 #define SCANCODE_GRAVE 0x29
84
85 #define SCANCODE_LEFTSHIFT 0x2a
86 #define SCANCODE_BACKSLASH 0x2b
87 #define SCANCODE_Z 0x2c
88 #define SCANCODE_X 0x2d
89 #define SCANCODE_C 0x2e
90 #define SCANCODE_V 0x2f
91 #define SCANCODE_B 0x30
92 #define SCANCODE_N 0x31
93 #define SCANCODE_M 0x32
94 #define SCANCODE_COMMA 0x33
95 #define SCANCODE_PERIOD 0x34
96 #define SCANCODE_SLASH 0x35
97 #define SCANCODE_RIGHTSHIFT 0x36
98
99 #define SCANCODE_LEFTALT 0x38
100 #define SCANCODE_SPACE 0x39
101 #define SCANCODE_CAPSLOCK 0x3a
102
103 /* Functions keys */
104 #define SCANCODE_F1 0x3b
105 #define SCANCODE_F2 0x3c
106 #define SCANCODE_F3 0x3d
107 #define SCANCODE_F4 0x3e
108 #define SCANCODE_F5 0x3f
109 #define SCANCODE_F6 0x40
110 #define SCANCODE_F7 0x41
111 #define SCANCODE_F8 0x42
112 #define SCANCODE_F9 0x43
113 #define SCANCODE_F10 0x44
114
115 /* Numeric keypad */
116 #define SCANCODE_KP0 0x70
117 #define SCANCODE_KP1 0x6d
118 #define SCANCODE_KP2 0x6e
119 #define SCANCODE_KP3 0x6f
120 #define SCANCODE_KP4 0x6a
121 #define SCANCODE_KP5 0x6b
122 #define SCANCODE_KP6 0x6c
123 #define SCANCODE_KP7 0x67
124 #define SCANCODE_KP8 0x68
125 #define SCANCODE_KP9 0x69
126 #define SCANCODE_KP_PERIOD 0x71
127 #define SCANCODE_KP_DIVIDE 0x65
128 #define SCANCODE_KP_MULTIPLY 0x66
129 #define SCANCODE_KP_MINUS 0x4a
130 #define SCANCODE_KP_PLUS 0x4e
131 #define SCANCODE_KP_ENTER 0x72
132 #define SCANCODE_KP_LEFTPAREN 0x63
133 #define SCANCODE_KP_RIGHTPAREN 0x64
134
135 /* Cursor keypad */
136 #define SCANCODE_HELP 0x62
137 #define SCANCODE_UNDO 0x61
138 #define SCANCODE_INSERT 0x52
139 #define SCANCODE_CLRHOME 0x47
140 #define SCANCODE_UP 0x48
141 #define SCANCODE_DOWN 0x50
142 #define SCANCODE_RIGHT 0x4d
143 #define SCANCODE_LEFT 0x4b
144
145 #endif /* _SDL_ATARIKEYS_H_ */