bevy/examples/input
Alice Cecile 7a29c707bf Gamepad type is Copy; do not require / return references to it in Gamepads API (#5296)
# Objective

- The `Gamepad` type is a tiny value-containing type that implements `Copy`.
- By convention, references to `Copy` types should be avoided, as they can introduce overhead and muddle the semantics of what's going on.
- This allows us to reduce boilerplate reference manipulation and lifetimes in user facing code.

## Solution

- Make assorted methods on `Gamepads` take / return a raw `Gamepad`, rather than `&Gamepad`.

## Migration Guide

- `Gamepads::iter` now returns an iterator of `Gamepad`. rather than an iterator of `&Gamepad`.
- `Gamepads::contains` now accepts a `Gamepad`, rather than a `&Gamepad`.
2022-09-03 20:08:54 +00:00
..
char_input_events.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
gamepad_input_events.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
gamepad_input.rs Gamepad type is Copy; do not require / return references to it in Gamepads API (#5296) 2022-09-03 20:08:54 +00:00
keyboard_input_events.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
keyboard_input.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
keyboard_modifiers.rs Very minor doc formatting changes (#5287) 2022-07-12 13:06:16 +00:00
mouse_grab.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
mouse_input_events.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
mouse_input.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
touch_input_events.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
touch_input.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00