how to use a mac magic touch pad in godot to zoom and pan?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By huahuapro

i can use mouse to pan and zoom, but how can i use a touch pad?

thanks!

In theory, you should be able to use the same zooming/panning gestures as usual.

Note that since Godot 3.2, you can hold the right mouse button to pan in 2D (as an alternative to the middle mouse button). This was done to be more laptop-friendly.

Calinou | 2020-03-29 22:20

:bust_in_silhouette: Reply From: ewilde1968

You can try InputEventPanGesture and similar input events that are more related to a trackpad or touchscreen