Skip to content

Commit

Permalink
fix keyinput init value
Browse files Browse the repository at this point in the history
  • Loading branch information
emrsmsrli committed Feb 1, 2021
1 parent dbba26a commit 1c64cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gba/include/gba/keypad.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct keypad {
static inline constexpr auto addr_state = 0x0400'0130_u32;
static inline constexpr auto addr_control = 0x0400'0132_u32;

u16 keyinput_ = 0x003F_u16;
u16 keyinput_ = 0x03FF_u16;
irq_control keycnt_;

void release(const key k) noexcept { keyinput_ = bit::set(keyinput_, static_cast<u8::type>(k)); }
Expand Down

0 comments on commit 1c64cc9

Please sign in to comment.