Android-连接硬件键盘时显示屏幕键盘

Android-连接硬件键盘时显示屏幕键盘,android,libgdx,Android,Libgdx,我有一个基本上是键盘的外围设备(按钮不完整) 通过迷你USB线连接到平板电脑。我正在将焦点设置为文本字段以进行输入 我使用了两个Libgdx函数 Gdx.input.setOnscreenKeyboardVisible(true); InputMethodManager mgr = (InputMethodManager) appActivity.getSystemService(Context.INPUT_METHOD_SERVICE); mgr.showSoftInput(appActiv

我有一个基本上是键盘的外围设备(按钮不完整) 通过迷你USB线连接到平板电脑。我正在将焦点设置为文本字段以进行输入

我使用了两个Libgdx函数

Gdx.input.setOnscreenKeyboardVisible(true);
InputMethodManager mgr = (InputMethodManager) appActivity.getSystemService(Context.INPUT_METHOD_SERVICE);
mgr.showSoftInput(appActivity.getCurrentFocus(), InputMethodManager.SHOW_FORCED);
和本机Android/Java函数

Gdx.input.setOnscreenKeyboardVisible(true);
InputMethodManager mgr = (InputMethodManager) appActivity.getSystemService(Context.INPUT_METHOD_SERVICE);
mgr.showSoftInput(appActivity.getCurrentFocus(), InputMethodManager.SHOW_FORCED);
它们都在硬件键盘断开连接时工作 但在连接硬件时不要这样做

有没有办法告诉Android/Libgdx禁用硬件键盘