[−][src]Struct rubidium::HighActiveKeys
The GBA's key data, where a high value in a bit means the key is pressed.
Values of this type usually come from reading KEYINPUT
and then
converting that value into this type.
Methods
impl HighActiveKeys
[src]
pub const fn new() -> Self
[src]
#[must_use]pub const fn a(self) -> bool
[src]
#[must_use]pub const fn with_a(self, b: bool) -> Self
[src]
pub fn set_a(&mut self, b: bool)
[src]
#[must_use]pub const fn b(self) -> bool
[src]
#[must_use]pub const fn with_b(self, b: bool) -> Self
[src]
pub fn set_b(&mut self, b: bool)
[src]
#[must_use]pub const fn select(self) -> bool
[src]
#[must_use]pub const fn with_select(self, b: bool) -> Self
[src]
pub fn set_select(&mut self, b: bool)
[src]
#[must_use]pub const fn start(self) -> bool
[src]
#[must_use]pub const fn with_start(self, b: bool) -> Self
[src]
pub fn set_start(&mut self, b: bool)
[src]
#[must_use]pub const fn right(self) -> bool
[src]
#[must_use]pub const fn with_right(self, b: bool) -> Self
[src]
pub fn set_right(&mut self, b: bool)
[src]
#[must_use]pub const fn left(self) -> bool
[src]
#[must_use]pub const fn with_left(self, b: bool) -> Self
[src]
pub fn set_left(&mut self, b: bool)
[src]
#[must_use]pub const fn up(self) -> bool
[src]
#[must_use]pub const fn with_up(self, b: bool) -> Self
[src]
pub fn set_up(&mut self, b: bool)
[src]
#[must_use]pub const fn down(self) -> bool
[src]
#[must_use]pub const fn with_down(self, b: bool) -> Self
[src]
pub fn set_down(&mut self, b: bool)
[src]
#[must_use]pub const fn r(self) -> bool
[src]
#[must_use]pub const fn with_r(self, b: bool) -> Self
[src]
pub fn set_r(&mut self, b: bool)
[src]
#[must_use]pub const fn l(self) -> bool
[src]
#[must_use]pub const fn with_l(self, b: bool) -> Self
[src]
pub fn set_l(&mut self, b: bool)
[src]
Trait Implementations
impl Clone for HighActiveKeys
[src]
fn clone(&self) -> HighActiveKeys
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for HighActiveKeys
[src]
impl Debug for HighActiveKeys
[src]
impl Default for HighActiveKeys
[src]
fn default() -> HighActiveKeys
[src]
impl From<LowActiveKeys> for HighActiveKeys
[src]
fn from(low: LowActiveKeys) -> Self
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,