You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scrcpy/app/src/usb
Simon Chan ea98d49bae Introduce --keyboard and --mouse
Until now, there was two modes for keyboard and mouse:
 - event injection using the Android system API (default)
 - HID/AOA over USB

For this reason, the options were exposed as simple flags:
 - -K or --hid-keyboard to enable physical keyboard simulation (AOA)
 - -M or --hid-mouse to enable physical mouse simulation (AOA)

Replace them by explicit --keyboard and --mouse options, with 3 possible
values:
 - disabled
 - sdk (default)
 - aoa

This will allow to add a new mode (uhid).

PR #4473 <https://github.com/Genymobile/scrcpy/pull/4473>

Co-authored-by: Romain Vimont <rom@rom1v.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
3 months ago
..
aoa_hid.c Replace unsigned char by uint8_t for buffers 4 months ago
aoa_hid.h Replace unsigned char by uint8_t for buffers 4 months ago
hid_keyboard.c Replace raw number by its name 8 months ago
hid_keyboard.h Move AOA/HID code to usb/ 2 years ago
hid_mouse.c Improve HID event push error message 2 years ago
hid_mouse.h Move AOA/HID code to usb/ 2 years ago
scrcpy_otg.c Introduce --keyboard and --mouse 3 months ago
scrcpy_otg.h Add specific exit code for device disconnection 2 years ago
screen_otg.c Revert "Make OTG window resizable" 2 years ago
screen_otg.h Apply requested window size in OTG mode 2 years ago
usb.c Make sc_usb_devices_destroy() static 8 months ago
usb.h Report USB device disconnection when detected 2 years ago