X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=platform%2Fsdli.cpp;h=9c63398be5fdd902104ea98d1f599ffbe1efe51e;hb=9902256814785f0b3f08d336a98c481c296ac7e5;hp=63265b3391677468abaf72e5665fc159a122e9c7;hpb=8f77a3a3f10d94477f0c0734adfbd39e81173d6f;p=drnoksnes diff --git a/platform/sdli.cpp b/platform/sdli.cpp index 63265b3..9c63398 100644 --- a/platform/sdli.cpp +++ b/platform/sdli.cpp @@ -3,7 +3,6 @@ #include "platform.h" #include "snes9x.h" -#include "display.h" #include "sdlv.h" // Dispatching video-related events #if CONF_ZEEMOTE @@ -194,22 +193,22 @@ uint32 S9xReadJoypad (int which) @param buttons The buttons return value is a bit-wise mask of the two SNES mouse buttons, bit 0 for button 1 (left) and bit 1 for button 2 (right). */ -bool8 S9xReadMousePosition(int which1, int& x, int& y, uint32& buttons) +bool8 S9xReadMousePosition(int which, int *x, int *y, uint32 *buttons) { - if (which1 != 0) return FALSE; + if (which != 0) return FALSE; - x = mouse.x; - y = mouse.y; - buttons = mouse.pressed ? 1 : 0; + *x = mouse.x; + *y = mouse.y; + *buttons = mouse.pressed ? 1 : 0; return TRUE; } -bool8 S9xReadSuperScopePosition(int& x, int& y, uint32& buttons) +bool8 S9xReadSuperScopePosition(int *x, int *y, uint32 *buttons) { - x = mouse.x; - y = mouse.y; - buttons = mouse.pressed ? 8 : 0; + *x = mouse.x; + *y = mouse.y; + *buttons = mouse.pressed ? 8 : 0; return TRUE; }