pub struct FrameInput {
pub p1: u16,
pub p2: u16,
}Expand description
One frame’s worth of recorded controller input — the SNES auto-joypad’s latched u16 per
port (the same value crate::bus::Bus::set_joypad takes).
Fields§
§p1: u16Player 1’s latched controller state.
p2: u16Player 2’s latched controller state.
Trait Implementations§
Source§impl Clone for FrameInput
impl Clone for FrameInput
Source§fn clone(&self) -> FrameInput
fn clone(&self) -> FrameInput
Returns a duplicate 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 FrameInput
impl Debug for FrameInput
Source§impl Default for FrameInput
impl Default for FrameInput
Source§fn default() -> FrameInput
fn default() -> FrameInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for FrameInput
impl PartialEq for FrameInput
impl Copy for FrameInput
impl Eq for FrameInput
impl StructuralPartialEq for FrameInput
Auto Trait Implementations§
impl Freeze for FrameInput
impl RefUnwindSafe for FrameInput
impl Send for FrameInput
impl Sync for FrameInput
impl Unpin for FrameInput
impl UnsafeUnpin for FrameInput
impl UnwindSafe for FrameInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.