Skip to main content

Module hid

Module hid 

Source
Expand description

Game controllers as ECS resources, plus an on-screen readout.

Re-exports§

pub use output::Bus;
pub use output::Feedback;
pub use output::Trigger;
pub use overlay::HidPlugin;

Modules§

output
What a game sends to a pad: rumble, adaptive triggers, lightbar. Layout follows the Linux hid-playstation driver plus community-documented trigger effects.
overlay
A readout of what the controller is sending, on a panel in the corner.
ps
PlayStation controller input over raw HID.

Structs§

Finger
A finger on the touchpad; at runs 0 to 1 across and down the pad.
GamepadState
What the pad was sending as of this frame; present even with no pad attached.
Gamepads
Every controller plugged in this frame, in the order found; republished each frame.