Trait xplm::command::CommandHandler
source · pub trait CommandHandler: 'static {
// Required methods
fn command_begin(&mut self);
fn command_continue(&mut self);
fn command_end(&mut self);
}
Expand description
Trait for things that can handle commands
Required Methods§
sourcefn command_begin(&mut self)
fn command_begin(&mut self)
Called when the command begins (corresponds to a button being pressed down)
sourcefn command_continue(&mut self)
fn command_continue(&mut self)
Called frequently while the command button is held down
sourcefn command_end(&mut self)
fn command_end(&mut self)
Called when the command ends (corresponds to a button being released)