From 033ffc2e15bebb7648f8347a000402b9ed9f5432 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 23 Mar 2022 03:19:55 -0500 Subject: [PATCH] [nostalgia/core/gba] Fix GBA input --- src/nostalgia/core/gba/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/core/gba/core.cpp b/src/nostalgia/core/gba/core.cpp index 3131d839..ba32b646 100644 --- a/src/nostalgia/core/gba/core.cpp +++ b/src/nostalgia/core/gba/core.cpp @@ -56,7 +56,7 @@ uint64_t ticksMs(Context*) noexcept { } bool buttonDown(Context*, Key k) noexcept { - return !(REG_GAMEPAD & k); + return !(REG_GAMEPAD & (1 << static_cast(k))); } }