diff options
| author | Lena <lena@omega> | 2026-08-01 00:00:00 +0000 |
|---|---|---|
| committer | Lena <lena@omega> | 2026-08-01 00:00:00 +0000 |
| commit | 3037f9f8fdcc6cdadfe94ba248d10e647578cf53 (patch) | |
| tree | e07e981d8d6b05c1a3dc836434d88bff7d76c703 /app/src/main/java/invalid/lena/scrcpy/Controller.java | |
| parent | 70290eb3d79a5347cdc114daf6ce0b1b2e86528a (diff) | |
| download | scrcpy-android-3037f9f8fdcc6cdadfe94ba248d10e647578cf53.tar.gz | |
app: refine physical-device interface
Use target-safe capture defaults and remove redundant navigation and
frame-rate controls.
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"); |