[SDL2] fix mouse locate 3
@@ -72,7 +72,6 @@ int convertKeyMap(int scancode){
#endif //GCW0
-static int lmx = 320, lmy = 240;
void taskmng_rol(void) {
#if !defined(__LIBRETRO__)
@@ -89,8 +88,6 @@ void taskmng_rol(void) {
}
else {
menubase_moving(e.motion.x, e.motion.y, 0);
- lmx = e.motion.x;
- lmy = e.motion.y;
}
break;
@@ -99,7 +96,7 @@ void taskmng_rol(void) {
case SDL_BUTTON_LEFT:
if (menuvram != NULL)
{
- menubase_moving(lmx, lmy, 2);
+ menubase_moving(e.button.x, e.button.y, 2);
}
#if defined(__IPHONEOS__)
else if (SDL_IsTextInputActive())
@@ -131,7 +128,7 @@ void taskmng_rol(void) {
case SDL_BUTTON_LEFT:
if (menuvram != NULL)
{
- menubase_moving(lmx, lmy, 1);
+ menubase_moving(e.button.x, e.button.y, 1);
} else {
mousemng_buttonevent(&e.button);
}
