This is more of an off-topic question, but it is about programming. Since the car player software and HiJack both also deal with long and short button presses, I hope someone can lend a hand here.

I'm overseeing a project for which we need to implement long button press timing and logic into a design that was originally centered around short presses (and short presses with repeat)

The input comes from a remote control and the hardware produces three signals when a button is pressed.

When the button is first depressed it sends signal 1
While the button is being held it sends signal 2
When the button is released it sends signal 3

I'm looking for some logic to allow for short and long press support similar to how it's used from the UI on the player and many other consumer electronics devices. A long press should not first execute the function of a short press before starting on its own function for example (similar to a single button being used for both Next Track and Fast Forward).

Any help greatly appreciated.

Bruno
_________________________
Bruno
Twisted Melon : Fine Mac OS Software