mirror of
https://github.com/Genymobile/scrcpy
synced 2024-11-15 06:12:53 +00:00
Forward double-click events
Double-clicks were not sent to the device anymore since the "double-click on black borders" feature. When a double click occurs inside the device screen, send the event to the device normally. Fixes <https://github.com/Genymobile/scrcpy/issues/97>.
This commit is contained in:
parent
8b84492830
commit
860006e082
@ -240,10 +240,11 @@ void input_manager_process_mouse_button(struct input_manager *input_manager,
|
||||
SDL_bool outside_device_screen =
|
||||
event->x < 0 || event->x >= input_manager->screen->frame_size.width ||
|
||||
event->y < 0 || event->y >= input_manager->screen->frame_size.height;
|
||||
if (outside_device_screen) {
|
||||
screen_resize_to_fit(input_manager->screen);
|
||||
}
|
||||
return;
|
||||
if (outside_device_screen) {
|
||||
screen_resize_to_fit(input_manager->screen);
|
||||
return;
|
||||
}
|
||||
// otherwise, send the click event to the device
|
||||
}
|
||||
};
|
||||
struct control_event control_event;
|
||||
|
Loading…
Reference in New Issue
Block a user