Commit d28eb3b3 authored by Sam Lantinga's avatar Sam Lantinga

Use SDL's internal x, y for mouse button events - fixes relative motion bug.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40659
parent c12bab2d
...@@ -336,9 +336,9 @@ void RISCOS_PollMouseHelper(_THIS, int fullscreen) ...@@ -336,9 +336,9 @@ void RISCOS_PollMouseHelper(_THIS, int fullscreen)
{ {
int changed = last_buttons ^ regs.r[2]; int changed = last_buttons ^ regs.r[2];
last_buttons = regs.r[2]; last_buttons = regs.r[2];
if (changed & 4) SDL_PrivateMouseButton((last_buttons & 4) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_LEFT, x, y); if (changed & 4) SDL_PrivateMouseButton((last_buttons & 4) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_LEFT, 0, 0);
if (changed & 2) SDL_PrivateMouseButton((last_buttons & 2) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_MIDDLE, x, y); if (changed & 2) SDL_PrivateMouseButton((last_buttons & 2) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_MIDDLE, 0, 0);
if (changed & 1) SDL_PrivateMouseButton((last_buttons & 1) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_RIGHT, x, y); if (changed & 1) SDL_PrivateMouseButton((last_buttons & 1) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_RIGHT, 0, 0);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment