Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11mouse.c @ 3761:e0c95ad1ba87 gsoc2008_manymouse
Major bug fixes
author | Szymon Wilczek <kazeuser@gmail.com> |
---|---|
date | Thu, 19 Jun 2008 17:24:30 +0000 |
parents | 64f346a83ed3 |
children | 24db5d326f57 |
comparison
equal
deleted
inserted
replaced
3760:64f346a83ed3 | 3761:e0c95ad1ba87 |
---|---|
35 XDeviceInfo *DevList; | 35 XDeviceInfo *DevList; |
36 XAnyClassPtr deviceClass; | 36 XAnyClassPtr deviceClass; |
37 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; | 37 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; |
38 | 38 |
39 DevList=XListInputDevices(data->display, &numOfDevices); | 39 DevList=XListInputDevices(data->display, &numOfDevices); |
40 | 40 SDL_XDevices=(XDevice**) SDL_malloc(sizeof(XDevice)); |
41 for(i=0;i<numOfDevices;++i) | 41 for(i=0;i<numOfDevices;++i) |
42 { | 42 { |
43 if((DevList[i].use!=IsXPointer && DevList[i].use!=IsXKeyboard)) | 43 if((DevList[i].use!=IsXPointer && DevList[i].use!=IsXKeyboard)) |
44 { | 44 { |
45 deviceClass=DevList[i].inputclassinfo; | 45 deviceClass=DevList[i].inputclassinfo; |