use right alt to open keyboard

This commit is contained in:
ShirosakiMio 2023-08-26 22:34:46 +08:00
parent 6bbe8795cc
commit d3cae4a111
1 changed files with 6 additions and 0 deletions

View File

@ -179,6 +179,12 @@ public class FCLInput implements View.OnCapturedPointerListener, View.OnGenericM
return true;
}
}
if (event.getKeyCode() == KeyEvent.KEYCODE_ALT_RIGHT && menu.getCursorMode() == FCLBridge.CursorEnabled) {
if (event.getAction() == KeyEvent.ACTION_DOWN){
((GameMenu) menu).getTouchCharInput().switchKeyboardState();
}
return true;
}
if ((event.getFlags() & KeyEvent.FLAG_SOFT_KEYBOARD) == KeyEvent.FLAG_SOFT_KEYBOARD) {
if (event.getKeyCode() == KeyEvent.KEYCODE_ENTER)
return true;