Input device: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
m (→‎Some hints for Windows users: numbered config files)
mNo edit summary
Line 196: Line 196:
Unfortunately, there is one more loophole with Windows joystick support. In case you have two USB devices attached (for instance a yoke plus pedals), there may be cases, where the same driver name is reported twice. In this case, you can get at least the yoke to work by assigning it number 0 (out of 0 and 1), add a line to <tt>[[$FG_ROOT]]/joystick.xml</tt> like:
Unfortunately, there is one more loophole with Windows joystick support. In case you have two USB devices attached (for instance a yoke plus pedals), there may be cases, where the same driver name is reported twice. In this case, you can get at least the yoke to work by assigning it number 0 (out of 0 and 1), add a line to <tt>[[$FG_ROOT]]/joystick.xml</tt> like:
  <js n="0" include="Input/Joysticks/Saitek/ST290-Pro.xml"/>
  <js n="0" include="Input/Joysticks/Saitek/ST290-Pro.xml"/>
if you also have pedals (or another joystick), just add more lines, similar to:
<js n="1" include="Input/Joysticks/Saitek/Pro-Flight-Rudder-Pedals.xml"/>


For this purpose, rotate the yoke ([[aileron]] control) and observe the output of js demo. If figures in the first group of colons (for device 0) change, assignment is correct. If figures in the second group of colons (for device 1) change, you have to make the yoke the preferred device first. For doing so, enter the Windows “Control panel”, open “Game controllers” and select the “Advanced” button. Here you can select the yoke as the “Preferred” device. Afterward you can check that assignment by running js demo again. The yoke should now control the first group of figures.  
For this purpose, rotate the yoke ([[aileron]] control) and observe the output of js demo. If figures in the first group of colons (for device 0) change, assignment is correct. If figures in the second group of colons (for device 1) change, you have to make the yoke the preferred device first. For doing so, enter the Windows “Control panel”, open “Game controllers” and select the “Advanced” button. Here you can select the yoke as the “Preferred” device. Afterward you can check that assignment by running js demo again. The yoke should now control the first group of figures.  
Unfortunately, we did not find a way to get the pedals to work, too, that way. Thus, in cases like this one (and others) you may want to try an alternative method of assigning joystick controls.


== Joystick support via .fgfsrc entries ==
== Joystick support via .fgfsrc entries ==

Navigation menu