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 @@ -212,6 +212,9 @@ protected void onCreate(Bundle savedInstanceState) {
212
212
// Inflate the content
213
213
setContentView (R .layout .activity_game );
214
214
215
+ // Hack: allows use keyboard by dpad or controller
216
+ getWindow ().getDecorView ().findViewById (android .R .id .content ).setFocusable (true );
217
+
215
218
// Start the spinner
216
219
spinner = SpinnerDialog .displayDialog (this , getResources ().getString (R .string .conn_establishing_title ),
217
220
getResources ().getString (R .string .conn_establishing_msg ), true );
@@ -1442,6 +1445,10 @@ private TouchContext getTouchContext(int actionIndex)
1442
1445
@ Override
1443
1446
public void toggleKeyboard () {
1444
1447
LimeLog .info ("Toggling keyboard overlay" );
1448
+
1449
+ // Hack: allows use keyboard by dpad or controller
1450
+ streamView .clearFocus ();
1451
+
1445
1452
InputMethodManager inputManager = (InputMethodManager ) getSystemService (Context .INPUT_METHOD_SERVICE );
1446
1453
inputManager .toggleSoftInput (0 , 0 );
1447
1454
}
You can’t perform that action at this time.
0 commit comments