diff --git a/src/nostalgia/core/gba/core.cpp b/src/nostalgia/core/gba/core.cpp index bcbb443b..91dacf9a 100644 --- a/src/nostalgia/core/gba/core.cpp +++ b/src/nostalgia/core/gba/core.cpp @@ -74,7 +74,7 @@ uint64_t ticksMs(Context*) noexcept { } bool buttonDown(Context*, Key k) noexcept { - return !(REG_GAMEPAD & (1 << static_cast(k))); + return k <= Key::GamePad_L && !(REG_GAMEPAD & (1 << static_cast(k))); } void shutdown(Context *ctx) noexcept {