mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-19 19:15:08 +00:00
WIP ignore duplicate mouse events
This commit is contained in:
parent
6d98ab5d29
commit
907e55a66b
1 changed files with 4 additions and 0 deletions
|
@ -387,6 +387,10 @@ input_manager_process_mouse_motion(struct input_manager *input_manager,
|
|||
// do not send motion events when no button is pressed
|
||||
return;
|
||||
}
|
||||
if (event->which == SDL_TOUCH_MOUSEID) {
|
||||
// simulated from touch events, so it's a duplicate
|
||||
return;
|
||||
}
|
||||
struct control_msg msg;
|
||||
if (convert_mouse_motion(event, input_manager->screen->frame_size, &msg)) {
|
||||
if (!controller_push_msg(input_manager->controller, &msg)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue