Another SNES mouse fix
This commit is contained in:
@@ -2577,7 +2577,7 @@ int GetMouseX(void)
|
|||||||
SetCursorPos(X + WindowWidth + 32, Y + (MouseY * WindowHeight / 224));
|
SetCursorPos(X + WindowWidth + 32, Y + (MouseY * WindowHeight / 224));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (FullScreen == 0 && snesmouse != 0 || GUIOn2 == 1)
|
else if (FullScreen == 0 && snesmouse == 0 || GUIOn2 == 1)
|
||||||
{
|
{
|
||||||
MouseInput->Unacquire();
|
MouseInput->Unacquire();
|
||||||
SetCursorPos(X + WindowWidth + 1, Y + (MouseY * WindowHeight / 224));
|
SetCursorPos(X + WindowWidth + 1, Y + (MouseY * WindowHeight / 224));
|
||||||
@@ -2596,7 +2596,7 @@ int GetMouseX(void)
|
|||||||
SetCursorPos(X - 32, Y + (MouseY * WindowHeight / 224));
|
SetCursorPos(X - 32, Y + (MouseY * WindowHeight / 224));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (FullScreen == 0 && snesmouse != 0 || GUIOn2 == 1)
|
else if (FullScreen == 0 && snesmouse == 0 || GUIOn2 == 1)
|
||||||
{
|
{
|
||||||
MouseInput->Unacquire();
|
MouseInput->Unacquire();
|
||||||
SetCursorPos(X - 1, Y + (MouseY * WindowHeight / 224));
|
SetCursorPos(X - 1, Y + (MouseY * WindowHeight / 224));
|
||||||
@@ -2621,7 +2621,7 @@ int GetMouseY(void)
|
|||||||
SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 32);
|
SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (FullScreen == 0 && snesmouse != 0 || GUIOn2 == 1)
|
else if (FullScreen == 0 && snesmouse == 0 || GUIOn2 == 1)
|
||||||
{
|
{
|
||||||
MouseInput->Unacquire();
|
MouseInput->Unacquire();
|
||||||
SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 1);
|
SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 1);
|
||||||
@@ -2640,7 +2640,7 @@ int GetMouseY(void)
|
|||||||
SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 32);
|
SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (FullScreen == 0 && snesmouse != 0 || GUIOn2 == 1)
|
else if (FullScreen == 0 && snesmouse == 0 || GUIOn2 == 1)
|
||||||
{
|
{
|
||||||
MouseInput->Unacquire();
|
MouseInput->Unacquire();
|
||||||
SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 1);
|
SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user