mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 21:10:11 -07:00
Implement input event queue for fixing 1.13+ has no input
This commit is contained in:
parent
57ad096712
commit
27c329d2c9
3 changed files with 172 additions and 86 deletions
|
|
@ -28,6 +28,7 @@ import android.system.*;
|
|||
public class MainActivity extends LoggableActivity implements OnTouchListener, OnClickListener
|
||||
{
|
||||
public static final String initText = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ";
|
||||
public static boolean isPushPollCall;
|
||||
|
||||
private static int[] hotbarKeys = {
|
||||
LWJGLGLFWKeycode.GLFW_KEY_1, LWJGLGLFWKeycode.GLFW_KEY_2, LWJGLGLFWKeycode.GLFW_KEY_3,
|
||||
|
|
@ -154,6 +155,9 @@ public class MainActivity extends LoggableActivity implements OnTouchListener, O
|
|||
mVersionInfo = Tools.getVersionInfo(mProfile.getVersion());
|
||||
|
||||
setTitle("Minecraft " + mProfile.getVersion());
|
||||
|
||||
// Minecraft 1.13+
|
||||
isPushPollCall = mVersionInfo.arguments != null;
|
||||
|
||||
this.displayMetrics = Tools.getDisplayMetrics(this);
|
||||
CallbackBridge.windowWidth = displayMetrics.widthPixels / scaleFactor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue