Struct oxygengine_input::resources::stack::InputStack
source · [−]pub struct InputStack { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Default for InputStack
impl Default for InputStack
sourcefn default() -> InputStack
fn default() -> InputStack
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for InputStack
impl Send for InputStack
impl Sync for InputStack
impl Unpin for InputStack
impl UnwindSafe for InputStack
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more