pub struct InputAction {
pub name: String,
pub keys: Vec<KeyCode>,
pub mouse_buttons: Vec<MouseButton>,
pub gamepad_buttons: Vec<GamepadButton>,
}Expand description
Action binding for input abstraction
Fields§
§name: StringAction name
keys: Vec<KeyCode>Bound keys
Bound mouse buttons
Bound gamepad buttons
Implementations§
Source§impl InputAction
impl InputAction
Trait Implementations§
Source§impl Clone for InputAction
impl Clone for InputAction
Source§fn clone(&self) -> InputAction
fn clone(&self) -> InputAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputAction
impl Debug for InputAction
Source§impl<'de> Deserialize<'de> for InputAction
impl<'de> Deserialize<'de> for InputAction
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
Source§impl PartialEq for InputAction
impl PartialEq for InputAction
Source§impl Serialize for InputAction
impl Serialize for InputAction
impl Eq for InputAction
impl StructuralPartialEq for InputAction
Auto Trait Implementations§
impl Freeze for InputAction
impl RefUnwindSafe for InputAction
impl Send for InputAction
impl Sync for InputAction
impl Unpin for InputAction
impl UnwindSafe for InputAction
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