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
1 changed files with 5 additions and 4 deletions
|
@ -242,9 +242,10 @@ void input_manager_process_mouse_button(struct input_manager *input_manager,
|
|||
event->y < 0 || event->y >= input_manager->screen->frame_size.height;
|
||||
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;
|
||||
if (mouse_button_from_sdl_to_android(event, input_manager->screen->frame_size, &control_event)) {
|
||||
|
|
Loading…
Reference in a new issue