Enum rich_sdl2_rust::event::game_controller::map::MapInput
source · #[non_exhaustive]
pub enum MapInput {
Button {
index: u32,
},
Axis {
index: u32,
},
Hat {
index: u32,
mask: u32,
},
}
Expand description
A mapping that the logical button is attached to the physical index.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Button
It is attached to the button.
Axis
It is attached to the axis.
Hat
It is attached to the hat.
Trait Implementations§
source§impl From<SDL_GameControllerButtonBind> for MapInput
impl From<SDL_GameControllerButtonBind> for MapInput
source§fn from(raw: SDL_GameControllerButtonBind) -> Self
fn from(raw: SDL_GameControllerButtonBind) -> Self
Converts to this type from the input type.