Detects single, double, triple, ... or long presses.

For the long press output, true is returned when a long press is detected and false on release. For all other press pattern outputs only true is returned when the press pattern is detected.

Special case: Two outputs

When only two outputs are used, the true of the short press is output immediately on button release.