diff --git a/app_2009scape/src/main/AndroidManifest.xml b/app_2009scape/src/main/AndroidManifest.xml
index e16935c7d..f8624fa9a 100644
--- a/app_2009scape/src/main/AndroidManifest.xml
+++ b/app_2009scape/src/main/AndroidManifest.xml
@@ -4,6 +4,8 @@
package="net.kdt.pojavlaunch">
+
+
1000 &&
- totalMovement < 5000
+ System.currentTimeMillis() - touchStart > 1500 &&
+ totalMovement < 8000
){
longPressTriggered = true;
AWTInputBridge.sendKey((char)118,118);
- System.out.println("LONG PRESS!");
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ vb.vibrate(VibrationEffect.createOneShot(100, VibrationEffect.DEFAULT_AMPLITUDE));
+ } else {
+ //deprecated in API 26
+ vb.vibrate(100);
+ }
return true;
}
@@ -154,7 +160,11 @@ public class JavaGUILauncherActivity extends BaseActivity implements View.OnTou
AWTInputBridge.sendMousePress(AWTInputEvent.BUTTON1_DOWN_MASK);
case MotionEvent.ACTION_UP: // 1
if(longPressTriggered){
- AWTInputBridge.sendKey((char)117,117);
+ // Currently a click is needed to end the drag. MB1
+ // is not good for banking so MB2 sending instead. Annoying but
+ // better than the alternative. other buttons 'MB3' ect same outcome
+ // probably should null the click on client if isHeld is true.
+ AWTInputBridge.sendKey((char)122,122);
AWTInputBridge.sendMousePress(AWTInputEvent.BUTTON1_DOWN_MASK);
}
break;
diff --git a/app_2009scape/src/main/res/raw/beta.jar b/app_2009scape/src/main/res/raw/beta.jar
index 5bf3f92f4..224bd49a4 100644
Binary files a/app_2009scape/src/main/res/raw/beta.jar and b/app_2009scape/src/main/res/raw/beta.jar differ