mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 05:20:14 -07:00
Ooops I was sending a mouse click as a keyboard press...
This commit is contained in:
parent
573c7c3483
commit
af1f0d678b
1 changed files with 2 additions and 1 deletions
|
|
@ -386,7 +386,8 @@ public class BaseMainActivity extends LoggableActivity {
|
||||||
if (CallbackBridge.isGrabbing()) {
|
if (CallbackBridge.isGrabbing()) {
|
||||||
if (!triggeredLeftMouseButton && Math.abs(initialX - mouse_x) < fingerStillThreshold && Math.abs(initialY - mouse_y) < fingerStillThreshold) {
|
if (!triggeredLeftMouseButton && Math.abs(initialX - mouse_x) < fingerStillThreshold && Math.abs(initialY - mouse_y) < fingerStillThreshold) {
|
||||||
if (!LauncherPreferences.PREF_DISABLE_GESTURES) {
|
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) {
|
if (!isTouchInHotbar) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue