CommandFusion Wiki

Documentation Resources

User Tools

Site Tools


Sidebar

software:modules-and-examples:long-short-press

Long Short Press Module

This example shows how you can use advanced button actions and a little JavaScript to create a button that has two actions.

The button can be used to fire one command on short press, and a different command on long press.

If the long press is triggered, then the short command won't be. This is accomplished by triggering the short press on release, and cancelling it if the long press is triggered first.

View on GitHub

software/modules-and-examples/long-short-press.txt · Last modified: 2013/05/09 01:38 by aaron