diff --git a/CHANGES b/CHANGES index d9ead01f8..4ff3f12d2 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,7 @@ Bugfixes: - OpenGL: Correct boolean vector strcmp strings for uniforms Misc: - GBA: Slightly optimize GBAProcessEvents + - Qt: Add preset for DualShock 4 0.4.0: (2016-02-02) Features: diff --git a/src/platform/qt/InputProfile.cpp b/src/platform/qt/InputProfile.cpp index c4e542bc7..1182d640a 100644 --- a/src/platform/qt/InputProfile.cpp +++ b/src/platform/qt/InputProfile.cpp @@ -62,6 +62,28 @@ const InputProfile InputProfile::s_defaultMaps[] = { {} } }, + { + "(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... (int[GBA_KEY_MAX]) {