Qt: Add 360 profile for Linux
Jeffrey Pfau jeffrey@endrift.com
Wed, 22 Jul 2015 21:22:50 -0700
1 files changed,
25 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/InputProfile.cpp
→
src/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,