Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemvideo.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 | bf145eaf76ef |
children | 1901fea5edac |
comparison
equal
deleted
inserted
replaced
1236:ed252764287a | 1237:a8068adf156b |
---|---|
135 } | 135 } |
136 | 136 |
137 static SDL_VideoDevice *GEM_CreateDevice(int devindex) | 137 static SDL_VideoDevice *GEM_CreateDevice(int devindex) |
138 { | 138 { |
139 SDL_VideoDevice *device; | 139 SDL_VideoDevice *device; |
140 int vectors_mask; | |
141 unsigned long dummy; | |
140 | 142 |
141 /* Initialize all variables that we clean on shutdown */ | 143 /* Initialize all variables that we clean on shutdown */ |
142 device = (SDL_VideoDevice *)malloc(sizeof(SDL_VideoDevice)); | 144 device = (SDL_VideoDevice *)malloc(sizeof(SDL_VideoDevice)); |
143 if ( device ) { | 145 if ( device ) { |
144 memset(device, 0, (sizeof *device)); | 146 memset(device, 0, (sizeof *device)); |
196 device->GL_MakeCurrent = SDL_AtariGL_MakeCurrent; | 198 device->GL_MakeCurrent = SDL_AtariGL_MakeCurrent; |
197 device->GL_SwapBuffers = GEM_GL_SwapBuffers; | 199 device->GL_SwapBuffers = GEM_GL_SwapBuffers; |
198 #endif | 200 #endif |
199 | 201 |
200 /* Joystick + Mouse relative motion */ | 202 /* Joystick + Mouse relative motion */ |
201 SDL_AtariXbios_InstallVectors(ATARI_XBIOS_MOUSEEVENTS|ATARI_XBIOS_JOYSTICKEVENTS); | 203 vectors_mask = ATARI_XBIOS_MOUSEEVENTS|ATARI_XBIOS_JOYSTICKEVENTS; |
204 if (Getcookie(C_MiNT, &dummy)==C_FOUND) { | |
205 vectors_mask = 0; | |
206 } | |
207 | |
208 SDL_AtariXbios_InstallVectors(vectors_mask); | |
202 | 209 |
203 device->free = GEM_DeleteDevice; | 210 device->free = GEM_DeleteDevice; |
204 | 211 |
205 return device; | 212 return device; |
206 } | 213 } |