mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
more correct example
This commit is contained in:
parent
4060b5d6f1
commit
5b0e2e30a4
|
@ -102,7 +102,7 @@ pub enum TriBool {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read_key_input() -> KeyInputSetting {
|
pub fn read_key_input() -> KeyInputSetting {
|
||||||
unsafe { KeyInputSetting(KEYINPUT.read_volatile() ^ 0b1111_1111_1111_1111) }
|
unsafe { KeyInputSetting(KEYINPUT.read_volatile() ^ 0b0000_0011_1111_1111) }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const KEY_A: u16 = 1 << 0;
|
pub const KEY_A: u16 = 1 << 0;
|
||||||
|
|
Loading…
Reference in a new issue