Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11mouse.c @ 2765:f55c87ae336b
Final merge of Google Summer of Code 2008 work...
Bring SDL to iPhone and iPod Touch
by Holmes Futrell, mentored by Sam Lantinga
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 04 Oct 2008 06:46:59 +0000 |
parents | 6fc50bdd88c0 |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2764:4868c0df2e83 | 2765:f55c87ae336b |
---|---|
34 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; | 34 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; |
35 | 35 |
36 SDL_XDevices = NULL; | 36 SDL_XDevices = NULL; |
37 SDL_NumOfXDevices = 0; | 37 SDL_NumOfXDevices = 0; |
38 | 38 |
39 if (!SDL_X11_HAVE_XINPUT) | 39 if (!SDL_X11_HAVE_XINPUT) { |
40 return; /* should have dynamically loaded, but wasn't available. */ | 40 /* should have dynamically loaded, but wasn't available. */ |
41 return; | |
42 } | |
41 | 43 |
42 /* we're getting the list of input devices */ | 44 /* we're getting the list of input devices */ |
43 DevList = XListInputDevices(data->display, &numOfDevices); | 45 DevList = XListInputDevices(data->display, &numOfDevices); |
44 SDL_XDevices = (XDevice **) SDL_malloc(sizeof(XDevice)); | 46 SDL_XDevices = (XDevice **) SDL_malloc(sizeof(XDevice)); |
45 | 47 |