Mercurial > sdl-ios-xcode
comparison src/SDL_compat.c @ 2710:44e49d3fa6cf
Final merge of Google Summer of Code 2008 work...
Many-mouse and tablet support
by Szymon Wilczek, mentored by Ryan C. Gordon
Everything concerning the project is noted on the wiki:
http://wilku.ravenlord.ws/doku.php?id=start
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 25 Aug 2008 06:33:00 +0000 |
parents | 91e601d9df8b |
children | 204be4fc2726 |
comparison
equal
deleted
inserted
replaced
2709:fd3f0f1147e7 | 2710:44e49d3fa6cf |
---|---|
254 if (event->wheel.y == 0) { | 254 if (event->wheel.y == 0) { |
255 break; | 255 break; |
256 } | 256 } |
257 | 257 |
258 selected = SDL_SelectMouse(event->wheel.which); | 258 selected = SDL_SelectMouse(event->wheel.which); |
259 SDL_GetMouseState(&x, &y); | 259 SDL_GetMouseState(selected, &x, &y); |
260 SDL_SelectMouse(selected); | 260 SDL_SelectMouse(selected); |
261 | 261 |
262 if (event->wheel.y > 0) { | 262 if (event->wheel.y > 0) { |
263 button = SDL_BUTTON_WHEELUP; | 263 button = SDL_BUTTON_WHEELUP; |
264 } else { | 264 } else { |