From 5dbc52bba26080258ed40bc4a2ab5e1ff156d742 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 21 Nov 2023 17:30:04 +0100 Subject: [PATCH] fix mouse input --- kubi/src/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubi/src/input.rs b/kubi/src/input.rs index 178cd2a..4891690 100644 --- a/kubi/src/input.rs +++ b/kubi/src/input.rs @@ -182,8 +182,8 @@ fn update_input_state ( raw_inputs.keyboard_state.contains(KeyCode::KeyS as u32) as u32 as f32 ); inputs.look += raw_inputs.mouse_delta.as_vec2(); - inputs.action_a |= raw_inputs.button_state[1]; - inputs.action_b |= raw_inputs.button_state[3]; + inputs.action_a |= raw_inputs.button_state[0]; + inputs.action_b |= raw_inputs.button_state[1]; } fn update_input_state_gamepad (