bevy/crates/bevy_input/src
Tomato c8fd390ced
Change AxisSettings livezone default (#10090)
# Objective

While using joysticks for player aiming, I noticed that there was as
`0.05` value snap on the axis. After searching through Bevy's code, I
saw it was the default livezone being at `0.95`. This causes any value
higher to snap to `1.0`. I think `1.0` and `-1.0` would be a better
default, as it gives all values to the joystick arc.
 
This default livezone stumped me for a bit as I thought either something
was broken or I was doing something wrong.

## Solution

Change the livezone defaults to ` livezone_upperbound: 1.0` and
`livezone_lowerbound: -1.0`.

---

## Migration Guide

If the default 0.05 was relied on, the default or gamepad `AxisSettings`
on the resource `GamepadSettings` will have to be changed.
2023-10-12 17:58:32 +00:00
..
axis.rs Improve doc formatting. (#9840) 2023-09-18 19:43:56 +00:00
common_conditions.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
gamepad.rs Change AxisSettings livezone default (#10090) 2023-10-12 17:58:32 +00:00
input.rs Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
keyboard.rs Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
lib.rs Bevy Input Docs : the modules (#9467) 2023-08-23 12:44:49 +00:00
mouse.rs Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
touch.rs Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
touchpad.rs Bevy Input Docs : the modules (#9467) 2023-08-23 12:44:49 +00:00