Menu

#1985 Possible problem with input devices with special characters.

None
New
nobody
Low
2017-09-01
2017-08-18
No

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.

1 Attachments

Discussion

  • Karsten Bock

    Karsten Bock - 2017-08-19

    Some additional information i forgot to write in the oringal post:

    OS: Windows 10.
    FG Version: Latest Git.

     
  • James Turner

    James Turner - 2017-08-24

    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.

     
  • Stuart Buchanan

    Stuart Buchanan - 2017-08-29

    Hi Karsten,

    Out of interest, are you able to use the Joystick Configuration dialog successfully, or is it all completely broke?

    -Stuart

     
  • Karsten Bock

    Karsten Bock - 2017-08-29

    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""

     
  • Stuart Buchanan

    Stuart Buchanan - 2017-08-29

    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

     
  • James Turner

    James Turner - 2017-09-01

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB