comparison src/video/gem/SDL_gemevents.c @ 1310:a201a8c62522

Add flag to post mouse button events or not, and use defined function to post them
author Patrice Mandin <patmandin@gmail.com>
date Tue, 31 Jan 2006 21:33:35 +0000
parents fdc7ef6ecab4
children c9b51268668f
comparison
equal deleted inserted replaced
1309:0f00cbbe5792 1310:a201a8c62522
43 #include "SDL_events_c.h" 43 #include "SDL_events_c.h"
44 #include "SDL_gemvideo.h" 44 #include "SDL_gemvideo.h"
45 #include "SDL_gemevents_c.h" 45 #include "SDL_gemevents_c.h"
46 #include "SDL_atarikeys.h" /* for keyboard scancodes */ 46 #include "SDL_atarikeys.h" /* for keyboard scancodes */
47 #include "SDL_atarievents_c.h" 47 #include "SDL_atarievents_c.h"
48 #include "SDL_xbiosinterrupt_s.h" 48 #include "SDL_xbiosevents_c.h"
49 49
50 /* Defines */ 50 /* Defines */
51 51
52 #define ATARIBIOS_MAXKEYS 128 52 #define ATARIBIOS_MAXKEYS 128
53 53
381 } 381 }
382 } 382 }
383 383
384 /* Mouse motion ? */ 384 /* Mouse motion ? */
385 if (GEM_mouse_relative) { 385 if (GEM_mouse_relative) {
386 if (SDL_AtariXbios_mousex || SDL_AtariXbios_mousey) { 386 SDL_AtariXbios_PostMouseEvents(this, SDL_FALSE);
387 SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey);
388 SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0;
389 }
390 } else { 387 } else {
391 if ((prevmousex!=mx) || (prevmousey!=my)) { 388 if ((prevmousex!=mx) || (prevmousey!=my)) {
392 int posx, posy; 389 int posx, posy;
393 390
394 /* Give mouse position relative to window position */ 391 /* Give mouse position relative to window position */