Search in sources :

Example 1 with BrowserMode

use of de.mossgrabers.apc.mode.BrowserMode in project DrivenByMoss by git-moss.

the class APCControllerSetup method createModes.

/**
 * {@inheritDoc}
 */
@Override
protected void createModes() {
    final APCControlSurface surface = this.getSurface();
    final ModeManager modeManager = surface.getModeManager();
    modeManager.registerMode(Modes.MODE_PAN, new PanMode(surface, this.model));
    for (int i = 0; i < 8; i++) modeManager.registerMode(Integer.valueOf(Modes.MODE_SEND1.intValue() + i), new SendMode(surface, this.model, i));
    modeManager.registerMode(Modes.MODE_BROWSER, new BrowserMode(surface, this.model));
}
Also used : APCControlSurface(de.mossgrabers.apc.controller.APCControlSurface) BrowserMode(de.mossgrabers.apc.mode.BrowserMode) SendMode(de.mossgrabers.apc.mode.SendMode) PanMode(de.mossgrabers.apc.mode.PanMode) ModeManager(de.mossgrabers.framework.mode.ModeManager)

Aggregations

APCControlSurface (de.mossgrabers.apc.controller.APCControlSurface)1 BrowserMode (de.mossgrabers.apc.mode.BrowserMode)1 PanMode (de.mossgrabers.apc.mode.PanMode)1 SendMode (de.mossgrabers.apc.mode.SendMode)1 ModeManager (de.mossgrabers.framework.mode.ModeManager)1