Struct stick::Joystick
[−]
[src]
pub struct Joystick { /* fields omitted */ }
A USB Joystick Controller.
Methods
impl Joystick
[src]
fn new(map: Option<Map>) -> Joystick
[src]
Connect to a Joystick, with optional custom button/axis mapping. If custom mapping, always map A, B, C, D, MainX and MainY.
fn update(&mut self, input: &mut Vec<Input>)
[src]
Poll Joystick Input
fn supports(&self, input: Input) -> bool
[src]
Check to see if gamepad supports a specific input.
A, B, C, and D Buttons are always mapped.
1 Joystick is always mapped.
fn name(&self) -> String
[src]
Get the name of the Joystick
.