From 3e0df6ad0586bc435fc1571e8d7fa3953c900f04 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 22 Feb 2022 18:23:42 +0100 Subject: [PATCH] Update HID/OTG features in README HID/OTG features are not limited to Linux anymore. Refs 82a99f69ec464a0637a16bdccfe5ff806777e942 --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1139092f..3bafd53d 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,8 @@ Its features include: - [configurable quality](#capture-configuration) - device screen [as a webcam (V4L2)](#v4l2loopback) (Linux-only) - [physical keyboard simulation (HID)](#physical-keyboard-simulation-hid) - (Linux-only) - [physical mouse simulation (HID)](#physical-mouse-simulation-hid) - (Linux-only) - - [OTG mode](#otg) (Linux-only) + - [OTG mode](#otg) - and moreā€¦ ## Requirements @@ -807,14 +805,17 @@ a location inverted through the center of the screen. By default, scrcpy uses Android key or text injection: it works everywhere, but is limited to ASCII. -On Linux, scrcpy can simulate a physical USB keyboard on Android to provide a -better input experience (using [USB HID over AOAv2][hid-aoav2]): the virtual +Alternatively, scrcpy can simulate a physical USB keyboard on Android to provide +a better input experience (using [USB HID over AOAv2][hid-aoav2]): the virtual keyboard is disabled and it works for all characters and IME. [hid-aoav2]: https://source.android.com/devices/accessories/aoa2#hid-support -However, it only works if the device is connected by USB, and is currently only -supported on Linux. +However, it only works if the device is connected by USB. + +Note: On Windows, it may only work in [OTG mode](#otg), not while mirroring (it +is not possible to open a USB device if it is already open by another process +like the adb daemon). To enable this mode: @@ -847,8 +848,7 @@ a physical keyboard is connected). #### Physical mouse simulation (HID) Similarly to the physical keyboard simulation, it is possible to simulate a -physical mouse. Likewise, it only works if the device is connected by USB, and -is currently only supported on Linux. +physical mouse. Likewise, it only works if the device is connected by USB. By default, scrcpy uses Android mouse events injection, using absolute coordinates. By simulating a physical mouse, a mouse pointer appears on the @@ -901,7 +901,7 @@ scrcpy --otg # keyboard and mouse ``` Like `--hid-keyboard` and `--hid-mouse`, it only works if the device is -connected by USB, and is currently only supported on Linux. +connected by USB. #### Text injection preference