more correct example

This commit is contained in:
Lokathor 2018-11-14 19:54:32 -07:00
parent 4060b5d6f1
commit 5b0e2e30a4

View file

@ -102,7 +102,7 @@ pub enum TriBool {
}
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;