Mercurial > sdl-ios-xcode
diff src/video/uikit/SDL_uikitview.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 | 64ce267332c6 |
line wrap: on
line diff
--- a/src/video/uikit/SDL_uikitview.m Thu Jan 01 07:58:20 2009 +0000 +++ b/src/video/uikit/SDL_uikitview.m Thu Jan 01 07:59:08 2009 +0000 @@ -49,8 +49,9 @@ int i; for (i=0; i<MAX_SIMULTANEOUS_TOUCHES; i++) { + mice[i].id = i; mice[i].driverdata = NULL; - SDL_AddMouse(&mice[i], i, "Mouse", 0, 0, 1); + SDL_AddMouse(&mice[i], "Mouse", 0, 0, 1); } self.multipleTouchEnabled = YES;