mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 06:39:54 -04:00
uncomment backspace trigger
This commit is contained in:
parent
dfe6272091
commit
004ee25e4f
@ -7,7 +7,7 @@ import org.lwjgl.glfw.*;
|
||||
|
||||
public class AndroidLWJGLKeycode {
|
||||
// Fix double letters on MC 1.9 and above
|
||||
// public static boolean isBackspaceAfterChar;
|
||||
public static boolean isBackspaceAfterChar;
|
||||
private static final ArrayMap<Integer, Integer> androidToLwjglMap;
|
||||
private static String[] androidKeyNameArray;
|
||||
static {
|
||||
@ -194,11 +194,10 @@ public class AndroidLWJGLKeycode {
|
||||
} catch (Throwable th) {
|
||||
th.printStackTrace();
|
||||
}
|
||||
/*
|
||||
|
||||
if (isBackspaceAfterChar && !CallbackBridge.isGrabbing() && i != KeyEvent.KEYCODE_DEL) {
|
||||
mainActivity.sendKeyPress(LWJGLGLFWKeycode.GLFW_KEY_BACKSPACE, keyEvent.getModifiers(), isDown);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
public static void execKeyIndex(MainActivity mainActivity, int index) {
|
||||
|
@ -281,7 +281,7 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
||||
onClick(toggleControlButton);
|
||||
this.drawerLayout.closeDrawers();
|
||||
|
||||
// AndroidLWJGLKeycode.isBackspaceAfterChar = mVersionInfo.minimumLauncherVersion >= 18;
|
||||
AndroidLWJGLKeycode.isBackspaceAfterChar = mVersionInfo.minimumLauncherVersion >= 18;
|
||||
|
||||
placeMouseAt(CallbackBridge.windowWidth / 2, CallbackBridge.windowHeight / 2);
|
||||
new Thread(new Runnable(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user