Skip to content

Commit fdddd57

Browse files
committed
fix(Pointer): Last fix didn't properly apply to virtual cursor
This is a leftover from testing, forgot to remove it, my bad
1 parent 3a8db25 commit fdddd57

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/mouse/AndroidPointerCapture.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ public AndroidPointerCapture(AbstractTouchpad touchpad, View hostView) {
4444
CallbackBridge.addGrabListener(this);
4545
}
4646

47+
/**
48+
* Checks whether or not the touchpad is already enabled and if virtual cursor is used
49+
* if it is, the touchpad is not enabled
50+
*/
4751
private void enableTouchpadIfNecessary() {
48-
if(!mTouchpad.getDisplayState() && PREF_MOUSE_GRAB_FORCE) mTouchpad.enable(true);
52+
if(!mTouchpad.getDisplayState()) mTouchpad.enable(true);
4953
}
5054

5155
// Needed so it releases the cursor when inside game menu

0 commit comments

Comments
 (0)