fixed #214, now "usemouse.always" is checked too

This commit is contained in:
thrust26 2017-09-18 20:48:49 +02:00
parent 2a21b497fe
commit 5fe51112dd
1 changed files with 2 additions and 1 deletions

View File

@ -588,8 +588,9 @@ void FrameBuffer::setCursorState()
bool analog = myOSystem.hasConsole() ?
(myOSystem.eventHandler().controllerIsAnalog(Controller::Left) ||
myOSystem.eventHandler().controllerIsAnalog(Controller::Right)) : false;
bool alwaysUseMouse = BSPF::equalsIgnoreCase("always", myOSystem.settings().getString("usemouse"));
grabMouse(emulation && analog && myOSystem.settings().getBool("grabmouse"));
grabMouse(emulation && (analog || alwaysUseMouse) && myOSystem.settings().getBool("grabmouse"));
// Show/hide cursor in UI/emulation mode based on 'cursor' setting
switch(myOSystem.settings().getInt("cursor"))