diff src/video/cybergfx/SDL_amigamouse.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c71e05b4dc2e
children d910939febfa
line wrap: on
line diff
--- a/src/video/cybergfx/SDL_amigamouse.c	Fri Feb 10 07:29:08 2006 +0000
+++ b/src/video/cybergfx/SDL_amigamouse.c	Thu Feb 16 10:11:48 2006 +0000
@@ -21,8 +21,8 @@
 */
 
 #include "SDL_mouse.h"
-#include "SDL_events_c.h"
-#include "SDL_cursor_c.h"
+#include "../../events/SDL_events_c.h"
+#include "../SDL_cursor_c.h"
 #include "SDL_amigamouse_c.h"
 
 
@@ -73,40 +73,4 @@
 /* Check to see if we need to enter or leave mouse relative mode */
 void amiga_CheckMouseMode(_THIS)
 {
-	/* If the mouse is hidden and input is grabbed, we use relative mode */
-#if 0
-	SDL_Lock_EventThread();
-	if ( !(SDL_cursorstate & CURSOR_VISIBLE) &&
-	     (this->input_grab != SDL_GRAB_OFF) ) {
-		mouse_relative = 1;
-		X11_EnableDGAMouse(this);
-		if ( ! (using_dga & DGA_MOUSE) ) {
-			char *use_mouse_accel;
-
-			SDL_GetMouseState(&mouse_last.x, &mouse_last.y);
-			/* Use as raw mouse mickeys as possible */
-			XGetPointerControl(SDL_Display,
-						&mouse_accel.numerator, 
-						&mouse_accel.denominator,
-						&mouse_accel.threshold);
-			use_mouse_accel = SDL_getenv("SDL_VIDEO_X11_MOUSEACCEL");
-			if ( use_mouse_accel ) {
-				SetMouseAccel(this, use_mouse_accel);
-			}
-		}
-	} else {
-		if ( mouse_relative ) {
-			if ( using_dga & DGA_MOUSE ) {
-				X11_DisableDGAMouse(this);
-			} else {
-				XChangePointerControl(SDL_Display, True, True,
-						mouse_accel.numerator, 
-						mouse_accel.denominator,
-						mouse_accel.threshold);
-			}
-			mouse_relative = 0;
-		}
-	}
-	SDL_Unlock_EventThread();
-#endif
 }