run android InputService independently

This commit is contained in:
csf
2022-06-01 21:14:02 +08:00
parent 6e1f4cfeca
commit 75b920079b
5 changed files with 17 additions and 44 deletions

View File

@@ -49,7 +49,6 @@ class ServerModel with ChangeNotifier {
* 2. check config
* audio true by default (if permission on) (false default < Android 10)
* file true by default (if permission on)
* input false by default (it need turning on manually everytime)
*/
await Future.delayed(Duration(seconds: 1));
@@ -79,11 +78,6 @@ class ServerModel with ChangeNotifier {
_fileOk = fileOption.isEmpty;
}
// input (mouse control)
Map<String, String> res = Map()
..["name"] = "enable-keyboard"
..["value"] = 'N';
FFI.setByName('option', jsonEncode(res)); // input false by default
notifyListeners();
}();