pub struct InputMapping {
pub actions: HashMap<VirtualAction, InputActionRef>,
pub axes: HashMap<VirtualAxis, InputAxisRef>,
pub consume: InputConsume,
pub layer: isize,
pub name: Cow<'static, str>,
}
Fields§
§actions: HashMap<VirtualAction, InputActionRef>
§axes: HashMap<VirtualAxis, InputAxisRef>
§consume: InputConsume
§layer: isize
§name: Cow<'static, str>
Implementations§
Source§impl InputMapping
impl InputMapping
pub fn action(self, id: VirtualAction, action: InputActionRef) -> Self
pub fn axis(self, id: VirtualAxis, axis: InputAxisRef) -> Self
pub fn consume(self, consume: InputConsume) -> Self
pub fn layer(self, value: isize) -> Self
pub fn name(self, value: impl Into<Cow<'static, str>>) -> Self
Trait Implementations§
Source§impl Clone for InputMapping
impl Clone for InputMapping
Source§fn clone(&self) -> InputMapping
fn clone(&self) -> InputMapping
Returns a copy 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 InputMapping
impl Debug for InputMapping
Source§impl Default for InputMapping
impl Default for InputMapping
Source§fn default() -> InputMapping
fn default() -> InputMapping
Returns the “default value” for a type. Read more
Source§impl From<InputMapping> for InputMappingRef
impl From<InputMapping> for InputMappingRef
Source§fn from(value: InputMapping) -> Self
fn from(value: InputMapping) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InputMapping
impl RefUnwindSafe for InputMapping
impl Send for InputMapping
impl Sync for InputMapping
impl Unpin for InputMapping
impl UnwindSafe for InputMapping
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