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§

source

fn command_begin(&mut self)

Called when the command begins (corresponds to a button being pressed down)

source

fn command_continue(&mut self)

Called frequently while the command button is held down

source

fn command_end(&mut self)

Called when the command ends (corresponds to a button being released)

Implementors§