Board index FlightGear Support Hardware

New joystick code format?

Joysticks, pedals, monitors.

New joystick code format?

Postby J Maverick 16 » Fri May 25, 2018 4:26 pm

Hi all, I've just installed 2018.2.1 and now I'm trying to re-add in a cleaner way the joystick xml files from my Thrustmaster FCS Flight Pack (T16000M stick, TWCS throttle, TFRP pedals) I find a substantial difference between my previous code and the new one:

Code: Select all
2018.2.1:

<axis>
  <number>
   <unix>0</unix>
   <windows>0</windows>
   <mac>0</mac>
  </number>
  <desc>Aileron</desc>
  <dead-band type="double">0.02</dead-band>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/aileron</property>
   <offset type="double">+0.0</offset>
   <factor type="double">+1.0</factor>
  </binding>
 </axis>

2018.1.1:

<axis n="0">
  <desc>Aileron</desc>
  <dead-band type="double">0.0</dead-band>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/aileron</property>
     <factor type="double">1.0</factor>
    <power type="int">2</power>
     <squared type="bool">true</squared>
  </binding>
 </axis>


Now I'm wondering if I need to rewrite it all like this or not since I use a custom configuration which enables me for example to open the in-game map or take a screenshot with a button on the stick.
Any help would be much appreciated.
Kind regards, Mav
Breakin' the sound barrier every day!

Scenery designer, basic livery maker, aircraft developer (current project: F-16).
Using Thrustmaster FCS Flight Pack.
Follow me also on Instagram & Twitter @j_maverick16, Google+ and YouTube.
User avatar
J Maverick 16
 
Posts: 758
Joined: Sat Feb 01, 2014 6:26 pm
Location: Northern Italy
Callsign: J-Mav16, OPFOR96
Version: 2019.1.1
OS: macOS 10.12

Re: New joystick code format?

Postby sim » Tue May 29, 2018 6:15 pm

Not necessary Maverick. My AV8R-01 joystick has 6 modifier states and lots of unusual button scripts too. My self built
AV8R-01 xml file has moved through all the versions of Flightgear since 2009 up to the latest 2018.1.1 version with no problems other than having to edit the xml internal <name>------</name> which changed a few times over the years. :wink:

<PropertyList>
<name type="string">Saitek AV8R joystick</name>
<name type="string">Saitek Pacific AV8R Stick for PC</name>
<name type="string">Saitek Aviator Stick</name>
<name type="string">Microsoft PC-joystick driver</name> was the name Flightgear recognised in 2009
works fine on very early Flightgear Version: 0.9.10 8)
User avatar
sim
 
Posts: 1440
Joined: Tue Jun 30, 2009 2:13 pm
Location: Shropshire England
Callsign: Fly4Fun
Version: 0.9.10 up
OS: 64 Win 10 HD6450

Re: New joystick code format?

Postby ich666 » Fri Aug 30, 2019 8:34 am

@ Maverick
Could you post your whole file? Did you get left break and additional wheel on the TWCS Throttle to work?
ich666
 
Posts: 1
Joined: Fri Aug 30, 2019 8:13 am

Re: New joystick code format?

Postby J Maverick 16 » Fri Sep 06, 2019 4:37 pm

Hi, yes I managed to make them work. Right now I'm using a custom configuration tailored to the F-16 controls and buttons, so if you tell me what you specifically need I can send you the file.
Regards, Mav
Breakin' the sound barrier every day!

Scenery designer, basic livery maker, aircraft developer (current project: F-16).
Using Thrustmaster FCS Flight Pack.
Follow me also on Instagram & Twitter @j_maverick16, Google+ and YouTube.
User avatar
J Maverick 16
 
Posts: 758
Joined: Sat Feb 01, 2014 6:26 pm
Location: Northern Italy
Callsign: J-Mav16, OPFOR96
Version: 2019.1.1
OS: macOS 10.12


Return to Hardware

Who is online

Users browsing this forum: BLEXBot [Bot] and 6 guests