Qt: Update 360 input profile on OS X to reflect newer drivers
Jeffrey Pfau jeffrey@endrift.com
Sat, 20 Feb 2016 23:39:31 -0800
2 files changed,
24 insertions(+),
23 deletions(-)
M
src/platform/qt/InputProfile.cpp
→
src/platform/qt/InputProfile.cpp
@@ -63,29 +63,7 @@ {}
} }, { - "(Sony Computer Entertainment )?Wireless Controller", // The DualShock 4 device ID is cut off on Windows - (int[GBA_KEY_MAX]) { - /*keyA */ 1, - /*keyB */ 2, - /*keySelect */ 8, - /*keyStart */ 9, - /*keyRight */ -1, - /*keyLeft */ -1, - /*keyUp */ -1, - /*keyDown */ -1, - /*keyR */ 5, - /*keyL */ 4 - }, - (ShortcutButton[]) { - {"loadState", 0}, - {"saveState", 3}, - {"holdFastForward", 7}, - {"holdRewind", 6}, - {} - }, - }, - { - "Controller", // The Xbox 360 controller drivers on OS X are vague... + "Xbox 360 Wired Controller", // OS X (int[GBA_KEY_MAX]) { /*keyA */ 1, /*keyB */ 0,@@ -108,6 +86,28 @@ {"holdFastForward", GamepadAxisEvent::Direction::POSITIVE, 5},
{"holdRewind", GamepadAxisEvent::Direction::POSITIVE, 2}, {} } + }, + { + "(Sony Computer Entertainment )?Wireless Controller", // The DualShock 4 device ID is cut off on Windows + (int[GBA_KEY_MAX]) { + /*keyA */ 1, + /*keyB */ 2, + /*keySelect */ 8, + /*keyStart */ 9, + /*keyRight */ -1, + /*keyLeft */ -1, + /*keyUp */ -1, + /*keyDown */ -1, + /*keyR */ 5, + /*keyL */ 4 + }, + (ShortcutButton[]) { + {"loadState", 0}, + {"saveState", 3}, + {"holdFastForward", 7}, + {"holdRewind", 6}, + {} + }, }, { "PLAYSTATION\\(R\\)3 Controller", // DualShock 3 (OS X)