bevy/crates/bevy_input/src
Hennadii Chernyshchyk f32eed6db6
Gamepad improvements (#16222)
# Objective

Closes #16221.

## Solution

- Make `Gamepad` fields public and remove delegates / getters.
- Move `impl Into` to `Axis` methods (delegates for `Axis` used `impl
Into` to allow passing both `GamepadAxis` and `GamepadButton`).
- Improve docs.

## Testing

- I run tests.

Not sure if the migration guide is needed, since it's a feature from RC,
but I wrote it just in case.

---

## Migration Guide

- `Gamepad` fields are now public.
- Instead of using `Gamepad` delegates like `Gamepad::just_pressed`,
call these methods directly on the fields.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2024-11-05 22:42:16 +01:00
..
axis.rs Gamepad improvements (#16222) 2024-11-05 22:42:16 +01:00
button_input.rs Fix window spawning triggering ButtonInput<KeyCode>::just_pressed/just_released (#12372) 2024-09-30 18:24:36 +00:00
common_conditions.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
gamepad.rs Gamepad improvements (#16222) 2024-11-05 22:42:16 +01:00
gestures.rs bevy_input: allow use without bevy_reflect (#14167) 2024-07-08 01:09:07 +00:00
keyboard.rs Use en-us locale for typos (#16037) 2024-10-20 18:55:17 +00:00
lib.rs Add some missing features from the gamepads-as-entities change that were needed to update leafwing-input-manager. (#15685) 2024-10-08 12:19:38 +00:00
mouse.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
touch.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00