uncomment backspace trigger

This commit is contained in:
khanhduytran0 2020-09-23 19:11:04 +07:00
parent dfe6272091
commit 004ee25e4f
2 changed files with 3 additions and 4 deletions

View File

@ -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) {

View File

@ -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(){