pub struct InputHandler { /* private fields */ }Expand description
An `InputHandler`` represents a single input consumer, typically a player.
It manages its own bindings and keeps track of the devices it’s using.
Implementations§
Source§impl InputHandler
impl InputHandler
pub fn update(&self, managers: &InputDeviceManagers, bindings: &BindingMap)
pub fn get_frame( &self, index: &HashMap<String, usize>, name: &str, ) -> Option<InputFrame>
pub fn connect_device(&self, family: InputFamily, id: usize)
pub fn connect_device_raw( &self, managers: &InputDeviceManagers, family: InputFamily, id: usize, )
pub fn disconnect_device(&self, family: InputFamily, id: usize)
pub fn disconnect_device_raw( &self, managers: &InputDeviceManagers, family: InputFamily, id: usize, )
Auto Trait Implementations§
impl !Freeze for InputHandler
impl RefUnwindSafe for InputHandler
impl Send for InputHandler
impl Sync for InputHandler
impl Unpin for InputHandler
impl UnwindSafe for InputHandler
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