Enum input_linux::InputProperty
source · #[repr(u16)]
pub enum InputProperty {
Show 32 variants
Pointer,
Direct,
ButtonPad,
SemiMultiTouch,
TopButtonPad,
PointingStick,
Accelerometer,
Unknown07,
Unknown08,
Unknown09,
Unknown0A,
Unknown0B,
Unknown0C,
Unknown0D,
Unknown0E,
Unknown0F,
Unknown10,
Unknown11,
Unknown12,
Unknown13,
Unknown14,
Unknown15,
Unknown16,
Unknown17,
Unknown18,
Unknown19,
Unknown1A,
Unknown1B,
Unknown1C,
Unknown1D,
Unknown1E,
Unknown1F,
}Expand description
Device properties and quirks.
Variants§
Pointer
Direct
ButtonPad
SemiMultiTouch
TopButtonPad
PointingStick
Accelerometer
Unknown07
Unknown08
Unknown09
Unknown0A
Unknown0B
Unknown0C
Unknown0D
Unknown0E
Unknown0F
Unknown10
Unknown11
Unknown12
Unknown13
Unknown14
Unknown15
Unknown16
Unknown17
Unknown18
Unknown19
Unknown1A
Unknown1B
Unknown1C
Unknown1D
Unknown1E
Unknown1F
Implementations§
source§impl InputProperty
impl InputProperty
source§impl InputProperty
impl InputProperty
sourcepub fn from_code(code: u16) -> Result<Self, RangeError>
pub fn from_code(code: u16) -> Result<Self, RangeError>
Instantiates the enum from a raw code value.
Trait Implementations§
source§impl BitmaskTrait for InputProperty
impl BitmaskTrait for InputProperty
§type Index = InputProperty
type Index = InputProperty
The type that the bitmask can be indexed by.
source§fn array_default() -> Self::Array
fn array_default() -> Self::Array
The default empty state of the bitmask.
source§fn array_slice(array: &Self::Array) -> &[u8] ⓘ
fn array_slice(array: &Self::Array) -> &[u8] ⓘ
A representation of the bitmask as a slice of bytes.
source§impl Clone for InputProperty
impl Clone for InputProperty
source§fn clone(&self) -> InputProperty
fn clone(&self) -> InputProperty
Returns a copy 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 InputProperty
impl Debug for InputProperty
source§impl<'de> Deserialize<'de> for InputProperty
impl<'de> Deserialize<'de> for InputProperty
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
source§impl From<InputProperty> for u16
impl From<InputProperty> for u16
source§fn from(v: InputProperty) -> Self
fn from(v: InputProperty) -> Self
Converts to this type from the input type.
source§impl Hash for InputProperty
impl Hash for InputProperty
source§impl IterableEnum for InputProperty
impl IterableEnum for InputProperty
source§impl Ord for InputProperty
impl Ord for InputProperty
source§fn cmp(&self, other: &InputProperty) -> Ordering
fn cmp(&self, other: &InputProperty) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<InputProperty> for InputProperty
impl PartialEq<InputProperty> for InputProperty
source§fn eq(&self, other: &InputProperty) -> bool
fn eq(&self, other: &InputProperty) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<InputProperty> for InputProperty
impl PartialOrd<InputProperty> for InputProperty
source§fn partial_cmp(&self, other: &InputProperty) -> Option<Ordering>
fn partial_cmp(&self, other: &InputProperty) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more