Ooops I was sending a mouse click as a keyboard press...

This commit is contained in:
SerpentSpirale committed 2021-07-22 22:02:14 +02:00
1 parent 573c7c3483
commit af1f0d678b
1 file changed
+2 -1
@@ -386,7 +386,8 @@ public class BaseMainActivity extends LoggableActivity {
if (CallbackBridge.isGrabbing()) {
if (!triggeredLeftMouseButton && Math.abs(initialX - mouse_x) < fingerStillThreshold && Math.abs(initialY - mouse_y) < fingerStillThreshold) {
if (!LauncherPreferences.PREF_DISABLE_GESTURES) {
sendKeyPress(LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_RIGHT);
sendMouseButton(LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_RIGHT, true);
sendMouseButton(LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_RIGHT, false);
}
}
if (!isTouchInHotbar) {