pub struct ActionBinding {
pub primary: u16,
pub secondary: u16,
}Expand description
One logical game action bound to up to two physical button masks.
A mask may contain more than one button; any held bit activates the binding. Zero means that binding slot is unused.
Fields§
§primary: u16Primary physical button mask.
secondary: u16Optional secondary physical button mask.
Implementations§
Trait Implementations§
Source§impl Clone for ActionBinding
impl Clone for ActionBinding
Source§fn clone(&self) -> ActionBinding
fn clone(&self) -> ActionBinding
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionBinding
impl Debug for ActionBinding
Source§impl Default for ActionBinding
impl Default for ActionBinding
Source§fn default() -> ActionBinding
fn default() -> ActionBinding
Returns the “default value” for a type. Read more
Source§impl PartialEq for ActionBinding
impl PartialEq for ActionBinding
impl Copy for ActionBinding
impl Eq for ActionBinding
impl StructuralPartialEq for ActionBinding
Auto Trait Implementations§
impl Freeze for ActionBinding
impl RefUnwindSafe for ActionBinding
impl Send for ActionBinding
impl Sync for ActionBinding
impl Unpin for ActionBinding
impl UnsafeUnpin for ActionBinding
impl UnwindSafe for ActionBinding
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)