all repos — mgba @ da226abba68654b05480d3e56a4d62d3fc95f00a

mGBA Game Boy Advance Emulator

Qt: Add 360 profile for Linux
Jeffrey Pfau jeffrey@endrift.com
Wed, 22 Jul 2015 21:22:50 -0700
commit

da226abba68654b05480d3e56a4d62d3fc95f00a

parent

b9c942546475eb971a142fc9ec905beeb7a93815

1 files changed, 25 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/InputProfile.cppsrc/platform/qt/InputProfile.cpp

@@ -38,6 +38,31 @@ {}

} }, { + "(Microsoft X-Box 360 pad|Xbox Gamepad \\(userspace driver\\))", // Linux + (int[GBA_KEY_MAX]) { + /*keyA */ 1, + /*keyB */ 0, + /*keySelect */ 6, + /*keyStart */ 7, + /*keyRight */ -1, + /*keyLeft */ -1, + /*keyUp */ -1, + /*keyDown */ -1, + /*keyR */ 5, + /*keyL */ 4 + }, + (ShortcutButton[]) { + {"loadState", 2}, + {"saveState", 3}, + {} + }, + (ShortcutAxis[]) { + {"holdFastForward", GamepadAxisEvent::Direction::POSITIVE, 5}, + {"holdRewind", GamepadAxisEvent::Direction::POSITIVE, 2}, + {} + } + }, + { "Controller", // The Xbox 360 controller drivers on OS X are vague... (int[GBA_KEY_MAX]) { /*keyA */ 1,