mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-08-18 01:15:59 +00:00
Only initialize input when streaming
This commit is contained in:
parent
6be4ffef9f
commit
ad487cd5ee
@ -274,14 +274,13 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input_init(mapping);
|
|
||||||
|
|
||||||
client_init(address);
|
client_init(address);
|
||||||
|
|
||||||
if (strcmp("list", action) == 0) {
|
if (strcmp("list", action) == 0) {
|
||||||
pair_check();
|
pair_check();
|
||||||
applist(address);
|
applist(address);
|
||||||
} else if (strcmp("stream", action) == 0) {
|
} else if (strcmp("stream", action) == 0) {
|
||||||
|
input_init(mapping);
|
||||||
pair_check();
|
pair_check();
|
||||||
stream(&config, address, app, sops, localaudio);
|
stream(&config, address, app, sops, localaudio);
|
||||||
} else if (strcmp("pair", action) == 0)
|
} else if (strcmp("pair", action) == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user