Multi-gesture Buttons

High-Performance system for tap, double-tap, and hold gestures.

The endpoints you need to modify for connecting to your custom Template are the onReceiveNotify() functions of the Tap, DoubleTap, and Hold labels.

MultiGestureButton
|__group1
|__1
|__…
|__Tap
|__DoubleTap
|__Hold

To visit the implementation, go to the “trigger” button of any of the numbered groups.

It uses onPointer() for registering gestures rather than update() which guarantees instant response for Tap. This means that DoubleTap always includes a Tap trigger but Hold doesn’t as it notifies on Release.

Leave a Reply

  • Platform:
  • Category: Utility
  • Revision: 1.0
  • License: MIT License
  • Modified: 8 months ago
  • Views: 192
    Likes: 2
    Downloads: 43
Download