Trait reaper_medium::HookCommand2
source · [−]pub trait HookCommand2 {
fn call(
section: SectionContext<'_>,
command_id: CommandId,
value_change: ActionValueChange,
window: WindowContext
) -> bool;
}
Expand description
Consumers need to implement this trait in order to define what should happen when a certain MIDI CC/mousewheel action is invoked.
Required Methods
sourcefn call(
section: SectionContext<'_>,
command_id: CommandId,
value_change: ActionValueChange,
window: WindowContext
) -> bool
fn call(
section: SectionContext<'_>,
command_id: CommandId,
value_change: ActionValueChange,
window: WindowContext
) -> bool
The actual callback function invoked by REAPER whenever an action was triggered to run.
Must return true
to indicate that the given command has been processed.