From 5481b02c06d3e6402f0536a2c3d62e8bf5232cbf Mon Sep 17 00:00:00 2001 From: Pedro Ribeiro Date: Sun, 6 Jan 2019 00:10:49 +0000 Subject: [PATCH 1/2] Recognise DS4 controllers in Bluetooth mode Legit DS4 controllers advertise themselves as Wireless Controller when connected via Bluetooth. sony 0005:054C:05C4.0043: input,hidraw4: BLUETOOTH HID v81.00 Gamepad [Wireless Controller] on b0:25:9f:d3:8b:d8 --- data/InputAutoCfg.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/data/InputAutoCfg.ini b/data/InputAutoCfg.ini index 43b1862..673808a 100644 --- a/data/InputAutoCfg.ini +++ b/data/InputAutoCfg.ini @@ -1292,6 +1292,7 @@ Y Axis = axis(1-,1+) [Sony Computer Entertainment Wireless Controller] [Sony Interactive Entertainment Wireless Controller] +[Wireless Controller] plugged = True mouse = False AnalogDeadzone = 4096,4096 From c7e31c4f0eafdc64c23cccd82053dba8f8eaa88f Mon Sep 17 00:00:00 2001 From: Pedro Ribeiro Date: Sun, 6 Jan 2019 23:55:11 +0000 Subject: [PATCH 2/2] Add a new section as the mappings were all over the place --- data/InputAutoCfg.ini | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/data/InputAutoCfg.ini b/data/InputAutoCfg.ini index 673808a..f9100fd 100644 --- a/data/InputAutoCfg.ini +++ b/data/InputAutoCfg.ini @@ -1292,7 +1292,6 @@ Y Axis = axis(1-,1+) [Sony Computer Entertainment Wireless Controller] [Sony Interactive Entertainment Wireless Controller] -[Wireless Controller] plugged = True mouse = False AnalogDeadzone = 4096,4096 @@ -1316,6 +1315,32 @@ Rumblepak switch = X Axis = axis(0-,0+) Y Axis = axis(1-,1+) +; Sony DS4 connected via Bluetooth advertises itself as "Wireless Controller" +[Wireless Controller] +plugged = True +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) +; L2, change to 7 for R2 +Z Trig = button(6) +B Button = button(0) +A Button = button(1) +C Button R = axis(3+) +C Button L = axis(3-) +C Button D = axis(4+) +C Button U = axis(4-) +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 mouse = False