3DS: Support C-Pad for D-Pad
Jeffrey Pfau jeffrey@endrift.com
Sun, 30 Aug 2015 10:18:42 -0700
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/platform/3ds/main.c
→
src/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; }