all repos — mgba @ 53690f7a83e6f7b99eae1b4bbde66b5716935ed1

mGBA Game Boy Advance Emulator

SDL: Preferred joysticks override claimed joysticks
Vicki Pfau vi@endrift.com
Sun, 02 Jul 2017 17:08:23 -0700
commit

53690f7a83e6f7b99eae1b4bbde66b5716935ed1

parent

bd312238319c03151d5f9c9da199318f65ea90d5

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

jump to
M src/platform/sdl/sdl-events.csrc/platform/sdl/sdl-events.c

@@ -189,11 +189,8 @@ claimed = true;

break; } } - if (claimed) { - continue; - } - if (firstUnclaimed == SIZE_MAX) { + if (!claimed && firstUnclaimed == SIZE_MAX) { firstUnclaimed = i; }