Struct stick::ControllerManager [−][src]
pub struct ControllerManager { /* fields omitted */ }
A Manager for Controllers.
Methods
impl ControllerManager
[src]
impl ControllerManager
pub fn new(remap: Vec<Remapper>) -> ControllerManager
[src]
pub fn new(remap: Vec<Remapper>) -> ControllerManager
Connect to a Joystick, with optional custom button/axis remapping.
pub fn update(&mut self) -> Option<(usize, Input)>
[src]
pub fn update(&mut self) -> Option<(usize, Input)>
Poll Joystick Input. Returns an Option
for use in a while let
.
The tuple within the Some
variant is controller id (starting at 0),
followed by the input event for that controller.
Auto Trait Implementations
impl Send for ControllerManager
impl Send for ControllerManager
impl Sync for ControllerManager
impl Sync for ControllerManager