Heya,
since my good old Extreme 3D Prop does not work correctly anymore I tried to see how well one could fly with a DualShock 4 using the Wireless Adaptor.
I tried starting with the config for a DualShock 3, adding the name of the Dualshock 4 to the names inside the xml. I also added the xml to the Joysticks xml - yet it always reported to be using the default joystick.xml.
I found early on, that there may be a problem with the name of the device - "DUALSHOCK®4 USB Wireless Adaptor" - especially since it was printed incorrectly in the log. I also could never set an input for that device.
After I did some digging - which included getting and compiling the source myself - I found out, that while the name of the device is correctly detected in the configMap it is stored as "DUALSHOCK®4 USB Wireless Adaptor" - which, of course, will not match with the name.
Some additional information i forgot to write in the oringal post:
OS: Windows 10.
FG Version: Latest Git.
This probably requires forking the PLIB JS code (since we can't change it) to use Unicode-aware naming of input devices. This is not impossible but certainly a little bit of work.
Hi Karsten,
Out of interest, are you able to use the Joystick Configuration dialog successfully, or is it all completely broke?
-Stuart
Hi Stuart,
I can try to select actions for buttons and axes, but they are reset as soon as I select the actions.
Also, I forgot to mention, the following line appears in the log when I try to set actions:
"input:5:G:\Jenkins\workspace\Windows-release\flightgear\src\Input\FGDeviceConfigurationMap.cxx:147:parse failure reading:Path "d:/Users/Karsten/AppData/Roaming/flightgear.org/Input/Joysticks/DUALSHOCK�4-USB-Wireless-Adaptor.xml""
OK. Thanks for the log message. Sounds like we do need to fork the plib JS code. I was hoping there might be a quick fix I could do.
-Stuart
BTW I have a local branch to fork the PLIB JS code into FlightGear, I didn't push it forwards since there wasn't an immediate bug it would solve, but, it sounds as it would be welcome in this case at least.