From da226abba68654b05480d3e56a4d62d3fc95f00a Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 22 Jul 2015 21:22:50 -0700 Subject: [PATCH] Qt: Add 360 profile for Linux --- src/platform/qt/InputProfile.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/platform/qt/InputProfile.cpp b/src/platform/qt/InputProfile.cpp index 1946159e0..c4e542bc7 100644 --- a/src/platform/qt/InputProfile.cpp +++ b/src/platform/qt/InputProfile.cpp @@ -37,6 +37,31 @@ const InputProfile InputProfile::s_defaultMaps[] = { {} } }, + { + "(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]) {