mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-20 06:54:19 +01:00
Turn screen on on right-click
The right-click is almost useless on Android, so use it to turn the screen on. Add a new control event type (command) to request the server to turn the screen on.
This commit is contained in:
@@ -37,4 +37,8 @@ public class ServiceManager {
|
||||
public InputManager getInputManager() {
|
||||
return new InputManager(getService("input", "android.hardware.input.IInputManager"));
|
||||
}
|
||||
|
||||
public PowerManager getPowerManager() {
|
||||
return new PowerManager(getService("power", "android.os.IPowerManager"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user