MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / swipe

Method swipe

source/MRViewer/MRTouchpadController.cpp:255–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void TouchpadController::Handler::swipe( float dx, float dy, bool kinetic, GestureState state )
256{
257 switch ( state )
258 {
259 case GestureState::Begin:
260 ENQUEUE_VIEWER_METHOD( "Swipe touchpad gesture started", touchpadSwipeGestureBegin );
261 break;
262 case GestureState::Update:
263 ENQUEUE_VIEWER_METHOD_ARGS_SKIPABLE( "Swipe touchpad gesture updated", touchpadSwipeGestureUpdate, dx, dy, kinetic );
264 break;
265 case GestureState::End:
266 ENQUEUE_VIEWER_METHOD( "Swipe touchpad gesture ended", touchpadSwipeGestureEnd );
267 break;
268 }
269}
270
271void TouchpadController::Handler::zoom( float scale, bool kinetic, GestureState state )
272{

Callers 3

beginGesture_Method · 0.80
endGesture_Method · 0.80
emitSwipe_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected