From 5fe51112dd571870015b9d369e37495a53062317 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Mon, 18 Sep 2017 20:48:49 +0200 Subject: [PATCH] fixed #214, now "usemouse.always" is checked too --- src/emucore/FrameBuffer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emucore/FrameBuffer.cxx b/src/emucore/FrameBuffer.cxx index d4ce3b0fe..eeca3ab9d 100644 --- a/src/emucore/FrameBuffer.cxx +++ b/src/emucore/FrameBuffer.cxx @@ -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"))