[−][src]Enum prongs::types::InputCause
Describes the source of input for a ProcessingResult
Variants
Button(ButtonState)
a key or button as source, with given state
Axis(u8, f64)
an axis set to specific value in range <-1.0, 1.0>
Motion(f64, f64)
a motion source (e.g. mouse) with x, y values
Methods
impl InputCause
[src]
impl InputCause
pub fn is_engaged(&self) -> bool
[src]
pub fn is_engaged(&self) -> bool
pub fn is_axis(&self) -> bool
[src]
pub fn is_axis(&self) -> bool
pub fn scalar_value(&self) -> f64
[src]
pub fn scalar_value(&self) -> f64
Trait Implementations
impl PartialEq<InputCause> for InputCause
[src]
impl PartialEq<InputCause> for InputCause
fn eq(&self, other: &InputCause) -> bool
[src]
fn eq(&self, other: &InputCause) -> bool
fn ne(&self, other: &InputCause) -> bool
[src]
fn ne(&self, other: &InputCause) -> bool
impl Debug for InputCause
[src]
impl Debug for InputCause
Auto Trait Implementations
impl Send for InputCause
impl Send for InputCause
impl Sync for InputCause
impl Sync for InputCause
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T