all repos — mgba @ 3c31ae12601030b9b3c193e7a95d8187c3fb7a2c

mGBA Game Boy Advance Emulator

Qt: Add preset for DualShock 4
Jeffrey Pfau jeffrey@endrift.com
Wed, 17 Feb 2016 21:45:36 -0800
commit

3c31ae12601030b9b3c193e7a95d8187c3fb7a2c

parent

357008ff409ae566a115c855ed4e6cf4654bd303

2 files changed, 23 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -9,6 +9,7 @@ - GBA BIOS: Fix RegisterRamReset setting DISPCNT to the wrong value

- 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:
M src/platform/qt/InputProfile.cppsrc/platform/qt/InputProfile.cpp

@@ -63,6 +63,28 @@ {}

} }, { + "(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]) { /*keyA */ 1,