Search in sources :

Example 1 with HUIConfiguration

use of de.mossgrabers.controller.mackie.hui.HUIConfiguration in project DrivenByMoss by git-moss.

the class FaderTouchCommand method executeNormal.

/**
 * {@inheritDoc}
 */
@Override
public void executeNormal(final ButtonEvent event) {
    final HUIConfiguration configuration = this.surface.getConfiguration();
    final ModeManager modeManager = this.surface.getModeManager();
    if (event == ButtonEvent.DOWN)
        modeManager.setActive(Modes.VOLUME);
    else if (event == ButtonEvent.UP)
        modeManager.restore();
    if (configuration.isTouchChannel())
        super.executeNormal(event);
}
Also used : HUIConfiguration(de.mossgrabers.controller.mackie.hui.HUIConfiguration) ModeManager(de.mossgrabers.framework.featuregroup.ModeManager)

Aggregations

HUIConfiguration (de.mossgrabers.controller.mackie.hui.HUIConfiguration)1 ModeManager (de.mossgrabers.framework.featuregroup.ModeManager)1