pub struct InputStackListener {
pub priority: usize,
pub enabled: bool,
pub bound_entity: Option<Entity>,
/* private fields */
}
Fields§
§priority: usize
§enabled: bool
§bound_entity: Option<Entity>
Implementations§
Source§impl InputStackListener
impl InputStackListener
pub fn with_trigger(self, name: &str, trigger: InputStackTrigger) -> Self
pub fn map_trigger(&mut self, name: &str, trigger: InputStackTrigger)
pub fn unmap_trigger(&mut self, name: &str)
pub fn trigger(&self, name: &str) -> Option<&InputStackTrigger>
pub fn trigger_state_or_default(&self, name: &str) -> TriggerState
pub fn with_axes(self, name: &str, axes: InputStackAxes) -> Self
pub fn map_axes(&mut self, name: &str, axes: InputStackAxes)
pub fn unmap_axes(&mut self, name: &str)
pub fn axes(&self, name: &str) -> Option<&InputStackAxes>
pub fn axes_channels_or_default(&self, name: &str) -> &[InputStackChannel]
pub fn axes_state_or_default<const N: usize>(&self, name: &str) -> [Scalar; N]
pub fn channel_state_or_default(&self, name: &str) -> Scalar
pub fn with_text(self, text: InputStackText) -> Self
pub fn map_text(&mut self, text: InputStackText)
pub fn unmap_text(&mut self)
pub fn text(&self) -> Option<&InputStackText>
pub fn text_state_or_default(&self) -> &str
pub fn with_combination( self, name: &str, combination: InputStackCombination, ) -> Self
pub fn map_combination( &mut self, name: &str, combination: InputStackCombination, )
pub fn unmap_combination(&mut self, name: &str)
pub fn combination(&self, name: &str) -> Option<&InputStackCombination>
pub fn combination_pressed_or_default(&self, name: &str) -> bool
pub fn combination_released_or_default(&self, name: &str) -> bool
Trait Implementations§
Source§impl Clone for InputStackListener
impl Clone for InputStackListener
Source§fn clone(&self) -> InputStackListener
fn clone(&self) -> InputStackListener
Returns a duplicate 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 InputStackListener
impl Debug for InputStackListener
Source§impl Default for InputStackListener
impl Default for InputStackListener
Source§impl<'de> Deserialize<'de> for InputStackListener
impl<'de> Deserialize<'de> for InputStackListener
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InputStackListener
impl RefUnwindSafe for InputStackListener
impl Send for InputStackListener
impl Sync for InputStackListener
impl Unpin for InputStackListener
impl UnwindSafe for InputStackListener
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