scrcpy/app/src
Romain Vimont 3ee3f8dc02 Work around mouse capture SDL bug on macOS
On macOS, SDL relative mouse mode does not work correctly when the
cursor is outside the window.

As a workaround, move the cursor inside the window before setting the
relative mouse mode.

Refs SDL/#5340 <https://github.com/libsdl-org/SDL/issues/5340>
PR #3031 <https://github.com/Genymobile/scrcpy/pull/3031>
2022-02-20 17:28:02 +01:00
..
adb Remove useless '\n' in log 2022-02-18 21:18:36 +01:00
android
sys Remove LOGC() 2022-02-09 09:52:15 +01:00
trait Add relative mode flag to mouse processors 2022-01-04 17:41:40 +01:00
usb Work around mouse capture SDL bug on macOS 2022-02-20 17:28:02 +01:00
util Enforce deadline reached on timeout 2022-02-16 18:29:30 +01:00
cli.c Remove "linux-only" mentions for HID/OTG features 2022-02-20 17:27:43 +01:00
cli.h
clock.c
clock.h
common.h Add CLAMP() macro 2022-01-04 17:41:40 +01:00
compat.c Add (v)asprintf compatibility functions 2021-11-24 19:55:00 +01:00
compat.h Move SC_PRIsizet to compat.h 2022-02-09 09:53:19 +01:00
control_msg.c Rename buffer util functions with sc_ prefix 2022-02-12 09:12:46 +01:00
control_msg.h Use sc_ prefix for control_msg enums 2022-01-27 16:47:51 +01:00
controller.c Remove LOGC() 2022-02-09 09:52:15 +01:00
controller.h Use sc_ prefix for control_msg 2022-01-14 22:17:30 +01:00
coords.h
decoder.c Use sc_ prefix for decoder 2022-02-02 21:03:55 +01:00
decoder.h Use sc_ prefix for decoder 2022-02-02 21:03:55 +01:00
demuxer.c Rename buffer util functions with sc_ prefix 2022-02-12 09:12:46 +01:00
demuxer.h Rename stream to sc_demuxer 2022-02-02 21:03:55 +01:00
device_msg.c Rename buffer util functions with sc_ prefix 2022-02-12 09:12:46 +01:00
device_msg.h Add device clipboard set acknowledgement 2021-11-23 21:15:05 +01:00
events.h Add OTG mode 2022-01-27 23:36:23 +01:00
file_pusher.c Remove LOGC() 2022-02-09 09:52:15 +01:00
file_pusher.h Move ADB code to adb/ 2022-02-04 08:39:10 +01:00
fps_counter.c Move FPS counter start/stop logs 2022-02-18 18:16:12 +01:00
fps_counter.h Use sc_prefix for fps counter 2022-02-17 19:55:24 +01:00
frame_buffer.c Fix code style 2022-01-27 19:02:07 +01:00
frame_buffer.h
icon.c Fix build with ffmpeg 5.0 2022-01-16 17:37:28 +01:00
icon.h
input_events.h Move input event helpers 2022-01-27 23:36:21 +01:00
input_manager.c Move FPS counter start/stop logs 2022-02-18 18:16:12 +01:00
input_manager.h Remove redundant control boolean 2022-01-23 12:16:24 +01:00
keyboard_inject.c Use sc_ prefix for control_msg enums 2022-01-27 16:47:51 +01:00
keyboard_inject.h Use sc_ prefix for controller 2022-01-14 22:17:30 +01:00
main.c Move version handling to a separate file 2022-02-09 10:15:07 +01:00
mouse_inject.c Use sc_ prefix for control_msg enums 2022-01-27 16:47:51 +01:00
mouse_inject.h Use sc_ prefix for controller 2022-01-14 22:17:30 +01:00
opengl.c
opengl.h
options.c Add --print-fps to enable FPS counter on start 2022-02-18 18:16:50 +01:00
options.h Add --print-fps to enable FPS counter on start 2022-02-18 18:16:50 +01:00
receiver.c Remove LOGC() 2022-02-09 09:52:15 +01:00
receiver.h Wait SET_CLIPBOARD ack before Ctrl+v via HID 2021-11-24 09:41:21 +01:00
recorder.c Remove LOGC() 2022-02-09 09:52:15 +01:00
recorder.h Use sc_ prefix for recorder 2022-02-02 21:03:55 +01:00
scrcpy.c Add --print-fps to enable FPS counter on start 2022-02-18 18:16:50 +01:00
scrcpy.h
screen.c Work around mouse capture SDL bug on macOS 2022-02-20 17:28:02 +01:00
screen.h Add --print-fps to enable FPS counter on start 2022-02-18 18:16:50 +01:00
server.c Add --no-cleanup option 2022-02-15 19:25:57 +01:00
server.h Add --no-cleanup option 2022-02-15 19:25:57 +01:00
stream.h Fix build with ffmpeg 5.0 2022-01-16 17:37:28 +01:00
v4l2_sink.c Remove LOGC() 2022-02-09 09:52:15 +01:00
v4l2_sink.h Fix build with ffmpeg 5.0 2022-01-16 17:37:28 +01:00
version.c Print libusb version on --version 2022-02-09 10:15:19 +01:00
version.h Move version handling to a separate file 2022-02-09 10:15:07 +01:00
video_buffer.c Rename scrcpy threads 2021-12-09 21:32:11 +01:00
video_buffer.h