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
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
..
adb Fix memory leak on error 4 months ago
android Fix typos 3 years ago
sys Use /dev/null instead of closing fds 2 years ago
trait Pass AVCodecContext to packet sinks 1 year ago
usb Introduce --keyboard and --mouse 3 months ago
util Replace locks by atomics in audio player 4 months ago
audio_player.c Avoid negative average buffering 4 months ago
audio_player.h Replace locks by atomics in audio player 4 months ago
cli.c Introduce --keyboard and --mouse 3 months ago
cli.h Add --pause-on-exit 8 months ago
clock.c Simplify clock estimation 1 year ago
clock.h Simplify clock estimation 1 year ago
common.h Fix MIN/MAX macros 1 year ago
compat.c Add compat for reallocarray() 1 year ago
compat.h Add --record-orientation 6 months ago
control_msg.c Replace unsigned char by uint8_t for buffers 3 months ago
control_msg.h Replace unsigned char by uint8_t for buffers 3 months ago
controller.c Replace unsigned char by uint8_t for buffers 3 months ago
controller.h Use VecDeque in controller 1 year ago
coords.h Use sc_ prefix for size, position and point 3 years ago
decoder.c Pass AVCodecContext to packet sinks 1 year ago
decoder.h Pass AVCodecContext to packet sinks 1 year ago
delay_buffer.c Simplify clock estimation 1 year ago
delay_buffer.h Optionally do not delay the first frame 1 year ago
demuxer.c Fix AV1 demuxing 6 months ago
demuxer.h Use packet source trait in demuxer 1 year ago
device_msg.c Use sc_ prefix for device sender 3 months ago
device_msg.h Use sc_ prefix for device sender 3 months ago
display.c Fix typo in error message 3 months ago
display.h Add --display-orientation 6 months ago
events.h Add --time-limit 12 months ago
file_pusher.c Stop and join sc_file_pusher only if initialized 1 year ago
file_pusher.h Use VecDeque in file_pusher 1 year ago
fps_counter.c Initialize interrupted field explicitly 1 year ago
fps_counter.h Add missing SC_ prefix to header guards 2 years ago
frame_buffer.c Fix code style 2 years ago
frame_buffer.h Extract current video_buffer to frame_buffer 3 years ago
icon.c Add missing `void`s for empty parameter list 7 months ago
icon.h Add missing SC_ prefix to header guards 2 years ago
input_events.h Force mouse source when --forward-all-clicks 1 year ago
input_manager.c Accept disabled keyboard or mouse 3 months ago
input_manager.h Simulate tilt multitouch event by pressing Shift 6 months ago
keyboard_inject.c Use sc_ prefix for control_msg enums 2 years ago
keyboard_inject.h Use sc_ prefix for controller 2 years ago
main.c Declare local functions as static 7 months ago
mouse_inject.c Forward action button to device 1 year ago
mouse_inject.h Use sc_ prefix for controller 2 years ago
opengl.c Fix OpenGL ES prefix skip 2 years ago
opengl.h Define feature test macros in common.h 3 years ago
options.c Introduce --keyboard and --mouse 3 months ago
options.h Introduce --keyboard and --mouse 3 months ago
packet_merger.c Extract packet merging 1 year ago
packet_merger.h Extract packet merging 1 year ago
receiver.c Check device messages assumptions at runtime 3 months ago
receiver.h Prefix receiver by sc_ 1 year ago
recorder.c Add --record-orientation 6 months ago
recorder.h Add --record-orientation 6 months ago
scrcpy.c Introduce --keyboard and --mouse 3 months ago
scrcpy.h Add specific exit code for device disconnection 2 years ago
screen.c Add --display-orientation 6 months ago
screen.h Add --display-orientation 6 months ago
server.c Replace unsigned char by uint8_t for buffers 3 months ago
server.h Add support for high frame rate camera capture 7 months ago
v4l2_sink.c Fix v4l2 sink 1 year ago
v4l2_sink.h Pass video size as codec metadata 1 year ago
version.c Print libusb version on --version 2 years ago
version.h Move version handling to a separate file 2 years ago