Skip to content

Commit

Permalink
Fix documentation about default mouse mode
Browse files Browse the repository at this point in the history
When video playback is turned off, the default mouse mode has changed
from "uhid" to "disabled" in 2c25fd7.

Update the documentation accordingly.

Refs Genymobile#5410 <Genymobile#5410>
Refs Genymobile#5542 <Genymobile#5542>
  • Loading branch information
rom1v committed Nov 26, 2024
1 parent 7fef051 commit 1d2f16d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions doc/control.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ To control the device without mirroring:
scrcpy --no-video --no-audio
```

By default, mouse mode is switched to UHID if video mirroring is disabled (a
relative mouse mode is required).
By default, the mouse is disabled when video playback is turned off.

To control the device using a relative mouse, enable UHID mouse mode:

```bash
scrcpy --no-video --no-audio --mouse=uhid
scrcpy --no-video --no-audio -M # short version
```

To also use a UHID keyboard, set it explicitly:

```bash
scrcpy --no-video --no-audio --keyboard=uhid
scrcpy --no-video --no-audio -K # short version
scrcpy --no-video --no-audio --mouse=uhid --keyboard=uhid
scrcpy --no-video --no-audio -MK # short version
```

To use AOA instead (over USB only):
Expand Down

0 comments on commit 1d2f16d

Please sign in to comment.