pub struct Dpad {
pub dtype: String,
pub report_offset: usize,
pub logical_min: i32,
pub logical_max: i32,
pub neutral: u8,
pub bit_offset: Option<usize>,
pub size_bits: Option<u8>,
pub nibble: Option<String>,
}Expand description
D-Pad (HAT) descriptor.
Backward compatible byte model + NEW bit/nibble addressing.
Priority: if bit_offset is set, read via bits (size_bits default 4).
Fields§
§dtype: String§report_offset: usize§logical_min: i32§logical_max: i32§neutral: u8§bit_offset: Option<usize>§size_bits: Option<u8>§nibble: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dpad
impl<'de> Deserialize<'de> for Dpad
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 Dpad
impl RefUnwindSafe for Dpad
impl Send for Dpad
impl Sync for Dpad
impl Unpin for Dpad
impl UnwindSafe for Dpad
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