mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
relative_mode
This commit is contained in:
parent
87d54b0ef6
commit
2df0bbf6ab
3 changed files with 15 additions and 0 deletions
|
|
@ -774,6 +774,12 @@ input_manager_process_mouse_button(struct input_manager *im,
|
|||
assert(im->mp->ops->process_mouse_click);
|
||||
im->mp->ops->process_mouse_click(im->mp, &evt);
|
||||
|
||||
if (im->mp->relative_mode) {
|
||||
assert(!im->vfinger_down); // vfinger must not be used in relative mode
|
||||
// No pinch-to-zoom simulation
|
||||
return;
|
||||
}
|
||||
|
||||
// Pinch-to-zoom simulation.
|
||||
//
|
||||
// If Ctrl is hold when the left-click button is pressed, then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue