Struct stick::Joystick [] [src]

pub struct Joystick { /* fields omitted */ }

A USB Joystick Controller.

Methods

impl Joystick
[src]

[src]

Connect to a Joystick, with optional custom button/axis mapping. If custom mapping, always map A, B, C, D, MainX and MainY.

[src]

Poll Joystick Input

[src]

Check to see if gamepad supports a specific input.

A, B, C, and D Buttons are always mapped.

1 Joystick is always mapped.

[src]

Get the name of the Joystick.