pub struct InputStack { /* private fields */ }
Implementations§
Source§impl InputStack
impl InputStack
pub fn register(&mut self, listener: InputStackListener) -> InputStackListenerId
pub fn unregister(&mut self, id: InputStackListenerId)
pub fn listeners(&self) -> impl Iterator<Item = &InputStackListener>
pub fn listener(&self, id: InputStackListenerId) -> Option<&InputStackListener>
pub fn listener_by_instance( &self, instance: &InputStackInstance, ) -> Option<&InputStackListener>
pub fn listeners_by_entity( &self, entity: Entity, ) -> impl Iterator<Item = &InputStackListener>
pub fn process( &mut self, controller: &InputController, entity_changes: &EntityChanges, )
Trait Implementations§
Source§impl Default for InputStack
impl Default for InputStack
Source§fn default() -> InputStack
fn default() -> InputStack
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InputStack
impl RefUnwindSafe for InputStack
impl Send for InputStack
impl Sync for InputStack
impl Unpin for InputStack
impl UnwindSafe for InputStack
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