comparison src/video/gem/SDL_gemevents.c @ 1420:2405517b5eab

Added preliminary support for MiNT /dev/mouse driver (disabled atm)
author Patrice Mandin <patmandin@gmail.com>
date Thu, 23 Feb 2006 21:51:10 +0000
parents a8181c4040b8
children 782fd950bd46 417f2af2bd52
comparison
equal deleted inserted replaced
1419:36a5068bf7df 1420:2405517b5eab
37 #include "SDL_gemvideo.h" 37 #include "SDL_gemvideo.h"
38 #include "SDL_gemevents_c.h" 38 #include "SDL_gemevents_c.h"
39 #include "../ataricommon/SDL_atarikeys.h" /* for keyboard scancodes */ 39 #include "../ataricommon/SDL_atarikeys.h" /* for keyboard scancodes */
40 #include "../ataricommon/SDL_atarievents_c.h" 40 #include "../ataricommon/SDL_atarievents_c.h"
41 #include "../ataricommon/SDL_xbiosevents_c.h" 41 #include "../ataricommon/SDL_xbiosevents_c.h"
42 #include "../ataricommon/SDL_ataridevmouse_c.h"
42 43
43 /* Defines */ 44 /* Defines */
44 45
45 #define ATARIBIOS_MAXKEYS 128 46 #define ATARIBIOS_MAXKEYS 128
46 47
374 } 375 }
375 } 376 }
376 377
377 /* Mouse motion ? */ 378 /* Mouse motion ? */
378 if (GEM_mouse_relative) { 379 if (GEM_mouse_relative) {
379 SDL_AtariXbios_PostMouseEvents(this, SDL_FALSE); 380 if (GEM_usedevmouse) {
381 SDL_AtariDevMouse_PostMouseEvents(this, SDL_FALSE);
382 } else {
383 SDL_AtariXbios_PostMouseEvents(this, SDL_FALSE);
384 }
380 } else { 385 } else {
381 if ((prevmousex!=mx) || (prevmousey!=my)) { 386 if ((prevmousex!=mx) || (prevmousey!=my)) {
382 int posx, posy; 387 int posx, posy;
383 388
384 /* Give mouse position relative to window position */ 389 /* Give mouse position relative to window position */