Struct rich_sdl2_rust::event::game_controller::GameController
source · pub struct GameController { /* private fields */ }
Expand description
A logical game controller manages binding of the physical devices.
Implementations§
source§impl GameController
impl GameController
sourcepub fn bind_for_axis(&self, axis: Axis) -> Option<MapInput>
pub fn bind_for_axis(&self, axis: Axis) -> Option<MapInput>
Returns the bind for an axis if exists.
Returns the bind for a button if exists.
Trait Implementations§
source§impl Debug for GameController
impl Debug for GameController
source§impl From<GameController> for Joystick
impl From<GameController> for Joystick
source§fn from(gc: GameController) -> Self
fn from(gc: GameController) -> Self
Converts to this type from the input type.