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.
Auto Trait Implementations§
impl RefUnwindSafe for GameController
impl !Send for GameController
impl !Sync for GameController
impl Unpin for GameController
impl UnwindSafe for GameController
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more