Package: mupen64plus-input-sdl / 2.0-4

autoconfig_sony_dualshock4.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Description: Add support for Sony Dualshock4
Author: Sven Eckelmann <sven@narfation.org>

---
diff --git a/data/InputAutoCfg.ini b/data/InputAutoCfg.ini
index 726d5a0658cfbed673e892403d329dd8ee2344b1..37d949a1cade6b244e1021ca952514d50e64fc4a 100644
--- a/data/InputAutoCfg.ini
+++ b/data/InputAutoCfg.ini
@@ -793,6 +793,32 @@ Rumblepak switch =
 X Axis = axis(0-,0+)
 Y Axis = axis(1-,1+)
 
+;Sony Playstation4/Dualshock4 Gamepad
+[Sony Computer Entertainment Wireless Controller]
+plugged = True
+plugin = 2
+mouse = False
+AnalogDeadzone = 4096,4096
+AnalogPeak = 32768,32768
+DPad R = hat(0 Right)
+DPad L = hat(0 Left)
+DPad D = hat(0 Down)
+DPad U = hat(0 Up)
+Start = button(9)
+Z Trig = button(6)
+B Button = button(0)
+A Button = button(1)
+C Button R = axis(2+)
+C Button L = axis(2-)
+C Button D = axis(5+)
+C Button U = axis(5-)
+R Trig = button(5)
+L Trig = button(4)
+Mempak switch = 
+Rumblepak switch = 
+X Axis = axis(0-,0+)
+Y Axis = axis(1-,1+)
+
 [SAITEK P880]
 plugged = True
 plugin = 2