File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
app/src/main/java/com/limelight Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,9 @@ protected void onCreate(Bundle savedInstanceState) {
213
213
// Inflate the content
214
214
setContentView (R .layout .activity_game );
215
215
216
+ // Hack: allows use keyboard by dpad or controller
217
+ getWindow ().getDecorView ().findViewById (android .R .id .content ).setFocusable (true );
218
+
216
219
// Start the spinner
217
220
spinner = SpinnerDialog .displayDialog (this , getResources ().getString (R .string .conn_establishing_title ),
218
221
getResources ().getString (R .string .conn_establishing_msg ), true );
@@ -1463,6 +1466,10 @@ private TouchContext getTouchContext(int actionIndex)
1463
1466
@ Override
1464
1467
public void toggleKeyboard () {
1465
1468
LimeLog .info ("Toggling keyboard overlay" );
1469
+
1470
+ // Hack: allows use keyboard by dpad or controller
1471
+ streamView .clearFocus ();
1472
+
1466
1473
InputMethodManager inputManager = (InputMethodManager ) getSystemService (Context .INPUT_METHOD_SERVICE );
1467
1474
inputManager .toggleSoftInput (0 , 0 );
1468
1475
}
You can’t perform that action at this time.
0 commit comments