From 3905f3b12291ed6ba7507dacf0d293b540999037 Mon Sep 17 00:00:00 2001 From: Tomato <67799071+100-TomatoJuice@users.noreply.github.com> Date: Sat, 6 Jan 2024 11:15:39 -0700 Subject: [PATCH] Zero deadzone dual mouse wheel --- src/axislike.rs | 2 +- tests/mouse_motion.rs | 2 +- tests/mouse_wheel.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/axislike.rs b/src/axislike.rs index fb78757a..8f280306 100644 --- a/src/axislike.rs +++ b/src/axislike.rs @@ -292,7 +292,7 @@ impl DualAxis { DualAxis { x: SingleAxis::mouse_wheel_x(), y: SingleAxis::mouse_wheel_y(), - deadzone: Self::DEFAULT_DEADZONE_SHAPE, + deadzone: Self::ZERO_DEADZONE_SHAPE, } } diff --git a/tests/mouse_motion.rs b/tests/mouse_motion.rs index 3852b85e..a7c4e158 100644 --- a/tests/mouse_motion.rs +++ b/tests/mouse_motion.rs @@ -106,7 +106,7 @@ fn mouse_motion_dual_axis_mocking() { inverted: false, sensitivity: 1.0, }, - deadzone: DualAxis::DEFAULT_DEADZONE_SHAPE, + deadzone: DualAxis::ZERO_DEADZONE_SHAPE, }; app.send_input(input); let mut events = app.world.resource_mut::>(); diff --git a/tests/mouse_wheel.rs b/tests/mouse_wheel.rs index da31f554..b1074c9d 100644 --- a/tests/mouse_wheel.rs +++ b/tests/mouse_wheel.rs @@ -107,7 +107,7 @@ fn mouse_wheel_dual_axis_mocking() { inverted: false, sensitivity: 1.0, }, - deadzone: DualAxis::DEFAULT_DEADZONE_SHAPE, + deadzone: DualAxis::ZERO_DEADZONE_SHAPE, }; app.send_input(input); let mut events = app.world.resource_mut::>();