all repos — mgba @ 908a20856f43e56a49b47d04a88c4d2213e9a528

mGBA Game Boy Advance Emulator

3DS: Support C-Pad for D-Pad
Jeffrey Pfau jeffrey@endrift.com
Sun, 30 Aug 2015 10:18:42 -0700
commit

908a20856f43e56a49b47d04a88c4d2213e9a528

parent

0ab9190b1051f8f6c8b3449ca9a0ca066851a7a3

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/platform/3ds/main.csrc/platform/3ds/main.c

@@ -185,7 +185,8 @@ memset(audioRight, 0, AUDIO_SAMPLES * 2 * sizeof(int16_t));

while (aptMainLoop()) { hidScanInput(); - int activeKeys = hidKeysHeld() & 0x3FF; + uint32_t activeKeys = hidKeysHeld() & 0xF00003FF; + activeKeys |= activeKeys >> 24; if (hidKeysDown() & KEY_X) { break; }