pub struct NegconState {
pub buttons: ButtonState,
pub twist: u8,
pub i: u8,
pub ii: u8,
pub left_shoulder: u8,
}Expand description
Read-only neGcon wire inputs. No calibration, thresholds or button synthesis
are applied. Compatible wheels sharing ID 0x23 have the same packet shape.
Fields§
Active-high digital switches: START, directions, R1 (R), TRIANGLE (B), CIRCLE (A).
twist: u8Raw steering/twist axis; nominal center is 0x80.
i: u8Analog I button, 0 released through 255 fully pressed.
ii: u8Analog II button, 0 released through 255 fully pressed.
left_shoulder: u8Analog left shoulder, 0 released through 255 fully pressed.
Trait Implementations§
Source§impl Clone for NegconState
impl Clone for NegconState
Source§fn clone(&self) -> NegconState
fn clone(&self) -> NegconState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NegconState
impl Debug for NegconState
Source§impl PartialEq for NegconState
impl PartialEq for NegconState
impl Copy for NegconState
impl Eq for NegconState
impl StructuralPartialEq for NegconState
Auto Trait Implementations§
impl Freeze for NegconState
impl RefUnwindSafe for NegconState
impl Send for NegconState
impl Sync for NegconState
impl Unpin for NegconState
impl UnsafeUnpin for NegconState
impl UnwindSafe for NegconState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)