summaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.rs b/src/input.rs
index 108514e..0697f29 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -9,7 +9,7 @@ use crate::{camera::Camera, sim::cell_manager::manager::CellManager};
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub enum Input {
// movement
- Up = 0,
+ Jump = 0,
Left,
Down,
Right,
@@ -44,7 +44,7 @@ pub enum Input {
const INPUT_VAR_LEN: usize = 22;
const KEYMAP: [(KeyCode, Input); INPUT_VAR_LEN] = [
- (KeyCode::KeyW, Input::Up),
+ (KeyCode::Space, Input::Jump),
(KeyCode::KeyA, Input::Left),
(KeyCode::KeyS, Input::Down),
(KeyCode::KeyD, Input::Right),