Skip to content

Commit

Permalink
Zero deadzone dual mouse wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
100-TomatoJuice committed Jan 6, 2024
1 parent f3303f7 commit 3905f3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/axislike.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/mouse_motion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Events<MouseMotion>>();
Expand Down
2 changes: 1 addition & 1 deletion tests/mouse_wheel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Events<MouseWheel>>();
Expand Down

0 comments on commit 3905f3b

Please sign in to comment.