mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 06:39:39 +00:00
Fix no input working if uinput is not supported
This commit is contained in:
parent
55ca08ff73
commit
ecf206665e
1 changed files with 6 additions and 1 deletions
|
@ -215,7 +215,12 @@ public class Controller {
|
|||
|
||||
switch (event) {
|
||||
case GameController.DEVICE_ADDED:
|
||||
gameControllers.append(id, new GameController());
|
||||
try {
|
||||
gameControllers.append(id, new GameController());
|
||||
} catch (Exception e) {
|
||||
Ln.e("It seems your phone doesn't support this feature without root. Game controllers will be disabled.", e);
|
||||
gameControllersEnabled = false;
|
||||
}
|
||||
break;
|
||||
|
||||
case GameController.DEVICE_REMOVED:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue