mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 21:10:11 -07:00
Try to fix no input event in 1.13+
This commit is contained in:
parent
615dd370a1
commit
95e827eee3
3 changed files with 20 additions and 18 deletions
|
|
@ -28,7 +28,7 @@ import android.system.*;
|
|||
public class MainActivity extends LoggableActivity implements OnTouchListener, OnClickListener
|
||||
{
|
||||
public static final String initText = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ";
|
||||
public static boolean isPushPollCall;
|
||||
volatile public static boolean isPushPollCall;
|
||||
|
||||
private static int[] hotbarKeys = {
|
||||
LWJGLGLFWKeycode.GLFW_KEY_1, LWJGLGLFWKeycode.GLFW_KEY_2, LWJGLGLFWKeycode.GLFW_KEY_3,
|
||||
|
|
@ -158,7 +158,8 @@ public class MainActivity extends LoggableActivity implements OnTouchListener, O
|
|||
|
||||
// Minecraft 1.13+
|
||||
isPushPollCall = mVersionInfo.arguments != null;
|
||||
|
||||
CallbackBridge.nativeAttachThreadToOther(true, isPushPollCall);
|
||||
|
||||
this.displayMetrics = Tools.getDisplayMetrics(this);
|
||||
CallbackBridge.windowWidth = displayMetrics.widthPixels / scaleFactor;
|
||||
CallbackBridge.windowHeight = displayMetrics.heightPixels / scaleFactor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue