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:
parent
3ea24bd757
commit
0481f920b0
2 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue