all repos — mgba @ 72136951bf88d767a8ff0fd8050242191dcc4092

mGBA Game Boy Advance Emulator

SDL: Swap A and B for more standard default layout
Jeffrey Pfau jeffrey@endrift.com
Mon, 03 Nov 2014 23:28:56 -0800
commit

72136951bf88d767a8ff0fd8050242191dcc4092

parent

629196e7a10942046455347c7469d6d42ea82dc9

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

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

@@ -24,8 +24,8 @@ #if !SDL_VERSION_ATLEAST(2, 0, 0)

SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); #endif - GBAInputBindKey(context->bindings, SDL_BINDING_KEY, SDL_SCANCODE_Z, GBA_KEY_A); - GBAInputBindKey(context->bindings, SDL_BINDING_KEY, SDL_SCANCODE_X, GBA_KEY_B); + GBAInputBindKey(context->bindings, SDL_BINDING_KEY, SDL_SCANCODE_X, GBA_KEY_A); + GBAInputBindKey(context->bindings, SDL_BINDING_KEY, SDL_SCANCODE_Z, GBA_KEY_B); GBAInputBindKey(context->bindings, SDL_BINDING_KEY, SDL_SCANCODE_A, GBA_KEY_L); GBAInputBindKey(context->bindings, SDL_BINDING_KEY, SDL_SCANCODE_S, GBA_KEY_R); GBAInputBindKey(context->bindings, SDL_BINDING_KEY, SDL_SCANCODE_RETURN, GBA_KEY_START);