use of de.mossgrabers.apcmini.mode.DeviceMode in project DrivenByMoss by git-moss.
the class APCminiControllerSetup method createModes.
/**
* {@inheritDoc}
*/
@Override
protected void createModes() {
final APCminiControlSurface surface = this.getSurface();
final ModeManager modeManager = surface.getModeManager();
modeManager.registerMode(Modes.MODE_VOLUME, new VolumeMode(surface, this.model));
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(i, surface, this.model));
modeManager.registerMode(Modes.MODE_DEVICE, new DeviceMode(surface, this.model));
modeManager.setDefaultMode(Modes.MODE_VOLUME);
}
Aggregations