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 PartialEq for MapInput
impl PartialEq for MapInput
impl Copy for MapInput
impl Eq for MapInput
impl StructuralPartialEq for MapInput
Auto Trait Implementations§
impl RefUnwindSafe for MapInput
impl Send for MapInput
impl Sync for MapInput
impl Unpin for MapInput
impl UnwindSafe for MapInput
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