mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 15:17:02 -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 {
|
public class AndroidLWJGLKeycode {
|
||||||
// Fix double letters on MC 1.9 and above
|
// 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 final ArrayMap<Integer, Integer> androidToLwjglMap;
|
||||||
private static String[] androidKeyNameArray;
|
private static String[] androidKeyNameArray;
|
||||||
static {
|
static {
|
||||||
@ -194,11 +194,10 @@ public class AndroidLWJGLKeycode {
|
|||||||
} catch (Throwable th) {
|
} catch (Throwable th) {
|
||||||
th.printStackTrace();
|
th.printStackTrace();
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
if (isBackspaceAfterChar && !CallbackBridge.isGrabbing() && i != KeyEvent.KEYCODE_DEL) {
|
if (isBackspaceAfterChar && !CallbackBridge.isGrabbing() && i != KeyEvent.KEYCODE_DEL) {
|
||||||
mainActivity.sendKeyPress(LWJGLGLFWKeycode.GLFW_KEY_BACKSPACE, keyEvent.getModifiers(), isDown);
|
mainActivity.sendKeyPress(LWJGLGLFWKeycode.GLFW_KEY_BACKSPACE, keyEvent.getModifiers(), isDown);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void execKeyIndex(MainActivity mainActivity, int index) {
|
public static void execKeyIndex(MainActivity mainActivity, int index) {
|
||||||
|
@ -281,7 +281,7 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
|||||||
onClick(toggleControlButton);
|
onClick(toggleControlButton);
|
||||||
this.drawerLayout.closeDrawers();
|
this.drawerLayout.closeDrawers();
|
||||||
|
|
||||||
// AndroidLWJGLKeycode.isBackspaceAfterChar = mVersionInfo.minimumLauncherVersion >= 18;
|
AndroidLWJGLKeycode.isBackspaceAfterChar = mVersionInfo.minimumLauncherVersion >= 18;
|
||||||
|
|
||||||
placeMouseAt(CallbackBridge.windowWidth / 2, CallbackBridge.windowHeight / 2);
|
placeMouseAt(CallbackBridge.windowWidth / 2, CallbackBridge.windowHeight / 2);
|
||||||
new Thread(new Runnable(){
|
new Thread(new Runnable(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user