[][src]Trait reaper_medium::MediumHookCommand

pub trait MediumHookCommand {
    fn call(command_id: CommandId, flag: i32) -> bool;
}

Consumers need to implement this trait in order to define what should happen when a certain action is invoked.

Required methods

fn call(command_id: CommandId, flag: i32) -> bool

The actual callback function called by REAPER whenever an action was triggered to run.

Must return true to indicate that the given command has been processed.

flag is usually 0 but can sometimes have useful info depending on the message.

It's okay to call another command within your command, however you must check for recursion if doing so!

Loading content...

Implementors

Loading content...