Board index FlightGear Support Hardware

Joystick xml codes Library project - open for contributions  Topic is solved

Joysticks, pedals, monitors.

Re: Joystick xml codes Library project - open for contributi

Postby SurferTim » Sat Nov 16, 2019 12:02 am

Joystick file for Bodner BU0836. It has the 8 axis and 12 digital entries. Only a few assigned as examples.
In /Input/Joysticks , I created a folder named "Bodnar". In that folder goes this file named BU0836.xml
Code: Select all
<?xml version="1.0"?>

<PropertyList>
  <name type="string">Leo Bodnar Electronics BU0836 Interface</name>
  <axis>
    <desc type="string">Aileron</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/aileron</property>
      <factor type="double">1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="1">
    <desc type="string">Elevator</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/elevator</property>
      <factor type="double">1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="2">
    <desc type="string">Axis 2</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string"></property>
      <setting type="double">0</setting>
    </binding>
    <low>
      <binding>
      </binding>
    </low>
  </axis>
  <axis n="3">
    <desc type="string">Axis 3</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string"></property>
      <setting type="double">0</setting>
    </binding>
    <low>
      <binding>
      </binding>
    </low>
  </axis>
  <axis n="4">
    <desc type="string">Axis 4</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string"></property>
    </binding>
    <low>
      <binding>
      </binding>
    </low>
  </axis>
  <axis n="5">
    <desc type="string">Axis 5</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string"></property>
    </binding>
    <low>
      <binding>
      </binding>
    </low>
  </axis>
  <axis n="6">
    <desc type="string">Axis 6</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string"></property>
    </binding>
    <low>
      <binding>
      </binding>
    </low>
  </axis>
  <axis n="7">
    <desc type="string">Axis 7</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string"></property>
    </binding>
    <low>
      <binding>
      </binding>
    </low>
  </axis>
  <button>
    <desc type="string">View Cycle Forwards</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">view.stepView(1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="1">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">setprop("/controls/lighting/flight-comp", 1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">setprop("/controls/lighting/flight-comp", 0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="2">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">property-toggle</command>
      <property type="string">/controls/lighting/flight-comp</property>
    </binding>
    <mod-up>
      <binding>
      </binding>
    </mod-up>
  </button>
  <button n="3">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string"></script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding>
      </binding>
    </mod-up>
  </button>
  <button n="4">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string"></script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding>
      </binding>
    </mod-up>
  </button>
  <button n="5">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string"></script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding>
      </binding>
    </mod-up>
  </button>
  <button n="6">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string"></script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding>
      </binding>
    </mod-up>
  </button>
  <button n="7">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string"></script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding>
      </binding>
    </mod-up>
  </button>
  <button n="8">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string"></script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding>
      </binding>
    </mod-up>
  </button>
  <button n="9">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string"></script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding>
      </binding>
    </mod-up>
  </button>
  <button n="10">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string"></script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding>
      </binding>
    </mod-up>
  </button>
  <button n="11">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string"></script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding>
      </binding>
    </mod-up>
  </button>
</PropertyList>
Fly low, fly slow, land on a dime. Twin Otter DHC6-300+.
SurferTim
 
Posts: 722
Joined: Sun Dec 09, 2018 5:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2019.2.0
OS: Ubuntu 18.04

Previous

Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests