diff 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
line wrap: on
line diff
--- a/src/video/gem/SDL_gemevents.c	Tue Jan 31 19:46:26 2006 +0000
+++ b/src/video/gem/SDL_gemevents.c	Tue Jan 31 21:33:35 2006 +0000
@@ -45,7 +45,7 @@
 #include "SDL_gemevents_c.h"
 #include "SDL_atarikeys.h"	/* for keyboard scancodes */
 #include "SDL_atarievents_c.h"
-#include "SDL_xbiosinterrupt_s.h"
+#include "SDL_xbiosevents_c.h"
 
 /* Defines */
 
@@ -383,10 +383,7 @@
 
 	/* Mouse motion ? */
 	if (GEM_mouse_relative) {
-		if (SDL_AtariXbios_mousex || SDL_AtariXbios_mousey) {
-			SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey);
-			SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0;
-		}
+		SDL_AtariXbios_PostMouseEvents(this, SDL_FALSE);
 	} else {
 		if ((prevmousex!=mx) || (prevmousey!=my)) {
 			int posx, posy;