(KeyInputAdapter adapter)
| 1117 | } |
| 1118 | |
| 1119 | public static void startKeyInput(KeyInputAdapter adapter) { |
| 1120 | if (keyInputAdapter == adapter) { |
| 1121 | return; |
| 1122 | } |
| 1123 | if (keyInputAdapter != null) { |
| 1124 | keyInputAdapter.onInputEnd(); //make sure previous adapter is ended |
| 1125 | } |
| 1126 | keyInputAdapter = adapter; |
| 1127 | } |
| 1128 | public static void setOnScreenKeyboard(boolean val, boolean numeric) { |
| 1129 | Gdx.input.setOnscreenKeyboardVisible(val, numeric ? Input.OnscreenKeyboardType.NumberPad : Input.OnscreenKeyboardType.Default); |
| 1130 | } |