Class for touchpad gesture processing
The supported gestures and their default actions are:
- pinch: zooms the camera's angle
- rotate: rotates the camera around the scene's center along the Z axis
- swipe: rotates the camera around the world's center along all axes (by default) or moves the camera The actions are mapped by calling the
connect
method; you can define your own actions by connecting to the MR::Viewer::touchpad*
signals.
NOTE: on some platforms the default GLFW mouse scroll is being disabled by the touchpad event handlers because mouse scrolls and touchpad swipe gestures are a single event type there and have to be processed by a single handler. Consider it if you use this class and define your own scroll callback with glfwSetScrollCallback
.