MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::TouchpadController::Handler Class Reference

#include <MRTouchpadController.h>

Public Types

enum class  GestureState { GestureState::Begin , GestureState::Update , GestureState::End }
 gesture state More...
 

Public Member Functions

virtual ~Handler ()=default
 
void mouseScroll (float dx, float dy, bool kinetic)
 
void rotate (float angle, GestureState state)
 rotate gesture
 
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 'kinetic' scrolling
 
void zoom (float scale, bool kinetic, GestureState state)
 pitch ('zoom') gesture
 

Detailed Description

Base class for platform-dependent code handling touchpad events

If you want to add touchpad gesture support on your platform, inherit this class, extend the TouchpadController::initialize method and call the corresponding methods on the touchpad events.


The documentation for this class was generated from the following file: