mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
8ef8c178d7
Former-commit-id: 7aa1513511490feec531f10e58ad955c485ac594
24 lines
388 B
Rust
24 lines
388 B
Rust
use vek::*;
|
|
|
|
pub enum InputEvent {
|
|
Jump,
|
|
}
|
|
|
|
pub struct Input {
|
|
pub move_dir: Vec2<f32>,
|
|
pub jumping: bool,
|
|
pub gliding: bool,
|
|
pub events: Vec<InputEvent>,
|
|
}
|
|
|
|
impl Default for Input {
|
|
fn default() -> Self {
|
|
Input {
|
|
move_dir: Vec2::zero(),
|
|
jumping: false,
|
|
gliding: false,
|
|
events: Vec::new(),
|
|
}
|
|
}
|
|
}
|