pub struct KeyAssign(pub Vec<MultiKey>);
Tuple Fields§
§0: Vec<MultiKey>
Implementations§
Source§impl KeyAssign
impl KeyAssign
pub fn and(self, rhs: Self) -> Self
pub fn or(self, rhs: Self) -> Self
pub fn pressed(&self, input_state: &impl InputState) -> bool
pub fn just_pressed(&self, input_state: &impl InputState) -> bool
pub fn extract_keycode(&self) -> Option<KeyCode>
pub fn insert_keycode(&mut self, kc: KeyCode)
pub fn extract_gamepad(&self) -> Option<GamepadButton>
pub fn insert_gamepad(&mut self, button: GamepadButton)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyAssign
impl<'de> Deserialize<'de> for KeyAssign
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KeyAssign
impl StructuralPartialEq for KeyAssign
Auto Trait Implementations§
impl Freeze for KeyAssign
impl RefUnwindSafe for KeyAssign
impl Send for KeyAssign
impl Sync for KeyAssign
impl Unpin for KeyAssign
impl UnwindSafe for KeyAssign
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