Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
2939:084e5b4fc5be | 2940:b93965a16fe0 |
---|---|
47 [self initializeKeyboard]; | 47 [self initializeKeyboard]; |
48 #endif | 48 #endif |
49 | 49 |
50 int i; | 50 int i; |
51 for (i=0; i<MAX_SIMULTANEOUS_TOUCHES; i++) { | 51 for (i=0; i<MAX_SIMULTANEOUS_TOUCHES; i++) { |
52 mice[i].id = i; | |
52 mice[i].driverdata = NULL; | 53 mice[i].driverdata = NULL; |
53 SDL_AddMouse(&mice[i], i, "Mouse", 0, 0, 1); | 54 SDL_AddMouse(&mice[i], "Mouse", 0, 0, 1); |
54 } | 55 } |
55 self.multipleTouchEnabled = YES; | 56 self.multipleTouchEnabled = YES; |
56 | 57 |
57 return self; | 58 return self; |
58 | 59 |