Struct rich_sdl2_rust::event::game_controller::GameControllerSet
source · pub struct GameControllerSet { /* private fields */ }
Expand description
All of recognized game controllers at initialized.
Implementations§
source§impl GameControllerSet
impl GameControllerSet
sourcepub fn add_mapping(string: &str) -> Result<bool>
pub fn add_mapping(string: &str) -> Result<bool>
sourcepub fn add_mapping_from_file(file_name: &str) -> Result<u32>
pub fn add_mapping_from_file(file_name: &str) -> Result<u32>
sourcepub fn controllers(&self) -> &[GameController]
pub fn controllers(&self) -> &[GameController]
Returns the GameController
list.
Trait Implementations§
source§impl Debug for GameControllerSet
impl Debug for GameControllerSet
source§impl Default for GameControllerSet
impl Default for GameControllerSet
Auto Trait Implementations§
impl RefUnwindSafe for GameControllerSet
impl !Send for GameControllerSet
impl !Sync for GameControllerSet
impl Unpin for GameControllerSet
impl UnwindSafe for GameControllerSet
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