[nostalgia/core/gba] Fix GBA input
This commit is contained in:
parent
9161a1a8ef
commit
033ffc2e15
@ -56,7 +56,7 @@ uint64_t ticksMs(Context*) noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool buttonDown(Context*, Key k) noexcept {
|
bool buttonDown(Context*, Key k) noexcept {
|
||||||
return !(REG_GAMEPAD & k);
|
return !(REG_GAMEPAD & (1 << static_cast<int>(k)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user