mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 07:05:40 -04:00
Mitigate missing first key with hardware keyboard
This commit is contained in:
parent
a6a8296968
commit
c47f14d3bf
@ -376,7 +376,7 @@ public class BaseMainActivity extends BaseActivity {
|
||||
sendKeyPress(LwjglGlfwKeycode.GLFW_KEY_ESCAPE);
|
||||
return true;
|
||||
}
|
||||
return super.dispatchKeyEvent(event);
|
||||
return minecraftGLView.processKeyEvent(event);
|
||||
}
|
||||
|
||||
public static void switchKeyboardState() {
|
||||
|
@ -480,8 +480,7 @@ public class MinecraftGLSurface extends View {
|
||||
}
|
||||
|
||||
/** The event for keyboard/ gamepad button inputs */
|
||||
@Override
|
||||
public boolean onKeyPreIme(int keyCode, KeyEvent event) {
|
||||
public boolean processKeyEvent(KeyEvent event) {
|
||||
//Toast.makeText(this, event.toString(),Toast.LENGTH_SHORT).show();
|
||||
//Toast.makeText(this, event.getDevice().toString(), Toast.LENGTH_SHORT).show();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user