33 Star 230 Fork 87

Gitee 极速下载 / scrcpy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Genymobile/scrcpy
克隆/下载
otg.md 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
Romain Vimont 提交于 2024-02-29 10:00 . Document UHID

OTG

By default, scrcpy injects input events at the Android API level. As an alternative, when connected over USB, it is possible to send HID events, so that scrcpy behaves as if it was a physical keyboard and/or mouse connected to the Android device.

A special mode allows to control the device without mirroring, using AOA keyboard and mouse. Therefore, it is possible to run scrcpy with only physical keyboard and mouse simulation (HID), as if the computer keyboard and mouse were plugged directly to the device via an OTG cable.

In this mode, adb (USB debugging) is not necessary, and mirroring is disabled.

This is similar to --keyboard=aoa --mouse=aoa, but without mirroring.

To enable OTG mode:

scrcpy --otg
# Pass the serial if several USB devices are available
scrcpy --otg -s 0123456789abcdef

It is possible to disable HID keyboard or HID mouse:

scrcpy --otg --keyboard=disabled
scrcpy --otg --mouse=disabled

It only works if the device is connected over USB.

OTG issues on Windows

See FAQ.

C/C++
1
https://gitee.com/mirrors/scrcpy.git
git@gitee.com:mirrors/scrcpy.git
mirrors
scrcpy
scrcpy
master

搜索帮助