diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index 6be090e73..00d031f0c 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -213,6 +213,9 @@ protected void onCreate(Bundle savedInstanceState) { // Inflate the content setContentView(R.layout.activity_game); + // Hack: allows use keyboard by dpad or controller + getWindow().getDecorView().findViewById(android.R.id.content).setFocusable(true); + // Start the spinner spinner = SpinnerDialog.displayDialog(this, getResources().getString(R.string.conn_establishing_title), getResources().getString(R.string.conn_establishing_msg), true); @@ -1463,6 +1466,10 @@ private TouchContext getTouchContext(int actionIndex) @Override public void toggleKeyboard() { LimeLog.info("Toggling keyboard overlay"); + + // Hack: allows use keyboard by dpad or controller + streamView.clearFocus(); + InputMethodManager inputManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.toggleSoftInput(0, 0); }