Low-level device events

As an alternative to reacting to actions, you can choose to react to low level commands:

  • ProcessButtonEvent - override to process physical button presses
  • ProcessEncoderEvent - override to process encoder rotations
  • ProcessTouchEvent - override to process touch events

If a dynamic action handles a low level event, it should return true.

protected override Boolean ProcessButtonEvent(String actionParameter, DeviceButtonEvent buttonEvent)
{
    if (buttonEvent.IsPressed)
    {
        this.SendKeyboardShortcut(actionParameter);
    }

    return true;
}