Board index FlightGear Support Hardware

New joystick code format?

Joysticks, pedals, monitors.

New joystick code format?

Postby J Maverick 16 » Fri May 25, 2018 5: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 (KC-137R, F-16, A330, C-32J, MH-60)
Flying with Thrustmaster FCS Flight Pack + MFD Cougar
Aviation media on IG at: @j_maverick16.aviation
User avatar
J Maverick 16
 
Posts: 910
Joined: Sat Feb 01, 2014 7:26 pm
Location: Northern Italy
Callsign: J-Mav16
Version: 2020.3.19
OS: macOS

Re: New joystick code format?

Postby sim » Tue May 29, 2018 7: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: 1431
Joined: Tue Jun 30, 2009 3: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 9: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 9:13 am

Re: New joystick code format?

Postby J Maverick 16 » Fri Sep 06, 2019 5: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 (KC-137R, F-16, A330, C-32J, MH-60)
Flying with Thrustmaster FCS Flight Pack + MFD Cougar
Aviation media on IG at: @j_maverick16.aviation
User avatar
J Maverick 16
 
Posts: 910
Joined: Sat Feb 01, 2014 7:26 pm
Location: Northern Italy
Callsign: J-Mav16
Version: 2020.3.19
OS: macOS


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests