diff src/video/directfb/SDL_DirectFB_mouse.c @ 2841:483f85e35a1a

Date: Sat, 06 Dec 2008 14:54:10 +0100 From: Couriersud Subject: SDL: DirectFB mouse patch the attached patch (again) properly registers the mouse in the DirectFB driver.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 06 Dec 2008 17:46:55 +0000
parents 140a7edcf2bd
children 99210400e8b9
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_mouse.c	Sat Dec 06 17:43:10 2008 +0000
+++ b/src/video/directfb/SDL_DirectFB_mouse.c	Sat Dec 06 17:46:55 2008 +0000
@@ -49,7 +49,8 @@
     mouse.WarpMouse = DirectFB_WarpMouse;
     mouse.FreeMouse = DirectFB_FreeMouse;
     mouse.cursor_shown = 1;
-    devdata->mouse = SDL_AddMouse(&mouse, -1, "Mouse", 0, 0, 1);
+    SDL_SetMouseIndexId(0, 0);  /* ID == Index ! */
+    devdata->mouse = SDL_AddMouse(&mouse, 0, "Mouse", 0, 0, 1);
 }
 
 void