Input: Remove ugly [-20,-20] mouse position hack

This was supposed to disappear shortly after To the Moon's release,
but it unfortunately survived a bit longer :)

The status of the mouse cursor being inside / outside the game window
is now properly exposed (in MRI) via MKXP.mouse_in_window.
This commit is contained in:
Jonas Kulla 2017-04-08 18:41:56 +02:00
parent 3ea24bd757
commit 0481f920b0
2 changed files with 9 additions and 6 deletions

View file

@ -665,9 +665,6 @@ int Input::mouseX()
{
RGSSThreadData &rtData = shState->rtData();
if (!EventThread::mouseState.inWindow)
return -20;
return (EventThread::mouseState.x - rtData.screenOffset.x) * rtData.sizeResoRatio.x;
}
@ -675,9 +672,6 @@ int Input::mouseY()
{
RGSSThreadData &rtData = shState->rtData();
if (!EventThread::mouseState.inWindow)
return -20;
return (EventThread::mouseState.y - rtData.screenOffset.y) * rtData.sizeResoRatio.y;
}