Struct ggez::input::GameController
[−]
[src]
pub struct GameController { /* fields omitted */ }
Wrapper around the SDL_GameController object
Methods
impl GameController
[src]
fn subsystem(&self) -> &GameControllerSubsystem
fn name(&self) -> String
Return the name of the controller or an empty string if no name is found.
fn mapping(&self) -> String
Return a String describing the controller's button and axis mappings
fn attached(&self) -> bool
Return true if the controller has been opened and currently connected.
fn instance_id(&self) -> i32
Return the joystick id of this controller
fn axis(&self, axis: Axis) -> i16
Get the position of the given axis
Returns true
if button
is pressed.