Expand description
Gamepad/controller polling — GamepadPlugin inserts Gamepads as a
resource and ticks it once per frame in PreUpdate, exactly like
crate::time::TimePlugin. App::new() already builds this in, so
Res<Gamepads> works without registering anything yourself.
Backend-agnostic, same as crate::time — nothing here depends on
pebble::wgpu or any particular rendering backend.
Structs§
- Gamepad
Id - Identifies one connected gamepad. Opaque,
Copy— valid for the whole lifetime of theGamepadsresource that handed it out (viaGamepads::ids), even across a disconnect/reconnect of a different controller. - Gamepad
Plugin - Registers
Gamepadsas a resource and advances it once per frame. - Gamepads
- Every connected gamepad’s current state. A self-contained resource —
Res<Gamepads>/ResMut<Gamepads>— inserted byGamepadPlugin.
Enums§
- Gamepad
Axis - Mirrors
gilrs::Axis. - Gamepad
Button - Mirrors
gilrs::Button.