Add an option to keep the device awake
Add an option to prevent the device to sleep:
scrcpy --stay-awake
scrcpy -w
The initial state is restored on exit.
Fixes #631 <https://github.com/Genymobile/scrcpy/issues/631>
This commit is contained in:
@@ -52,6 +52,7 @@ struct server_params {
|
||||
bool control;
|
||||
uint16_t display_id;
|
||||
bool show_touches;
|
||||
bool stay_awake;
|
||||
};
|
||||
|
||||
// init default values
|
||||
|
||||
Reference in New Issue
Block a user