Search in sources :

Example 1 with HostImpl

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, () -> ""));
}
Also used : ControllerHost(com.bitwig.extension.controller.api.ControllerHost) HostImpl(de.mossgrabers.bitwig.framework.daw.HostImpl)

Aggregations

ControllerHost (com.bitwig.extension.controller.api.ControllerHost)1 HostImpl (de.mossgrabers.bitwig.framework.daw.HostImpl)1