Struct gilrs_core::Gilrs [−][src]
pub struct Gilrs { /* fields omitted */ }
Expand description
Struct used to manage gamepads and retrieve events.
Implementations
Returns oldest event or None
if all events were processed.
Borrows Gamrpad
or return None
if index is invalid. Returned gamepad may be disconnected.
Returns id greater than id of last connected gamepad. The returned value is only hint and may be much larger than number of observed gamepads. For example, it may return maximum number of connected gamepads on platforms when this limit is small.
gamepad(id)
should return Some
if using id that is smaller than value returned from this
function.