![]() # 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`. |
||
---|---|---|
.. | ||
char_input_events.rs | ||
gamepad_input_events.rs | ||
gamepad_input.rs | ||
keyboard_input_events.rs | ||
keyboard_input.rs | ||
keyboard_modifiers.rs | ||
mouse_grab.rs | ||
mouse_input_events.rs | ||
mouse_input.rs | ||
touch_input_events.rs | ||
touch_input.rs |