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