pub struct PlayerInputArguments { /* private fields */ }
Implementations§
Source§impl PlayerInputArguments
impl PlayerInputArguments
Sourcepub fn nes(&self) -> Option<&Nes>
pub fn nes(&self) -> Option<&Nes>
Get the players NES style controller, will be None if there is no suitable input device, or one wasn’t asked for in the supplied game info.
Sourcepub fn controller(&self) -> Option<&Controller>
pub fn controller(&self) -> Option<&Controller>
Get the players standard style controller, will be None if there is no suitable input device or one wasn’t asked for in the supplied game info.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlayerInputArguments
impl<'de> Deserialize<'de> for PlayerInputArguments
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 PlayerInputArguments
impl RefUnwindSafe for PlayerInputArguments
impl Send for PlayerInputArguments
impl Sync for PlayerInputArguments
impl Unpin for PlayerInputArguments
impl UnwindSafe for PlayerInputArguments
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