pub struct DPadInput { /* private fields */ }Expand description
A single run-length encoded D-pad input entry from a Mario Kart Wii ghost file.
Each entry records which D-pad button was held and for how many consecutive frames it was held. Frame durations exceeding 255 frames are encoded across two fields: the lower nibble of the first byte stores the number of additional 256-frame intervals, and the second byte stores the remainder.
Implementations§
Trait Implementations§
Source§impl PartialEq for DPadInput
Two DPadInput values are equal if they share the same button state,
regardless of frame duration.
impl PartialEq for DPadInput
Two DPadInput values are equal if they share the same button state,
regardless of frame duration.
Auto Trait Implementations§
impl Freeze for DPadInput
impl RefUnwindSafe for DPadInput
impl Send for DPadInput
impl Sync for DPadInput
impl Unpin for DPadInput
impl UnsafeUnpin for DPadInput
impl UnwindSafe for DPadInput
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