mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-20 23:30:37 +00:00
Autoload input devices
This commit is contained in:
@@ -122,6 +122,7 @@ int main(int argc, char* argv[]) {
|
||||
char* action = NULL;
|
||||
char* address = NULL;
|
||||
char* mapping = NULL;
|
||||
bool inputs = false;
|
||||
int option_index = 0;
|
||||
bool sops = true;
|
||||
bool localaudio = false;
|
||||
@@ -159,6 +160,7 @@ int main(int argc, char* argv[]) {
|
||||
break;
|
||||
case 'j':
|
||||
input_create(optarg, mapping);
|
||||
inputs = true;
|
||||
break;
|
||||
case 'k':
|
||||
mapping = optarg;
|
||||
@@ -209,6 +211,10 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!inputs) {
|
||||
input_autoload(mapping);
|
||||
}
|
||||
|
||||
client_init(address);
|
||||
|
||||
if (strcmp("applist", action) == 0)
|
||||
|
||||
Reference in New Issue
Block a user