#[repr(u8)]pub enum JoypadKey {
Right = 1,
Left = 2,
Up = 4,
Down = 8,
A = 16,
B = 32,
Select = 64,
Start = 128,
}Expand description
Joypad key enum.
The value of the keys returned by the Joypad struct.
Same as the J_* consts in GBDK.
Variants§
Trait Implementations§
impl Copy for JoypadKey
impl StructuralPartialEq for JoypadKey
Auto Trait Implementations§
impl Freeze for JoypadKey
impl RefUnwindSafe for JoypadKey
impl Send for JoypadKey
impl Sync for JoypadKey
impl Unpin for JoypadKey
impl UnwindSafe for JoypadKey
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