pub struct Input { /* private fields */ }
Implementations§
source§impl Input
impl Input
pub fn new() -> Self
pub const fn joypad(&self, slot: Slot) -> &Joypad
pub fn joypad_mut(&mut self, slot: Slot) -> &mut Joypad
pub fn connect_zapper(&mut self, connected: bool)
pub const fn zapper(&self) -> &Zapper
pub fn zapper_mut(&mut self) -> &mut Zapper
pub const fn four_player(&self) -> FourPlayer
pub fn set_four_player(&mut self, four_player: FourPlayer)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
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 InputRegisters for Input
impl InputRegisters for Input
impl Copy for Input
Auto Trait Implementations§
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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