Mercurial > sdl-ios-xcode
comparison src/video/ataricommon/SDL_biosevents.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 |
69 SDL_bool pressed); | 70 SDL_bool pressed); |
70 static void UpdateSpecialKeys(int special_keys_state); | 71 static void UpdateSpecialKeys(int special_keys_state); |
71 | 72 |
72 void AtariBios_InitOSKeymap(_THIS) | 73 void AtariBios_InitOSKeymap(_THIS) |
73 { | 74 { |
74 int i; | 75 int i, vectors_mask; |
76 unsigned long dummy; | |
75 | 77 |
76 memset(bios_currentkeyboard, 0, sizeof(bios_currentkeyboard)); | 78 memset(bios_currentkeyboard, 0, sizeof(bios_currentkeyboard)); |
77 memset(bios_previouskeyboard, 0, sizeof(bios_previouskeyboard)); | 79 memset(bios_previouskeyboard, 0, sizeof(bios_previouskeyboard)); |
78 | 80 |
79 /* Initialize keymap */ | 81 /* Initialize keymap */ |
104 keymap[SCANCODE_LEFTSHIFT] = SDLK_LSHIFT; | 106 keymap[SCANCODE_LEFTSHIFT] = SDLK_LSHIFT; |
105 keymap[SCANCODE_RIGHTSHIFT] = SDLK_RSHIFT; | 107 keymap[SCANCODE_RIGHTSHIFT] = SDLK_RSHIFT; |
106 keymap[SCANCODE_LEFTALT] = SDLK_LALT; | 108 keymap[SCANCODE_LEFTALT] = SDLK_LALT; |
107 keymap[SCANCODE_CAPSLOCK] = SDLK_CAPSLOCK; | 109 keymap[SCANCODE_CAPSLOCK] = SDLK_CAPSLOCK; |
108 | 110 |
109 SDL_AtariXbios_InstallVectors(ATARI_XBIOS_MOUSEEVENTS|ATARI_XBIOS_JOYSTICKEVENTS); | 111 vectors_mask = ATARI_XBIOS_MOUSEEVENTS|ATARI_XBIOS_JOYSTICKEVENTS; |
112 if (Getcookie(C_MiNT, &dummy)==C_FOUND) { | |
113 vectors_mask = 0; | |
114 } | |
115 | |
116 SDL_AtariXbios_InstallVectors(vectors_mask); | |
110 } | 117 } |
111 | 118 |
112 void AtariBios_PumpEvents(_THIS) | 119 void AtariBios_PumpEvents(_THIS) |
113 { | 120 { |
114 int i; | 121 int i; |