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

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

Required Methods

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.

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!

Implementors