mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 21:40:15 -07:00
Mitigate missing first key with hardware keyboard
This commit is contained in:
parent
a6a8296968
commit
c47f14d3bf
2 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue