mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-01 14:19:12 -06:00
Working Mouse in GLFW
This commit is contained in:
parent
fa04ea6014
commit
844a90431b
3 changed files with 3 additions and 12 deletions
Binary file not shown.
|
|
@ -307,6 +307,8 @@ public class MinecraftGLSurface extends View implements GrabListener {
|
|||
break;
|
||||
|
||||
case MotionEvent.ACTION_DOWN: // 0
|
||||
sendMouseButton(LwjglGlfwKeycode.GLFW_MOUSE_BUTTON_LEFT, true);
|
||||
sendMouseButton(LwjglGlfwKeycode.GLFW_MOUSE_BUTTON_LEFT, false);
|
||||
hudKeyHandled = handleGuiBar((int)e.getX(), (int) e.getY());
|
||||
boolean isTouchInHotbar = hudKeyHandled != -1;
|
||||
if (isTouchInHotbar) {
|
||||
|
|
|
|||
|
|
@ -119,17 +119,6 @@ public class JREUtils {
|
|||
Logger.appendToLog(currStr);
|
||||
Log.e("jrelog-logcat",currStr);
|
||||
}
|
||||
|
||||
if (p.waitFor() != 0) {
|
||||
Log.e("jrelog-logcat", "Logcat exited with code " + p.exitValue());
|
||||
failTime++;
|
||||
Log.i("jrelog-logcat", (failTime <= 10 ? "Restarting logcat" : "Too many restart fails") + " (attempt " + failTime + "/10");
|
||||
if (failTime <= 10) {
|
||||
run();
|
||||
} else {
|
||||
Logger.appendToLog("ERROR: Unable to get more log.");
|
||||
}
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
Log.e("jrelog-logcat", "Exception on logging thread", e);
|
||||
Logger.appendToLog("Exception on logging thread:\n" + Log.getStackTraceString(e));
|
||||
|
|
@ -353,7 +342,7 @@ public class JREUtils {
|
|||
"-Dfml.earlyprogresswindow=false" //Forge 1.14+ workaround
|
||||
));
|
||||
if(LauncherPreferences.PREF_ARC_CAPES) {
|
||||
overridableArguments.add("-javaagent:"+new File(Tools.DIR_DATA,"arc_dns_injector/arc_dns_injector.jar").getAbsolutePath()+"=23.95.137.176");
|
||||
//overridableArguments.add("-javaagent:"+new File(Tools.DIR_DATA,"arc_dns_injector/arc_dns_injector.jar").getAbsolutePath()+"=23.95.137.176");
|
||||
}
|
||||
List<String> additionalArguments = new ArrayList<>();
|
||||
for(String arg : overridableArguments) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue