diff src/video/cocoa/SDL_cocoamouse.m @ 2940:b93965a16fe0

Fixed X11 mouse motion/button events - it's not actually safe to cast mouse events to device events. Fixed building SDL without XInput support Simplified the process of registering a mouse device
author Sam Lantinga <slouken@libsdl.org>
date Thu, 01 Jan 2009 07:59:08 +0000
parents 99210400e8b9
children e7eec78e4b92
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoamouse.m	Thu Jan 01 07:58:20 2009 +0000
+++ b/src/video/cocoa/SDL_cocoamouse.m	Thu Jan 01 07:59:08 2009 +0000
@@ -32,8 +32,7 @@
     SDL_Mouse mouse;
 
     SDL_zero(mouse);
-    data->mouse = SDL_AddMouse(&mouse, -1, "Mouse", 0, 0, 1);
-    SDL_SetMouseIndexId(data->mouse, data->mouse);
+    data->mouse = SDL_AddMouse(&mouse, "Mouse", 0, 0, 1);
 }
 
 void