changeset 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 714053f573e7
children e3d0517bf67e
files src/video/riscos/SDL_riscosevents.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/riscos/SDL_riscosevents.c	Wed Jul 23 04:39:44 2003 +0000
+++ b/src/video/riscos/SDL_riscosevents.c	Wed Jul 23 05:30:08 2003 +0000
@@ -336,9 +336,9 @@
           {
              int changed = 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 & 2) SDL_PrivateMouseButton((last_buttons & 2) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_MIDDLE, x, y);
-             if (changed & 1) SDL_PrivateMouseButton((last_buttons & 1) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_RIGHT, 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, 0, 0);
+             if (changed & 1) SDL_PrivateMouseButton((last_buttons & 1) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_RIGHT, 0, 0);
           }
        }
     }