Mercurial > sdl-ios-xcode
comparison src/video/riscos/SDL_riscosevents.c @ 658:e71b7108d2d7
Use SDL's internal x, y for mouse button events - fixes relative motion bug.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 23 Jul 2003 05:30:08 +0000 |
parents | 550bccdf04bd |
children | 9557ac1857a3 |
comparison
equal
deleted
inserted
replaced
657:714053f573e7 | 658:e71b7108d2d7 |
---|---|
334 | 334 |
335 if (last_buttons != regs.r[2]) | 335 if (last_buttons != regs.r[2]) |
336 { | 336 { |
337 int changed = last_buttons ^ regs.r[2]; | 337 int changed = last_buttons ^ regs.r[2]; |
338 last_buttons = regs.r[2]; | 338 last_buttons = regs.r[2]; |
339 if (changed & 4) SDL_PrivateMouseButton((last_buttons & 4) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_LEFT, x, y); | 339 if (changed & 4) SDL_PrivateMouseButton((last_buttons & 4) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_LEFT, 0, 0); |
340 if (changed & 2) SDL_PrivateMouseButton((last_buttons & 2) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_MIDDLE, x, y); | 340 if (changed & 2) SDL_PrivateMouseButton((last_buttons & 2) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_MIDDLE, 0, 0); |
341 if (changed & 1) SDL_PrivateMouseButton((last_buttons & 1) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_RIGHT, x, y); | 341 if (changed & 1) SDL_PrivateMouseButton((last_buttons & 1) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_RIGHT, 0, 0); |
342 } | 342 } |
343 } | 343 } |
344 } | 344 } |
345 } | 345 } |
346 | 346 |