[JAVA] Joystick settings in OpenDS

Preface

When moving OpenDS, I wanted to operate it with the Thrustmaster steering wheel. I used the Ferrari GT Experience Racing Wheel (old ...).

Driver installation

It shouldn't be necessary. Insert Joystick And Gamepad Tester and check that it is working. In addition, you can check which operation corresponds to which ID.

Screen Shot 2017-02-10 at 15.44.15.png

OpenDS

Please read the README for the flow from startup. If you just start it and select Task, it will not respond with the steering wheel at hand, so you need to set it. By default, Logitech G27 seems to be supported.

Refer to joystickDump.txt

Once started, the following files will be created in the same directory as OpenDS.jar. It should not be created if the joystick device is not connected.

joystickDump.txt


Creation Date: 2017-02-10
Creation Time: 15:10:04

Joystick[0]:FGT Rumble 3-in-1
  buttons:13
   JoystickButton[name=0, parent=FGT Rumble 3-in-1, id=0, logicalId=0]
   JoystickButton[name=1, parent=FGT Rumble 3-in-1, id=1, logicalId=1]
   JoystickButton[name=2, parent=FGT Rumble 3-in-1, id=2, logicalId=2]
   JoystickButton[name=3, parent=FGT Rumble 3-in-1, id=3, logicalId=3]
   JoystickButton[name=4, parent=FGT Rumble 3-in-1, id=4, logicalId=4]
   JoystickButton[name=5, parent=FGT Rumble 3-in-1, id=5, logicalId=5]
   JoystickButton[name=6, parent=FGT Rumble 3-in-1, id=6, logicalId=6]
   JoystickButton[name=7, parent=FGT Rumble 3-in-1, id=7, logicalId=7]
   JoystickButton[name=8, parent=FGT Rumble 3-in-1, id=8, logicalId=8]
   JoystickButton[name=9, parent=FGT Rumble 3-in-1, id=9, logicalId=9]
   JoystickButton[name=10, parent=FGT Rumble 3-in-1, id=10, logicalId=10]
   JoystickButton[name=11, parent=FGT Rumble 3-in-1, id=11, logicalId=11]
   JoystickButton[name=12, parent=FGT Rumble 3-in-1, id=12, logicalId=12]
  axes:6
   JoystickAxis[name=pov, parent=FGT Rumble 3-in-1, id=0, logicalId=pov, isAnalog=false, isRelative=false, deadZone=0.0]
   JoystickAxis[name=pov_x, parent=FGT Rumble 3-in-1, id=1, logicalId=pov_x, isAnalog=false, isRelative=false, deadZone=0.0]
   JoystickAxis[name=pov_y, parent=FGT Rumble 3-in-1, id=2, logicalId=pov_y, isAnalog=false, isRelative=false, deadZone=0.0]
   JoystickAxis[name=x, parent=FGT Rumble 3-in-1, id=3, logicalId=x, isAnalog=true, isRelative=false, deadZone=0.0]
   JoystickAxis[name=y, parent=FGT Rumble 3-in-1, id=4, logicalId=y, isAnalog=true, isRelative=false, deadZone=0.0]
   JoystickAxis[name=rz, parent=FGT Rumble 3-in-1, id=5, logicalId=rz, isAnalog=true, isRelative=false, deadZone=0.0]

settings.xml

Modify settings.xml based on this information. Please note that settings are required for each Driving Task. In the case of Ferrari GT Experience Racing Wheel, it worked after setting as follows. For the time being, only the steering wheel and accelerator / brake.

From the information in joystickDump.txt, modify the XML so that it is assigned as follows.

Joystick[0] : controllerID="0"
Steering: axisID="3"
accelerator: axisID="5"
brake: axisID="4"

Here is the fix.

settings.xml


		<joystick>
            <!-- Thrustmaster -->
            <dumpJoystickList>true</dumpJoystickList>
            <enableForceFeedback>true</enableForceFeedback>
            <steering controllerID="0" axisID="3" invert="false" sensitivity="1.0"/>
            <accelerator controllerID="0" axisID="5" invert="true" sensitivity="1.0"/>
            <brake controllerID="0" axisID="4" invert="true" sensitivity="1.0"/>
		</joystick>

result

moved. Button assignment is coming again.

Recommended Posts

Joystick settings in OpenDS
Settings for SSL debugging in Java
Settings related to connection pool in Tomcat.jdbc
Receive joystick input in Java LW JFL
Tomcat, Context, debug settings in IntelliJ Community