[][src]Struct rubidium::HighActiveKeys

pub struct HighActiveKeys(pub u16);

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]

impl Copy for HighActiveKeys[src]

impl Debug for HighActiveKeys[src]

impl Default for HighActiveKeys[src]

impl From<LowActiveKeys> for HighActiveKeys[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.