diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2026-09-03 20:51:01 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2026-09-03 20:51:01 -0700 |
| commit | 8a49bc98a8be81d38cfd11b88e269797048256e4 (patch) | |
| tree | 9befa1a4a3fa172ef090bc06319ec9ee055cc749 /src/input.rs | |
| parent | a4ff77cef3e83fbff1a067efefa22d8c44505b5b (diff) | |
character interactions with entities
Diffstat (limited to 'src/input.rs')
| -rw-r--r-- | src/input.rs | 4 |
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), |
