Struct ActionMap
pub struct ActionMap { /* private fields */ }Implementations§
§impl ActionMap
impl ActionMap
pub fn action(&mut self, bindings: Vec<Binding>) -> usize
pub fn action(&mut self, bindings: Vec<Binding>) -> usize
Registers trusted configuration. Use try_action for externally supplied mappings.
pub fn try_action(&mut self, bindings: Vec<Binding>) -> Option<usize>
pub fn rebind(&mut self, id: usize, bindings: Vec<Binding>) -> bool
pub fn rebind(&mut self, id: usize, bindings: Vec<Binding>) -> bool
Invalid ids or oversized replacements leave the old mapping untouched.
pub fn feed(&mut self, code: InputCode, value: f32)
pub fn peek(&self, id: usize) -> Action
pub fn peek(&self, id: usize) -> Action
Invalid handles have a neutral state; action ids are local to this map.
pub fn consume_tick(&mut self, id: usize) -> Action
pub fn lose_focus(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActionMap
impl RefUnwindSafe for ActionMap
impl Send for ActionMap
impl Sync for ActionMap
impl Unpin for ActionMap
impl UnwindSafe for ActionMap
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