comparison 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
comparison
equal deleted inserted replaced
2840:53ca0d758b0a 2841:483f85e35a1a
47 mouse.MoveCursor = DirectFB_MoveCursor; 47 mouse.MoveCursor = DirectFB_MoveCursor;
48 mouse.FreeCursor = DirectFB_FreeCursor; 48 mouse.FreeCursor = DirectFB_FreeCursor;
49 mouse.WarpMouse = DirectFB_WarpMouse; 49 mouse.WarpMouse = DirectFB_WarpMouse;
50 mouse.FreeMouse = DirectFB_FreeMouse; 50 mouse.FreeMouse = DirectFB_FreeMouse;
51 mouse.cursor_shown = 1; 51 mouse.cursor_shown = 1;
52 devdata->mouse = SDL_AddMouse(&mouse, -1, "Mouse", 0, 0, 1); 52 SDL_SetMouseIndexId(0, 0); /* ID == Index ! */
53 devdata->mouse = SDL_AddMouse(&mouse, 0, "Mouse", 0, 0, 1);
53 } 54 }
54 55
55 void 56 void
56 DirectFB_QuitMouse(_THIS) 57 DirectFB_QuitMouse(_THIS)
57 { 58 {