Mercurial > sdl-ios-xcode
comparison src/video/vgl/SDL_vglevents_c.h @ 75:b0ae59d0f3ee
Added patches from FreeBSD ports
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Tue, 19 Jun 2001 13:33:54 +0000 |
parents | |
children | e8157fcb3114 |
comparison
equal
deleted
inserted
replaced
74:6e28dae59e3b | 75:b0ae59d0f3ee |
---|---|
1 /* | |
2 SDL - Simple DirectMedia Layer | |
3 Copyright (C) 1997, 1998, 1999, 2000 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@devolution.com | |
21 */ | |
22 | |
23 #ifdef SAVE_RCSID | |
24 static char rcsid = | |
25 "@(#) $Id$"; | |
26 #endif | |
27 | |
28 #include "SDL_vglvideo.h" | |
29 | |
30 /* Variables and functions exported by SDL_sysevents.c to other parts | |
31 of the native video subsystem (SDL_sysvideo.c) | |
32 */ | |
33 extern int VGL_initkeymaps(int fd); | |
34 extern int VGL_initmouse(int fd); | |
35 extern void VGL_keyboardcallback(int scancode, int pressed); | |
36 | |
37 extern void VGL_InitOSKeymap(_THIS); | |
38 extern void VGL_PumpEvents(_THIS); | |
39 | |
40 /* Mouse buttons */ | |
41 #define MOUSE_LEFTBUTTON 0x01 | |
42 #define MOUSE_MIDDLEBUTTON 0x02 | |
43 #define MOUSE_RIGHTBUTTON 0x04 | |
44 | |
45 /* Scancodes */ | |
46 #define SCANCODE_ESCAPE 1 | |
47 #define SCANCODE_1 2 | |
48 #define SCANCODE_2 3 | |
49 #define SCANCODE_3 4 | |
50 #define SCANCODE_4 5 | |
51 #define SCANCODE_5 6 | |
52 #define SCANCODE_6 7 | |
53 #define SCANCODE_7 8 | |
54 #define SCANCODE_8 9 | |
55 #define SCANCODE_9 10 | |
56 #define SCANCODE_0 11 | |
57 #define SCANCODE_MINUS 12 | |
58 #define SCANCODE_EQUAL 13 | |
59 #define SCANCODE_BACKSPACE 14 | |
60 #define SCANCODE_TAB 15 | |
61 #define SCANCODE_Q 16 | |
62 #define SCANCODE_W 17 | |
63 #define SCANCODE_E 18 | |
64 #define SCANCODE_R 19 | |
65 #define SCANCODE_T 20 | |
66 #define SCANCODE_Y 21 | |
67 #define SCANCODE_U 22 | |
68 #define SCANCODE_I 23 | |
69 #define SCANCODE_O 24 | |
70 #define SCANCODE_P 25 | |
71 #define SCANCODE_BRACKET_LEFT 26 | |
72 #define SCANCODE_BRACKET_RIGHT 27 | |
73 #define SCANCODE_ENTER 28 | |
74 #define SCANCODE_LEFTCONTROL 29 | |
75 #define SCANCODE_A 30 | |
76 #define SCANCODE_S 31 | |
77 #define SCANCODE_D 32 | |
78 #define SCANCODE_F 33 | |
79 #define SCANCODE_G 34 | |
80 #define SCANCODE_H 35 | |
81 #define SCANCODE_J 36 | |
82 #define SCANCODE_K 37 | |
83 #define SCANCODE_L 38 | |
84 #define SCANCODE_SEMICOLON 39 | |
85 #define SCANCODE_APOSTROPHE 40 | |
86 #define SCANCODE_GRAVE 41 | |
87 #define SCANCODE_LEFTSHIFT 42 | |
88 #define SCANCODE_BACKSLASH 43 | |
89 #define SCANCODE_Z 44 | |
90 #define SCANCODE_X 45 | |
91 #define SCANCODE_C 46 | |
92 #define SCANCODE_V 47 | |
93 #define SCANCODE_B 48 | |
94 #define SCANCODE_N 49 | |
95 #define SCANCODE_M 50 | |
96 #define SCANCODE_COMMA 51 | |
97 #define SCANCODE_PERIOD 52 | |
98 #define SCANCODE_SLASH 53 | |
99 #define SCANCODE_RIGHTSHIFT 54 | |
100 #define SCANCODE_KEYPADMULTIPLY 55 | |
101 #define SCANCODE_LEFTALT 56 | |
102 #define SCANCODE_SPACE 57 | |
103 #define SCANCODE_CAPSLOCK 58 | |
104 #define SCANCODE_F1 59 | |
105 #define SCANCODE_F2 60 | |
106 #define SCANCODE_F3 61 | |
107 #define SCANCODE_F4 62 | |
108 #define SCANCODE_F5 63 | |
109 #define SCANCODE_F6 64 | |
110 #define SCANCODE_F7 65 | |
111 #define SCANCODE_F8 66 | |
112 #define SCANCODE_F9 67 | |
113 #define SCANCODE_F10 68 | |
114 #define SCANCODE_NUMLOCK 69 | |
115 #define SCANCODE_SCROLLLOCK 70 | |
116 #define SCANCODE_KEYPAD7 71 | |
117 #define SCANCODE_CURSORUPLEFT 71 | |
118 #define SCANCODE_KEYPAD8 72 | |
119 #define SCANCODE_CURSORUP 72 | |
120 #define SCANCODE_KEYPAD9 73 | |
121 #define SCANCODE_CURSORUPRIGHT 73 | |
122 #define SCANCODE_KEYPADMINUS 74 | |
123 #define SCANCODE_KEYPAD4 75 | |
124 #define SCANCODE_CURSORLEFT 75 | |
125 #define SCANCODE_KEYPAD5 76 | |
126 #define SCANCODE_KEYPAD6 77 | |
127 #define SCANCODE_CURSORRIGHT 77 | |
128 #define SCANCODE_KEYPADPLUS 78 | |
129 #define SCANCODE_KEYPAD1 79 | |
130 #define SCANCODE_CURSORDOWNLEFT 79 | |
131 #define SCANCODE_KEYPAD2 80 | |
132 #define SCANCODE_CURSORDOWN 80 | |
133 #define SCANCODE_KEYPAD3 81 | |
134 #define SCANCODE_CURSORDOWNRIGHT 81 | |
135 #define SCANCODE_KEYPAD0 82 | |
136 #define SCANCODE_KEYPADPERIOD 83 | |
137 #define SCANCODE_LESS 86 | |
138 #define SCANCODE_F11 87 | |
139 #define SCANCODE_F12 88 | |
140 #define SCANCODE_KEYPADENTER 89 | |
141 #define SCANCODE_RIGHTCONTROL 90 | |
142 #define SCANCODE_CONTROL 107 | |
143 #define SCANCODE_KEYPADDIVIDE 91 | |
144 #define SCANCODE_PRINTSCREEN 92 | |
145 #define SCANCODE_RIGHTALT 93 | |
146 #define SCANCODE_BREAK 104 /* Beware: is 119 */ | |
147 #define SCANCODE_BREAK_ALTERNATIVE 104 /* on some keyboards! */ | |
148 #define SCANCODE_HOME 94 | |
149 #define SCANCODE_CURSORBLOCKUP 95 /* Cursor key block */ | |
150 #define SCANCODE_PAGEUP 96 | |
151 #define SCANCODE_CURSORBLOCKLEFT 97 /* Cursor key block */ | |
152 #define SCANCODE_CURSORBLOCKRIGHT 98 /* Cursor key block */ | |
153 #define SCANCODE_END 99 | |
154 #define SCANCODE_CURSORBLOCKDOWN 100 /* Cursor key block */ | |
155 #define SCANCODE_PAGEDOWN 101 | |
156 #define SCANCODE_INSERT 102 | |
157 #define SCANCODE_REMOVE 103 | |
158 #define SCANCODE_RIGHTWIN 106 | |
159 #define SCANCODE_LEFTWIN 105 |