relative_mode

This commit is contained in:
Romain Vimont
2021-12-30 15:46:00 +01:00
parent 923a892654
commit 54180fde50
3 changed files with 15 additions and 0 deletions

View File

@@ -775,6 +775,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