Struct spectra::bootstrap::FreeflyHandler
[−]
[src]
pub struct FreeflyHandler { /* fields omitted */ }
Freefly handler.
This handler is very neat as it provides freefly interaction.
Methods
impl FreeflyHandler
[src]
Trait Implementations
impl EventHandler for FreeflyHandler
[src]
fn on_key(&mut self, key: Key, action: Action) -> EventSig
Implement this function if you want to react to key strokes.
Implement this function if you want to react to mouse button events.
fn on_cursor_move(&mut self, dir: [f32; 2]) -> EventSig
Implement this function if you want to react to cursor moves.
fn on_scroll(&mut self, _: [f32; 2]) -> EventSig
Implement this function if you want to react to scroll events.
fn on_resize(&mut self, _: [u32; 2]) -> EventSig
Implement this function if you want to react to size events.