-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
80 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Gamepad | ||
|
||
Several gamepad input modes are available: | ||
|
||
- `--gamepad=disabled` (default) | ||
- `--gamepad=uhid` (or `-G`): simulates physical HID gamepads using the UHID | ||
kernel module on the device | ||
- `--gamepad=aoa`: simulates physical HID gamepads using the AOAv2 protocol | ||
|
||
|
||
## Physical gamepad simulation | ||
|
||
Two modes allow to simulate physical HID gamepads on the device, one for each | ||
physical gamepad plugged into the computer. | ||
|
||
|
||
### UHID | ||
|
||
This mode simulates physical HID gamepads using the [UHID] kernel module on the | ||
device. | ||
|
||
[UHID]: https://kernel.org/doc/Documentation/hid/uhid.txt | ||
|
||
To enable UHID gamepads, use: | ||
|
||
```bash | ||
scrcpy --gamepad=uhid | ||
scrcpy -G # short version | ||
``` | ||
|
||
|
||
### AOA | ||
|
||
This mode simulates physical HID gamepads using the [AOAv2] protocol. | ||
|
||
[AOAv2]: https://source.android.com/devices/accessories/aoa2#hid-support | ||
|
||
To enable AOA gamepads, use: | ||
|
||
```bash | ||
scrcpy --gamepad=aoa | ||
``` | ||
|
||
Contrary to the other mode, it works at the USB level directly (so it only works | ||
over USB). | ||
|
||
It does not use the scrcpy server, and does not require `adb` (USB debugging). | ||
Therefore, it is possible to control the device (but not mirror) even with USB | ||
debugging disabled (see [OTG](otg.md)). | ||
|
||
Note: On Windows, it may only work in [OTG mode](otg.md), not while mirroring | ||
(it is not possible to open a USB device if it is already open by another | ||
process like the _adb daemon_). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters