diff options
Diffstat (limited to 'app/src/main/java/invalid/lena/scrcpy/Controller.java')
| -rw-r--r-- | app/src/main/java/invalid/lena/scrcpy/Controller.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/app/src/main/java/invalid/lena/scrcpy/Controller.java b/app/src/main/java/invalid/lena/scrcpy/Controller.java index 3cc321c..59dc84d 100644 --- a/app/src/main/java/invalid/lena/scrcpy/Controller.java +++ b/app/src/main/java/invalid/lena/scrcpy/Controller.java @@ -189,23 +189,6 @@ public final class Controller implements ControlStream.InboundSink { sender.accept(ControlMessages.backOrScreenOn(ControlMessages.ACTION_UP)); } - // Home and Recents go as keycodes, not as gestures. On a - // gesture-navigation source a swipe from the bottom edge is claimed - // by the source's own gesture detector and never reaches this app, - // and unlike the side edges that area cannot be released with - // setSystemGestureExclusionRects - the system always keeps it. So - // the target's navigation is unreachable by forwarding touches, on - // any modern source device, and has to be driven explicitly. - public void onHome() { - sendKeycode(ControlMessages.ACTION_DOWN, ControlMessages.KEYCODE_HOME, 0, 0); - sendKeycode(ControlMessages.ACTION_UP, ControlMessages.KEYCODE_HOME, 0, 0); - } - - public void onRecents() { - sendKeycode(ControlMessages.ACTION_DOWN, ControlMessages.KEYCODE_APP_SWITCH, 0, 0); - sendKeycode(ControlMessages.ACTION_UP, ControlMessages.KEYCODE_APP_SWITCH, 0, 0); - } - public void resetVideo() { sender.accept(ControlMessages.resetVideo()); Log.i("controller: reset video"); |