diff src/video/cocoa/SDL_cocoamouse.m @ 2710:44e49d3fa6cf

Final merge of Google Summer of Code 2008 work... Many-mouse and tablet support by Szymon Wilczek, mentored by Ryan C. Gordon Everything concerning the project is noted on the wiki: http://wilku.ravenlord.ws/doku.php?id=start
author Sam Lantinga <slouken@libsdl.org>
date Mon, 25 Aug 2008 06:33:00 +0000
parents 103c6fec2a60
children 99210400e8b9
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoamouse.m	Mon Aug 25 05:30:28 2008 +0000
+++ b/src/video/cocoa/SDL_cocoamouse.m	Mon Aug 25 06:33:00 2008 +0000
@@ -32,7 +32,8 @@
     SDL_Mouse mouse;
 
     SDL_zero(mouse);
-    data->mouse = SDL_AddMouse(&mouse, -1);
+    data->mouse = SDL_AddMouse(&mouse, -1, "Mouse", 0, 0, 1);
+    SDL_SetMouseIndexId(data->mouse, data->mouse);
 }
 
 void