28 TouchpadRotateGestureBeginListener, TouchpadRotateGestureUpdateListener, TouchpadRotateGestureEndListener,
29 TouchpadSwipeGestureBeginListener, TouchpadSwipeGestureUpdateListener, TouchpadSwipeGestureEndListener,
30 TouchpadZoomGestureBeginListener, TouchpadZoomGestureUpdateListener, TouchpadZoomGestureEndListener
76 std::unique_ptr<Handler> handler_;
80 virtual bool touchpadRotateGestureBegin_()
override;
81 virtual bool touchpadRotateGestureUpdate_(
float angle )
override;
82 virtual bool touchpadRotateGestureEnd_()
override;
85 virtual bool touchpadSwipeGestureBegin_()
override;
86 virtual bool touchpadSwipeGestureUpdate_(
float deltaX,
float deltaY,
bool kinetic )
override;
87 virtual bool touchpadSwipeGestureEnd_()
override;
90 virtual bool touchpadZoomGestureBegin_()
override;
91 virtual bool touchpadZoomGestureUpdate_(
float scale,
bool kinetic )
override;
92 virtual bool touchpadZoomGestureEnd_()
override;
Definition MRTouchpadController.h:49
void swipe(float dx, float dy, bool kinetic, GestureState state)
swipe gesture; kinetic flag is set when the event is produced not by a user action but by hardware 'k...
GestureState
gesture state
Definition MRTouchpadController.h:55
@ Update
gesture data has updated
@ Begin
gesture has started
void mouseScroll(float dx, float dy, bool kinetic)
void zoom(float scale, bool kinetic, GestureState state)
pitch ('zoom') gesture
virtual ~Handler()=default
void rotate(float angle, GestureState state)
rotate gesture
Definition MRTouchpadController.h:32
MRVIEWER_API const TouchpadParameters & getParameters() const
MRVIEWER_API void reset()
reset event handler
MRVIEWER_API void initialize(GLFWwindow *window)
initialize listening to touchpad events
MR_ADD_CTOR_DELETE_MOVE(TouchpadController)
MRVIEWER_API void setParameters(const TouchpadParameters ¶meters)
Definition MRCameraOrientationPlugin.h:8
Definition MRViewerEventsListener.h:29
Definition MRTouchpadParameters.h:9
SwipeMode
swipe processing mode
Definition MRTouchpadParameters.h:15
Definition MRViewport.h:277