comparison src/video/ataricommon/SDL_gemdosevents.c @ 1237:a8068adf156b

Disable XBIOS driver for mouse and joystick under MiNT. Will write a driver for /dev/mouse later.
author Patrice Mandin <patmandin@gmail.com>
date Fri, 06 Jan 2006 22:24:09 +0000
parents 8ef3e7e92a91
children a201a8c62522
comparison
equal deleted inserted replaced
1236:ed252764287a 1237:a8068adf156b
33 33
34 #include <string.h> 34 #include <string.h>
35 35
36 /* Mint includes */ 36 /* Mint includes */
37 #include <mint/osbind.h> 37 #include <mint/osbind.h>
38 #include <mint/cookie.h>
38 39
39 #include "SDL.h" 40 #include "SDL.h"
40 #include "SDL_sysevents.h" 41 #include "SDL_sysevents.h"
41 #include "SDL_events_c.h" 42 #include "SDL_events_c.h"
42 43
74 SDL_bool pressed); 75 SDL_bool pressed);
75 static void UpdateSpecialKeys(int special_keys_state); 76 static void UpdateSpecialKeys(int special_keys_state);
76 77
77 void AtariGemdos_InitOSKeymap(_THIS) 78 void AtariGemdos_InitOSKeymap(_THIS)
78 { 79 {
79 int i; 80 int i, vectors_mask;
81 unsigned long dummy;
80 82
81 memset(gemdos_currentkeyboard, 0, sizeof(gemdos_currentkeyboard)); 83 memset(gemdos_currentkeyboard, 0, sizeof(gemdos_currentkeyboard));
82 memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard)); 84 memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard));
83 85
84 /* Initialize keymap */ 86 /* Initialize keymap */
109 keymap[SCANCODE_LEFTSHIFT] = SDLK_LSHIFT; 111 keymap[SCANCODE_LEFTSHIFT] = SDLK_LSHIFT;
110 keymap[SCANCODE_RIGHTSHIFT] = SDLK_RSHIFT; 112 keymap[SCANCODE_RIGHTSHIFT] = SDLK_RSHIFT;
111 keymap[SCANCODE_LEFTALT] = SDLK_LALT; 113 keymap[SCANCODE_LEFTALT] = SDLK_LALT;
112 keymap[SCANCODE_CAPSLOCK] = SDLK_CAPSLOCK; 114 keymap[SCANCODE_CAPSLOCK] = SDLK_CAPSLOCK;
113 115
114 SDL_AtariXbios_InstallVectors(ATARI_XBIOS_MOUSEEVENTS|ATARI_XBIOS_JOYSTICKEVENTS); 116 vectors_mask = ATARI_XBIOS_MOUSEEVENTS|ATARI_XBIOS_JOYSTICKEVENTS;
117 if (Getcookie(C_MiNT, &dummy)==C_FOUND) {
118 vectors_mask = 0;
119 }
120
121 SDL_AtariXbios_InstallVectors(vectors_mask);
115 } 122 }
116 123
117 void AtariGemdos_PumpEvents(_THIS) 124 void AtariGemdos_PumpEvents(_THIS)
118 { 125 {
119 int i; 126 int i;