comparison src/video/cocoa/SDL_cocoamouse.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 e7eec78e4b92
comparison
equal deleted inserted replaced
2939:084e5b4fc5be 2940:b93965a16fe0
30 { 30 {
31 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; 31 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
32 SDL_Mouse mouse; 32 SDL_Mouse mouse;
33 33
34 SDL_zero(mouse); 34 SDL_zero(mouse);
35 data->mouse = SDL_AddMouse(&mouse, -1, "Mouse", 0, 0, 1); 35 data->mouse = SDL_AddMouse(&mouse, "Mouse", 0, 0, 1);
36 SDL_SetMouseIndexId(data->mouse, data->mouse);
37 } 36 }
38 37
39 void 38 void
40 Cocoa_QuitMouse(_THIS) 39 Cocoa_QuitMouse(_THIS)
41 { 40 {