use of de.mossgrabers.bitwig.framework.daw.HostImpl in project DrivenByMoss by git-moss.
the class HwButtonImpl method bind.
/**
* {@inheritDoc}
*/
@Override
public void bind(final TriggerCommand command) {
this.command = command;
final ControllerHost controllerHost = ((HostImpl) this.host).getControllerHost();
this.hardwareButton.pressedAction().addBinding(controllerHost.createAction(this::handleButtonPressed, () -> ""));
this.hardwareButton.releasedAction().addBinding(controllerHost.createAction(this::handleButtonRelease, () -> ""));
}
Aggregations