1
0
Fork 0

Modernise view-direction axes for Logitech

- replace deprecated axes/long,lat with modern goal-offset properties.
This commit is contained in:
James Turner 2016-01-25 17:01:18 -06:00
parent 611a5ce40d
commit c3c246c3da
4 changed files with 134 additions and 47 deletions

View file

@ -80,31 +80,44 @@
</axis>
<!-- The next two axes are the view hat -->
<axis>
<desc>Lat-Hat</desc>
<number>
<unix>4</unix>
<mac>4</mac>
<windows>6</windows>
</number>
<axis n="4">
<desc>View Direction</desc>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-scale</command>
<property>/sim/current-view/axes/lat</property>
<command>property-adjust</command>
<property>/sim/current-view/goal-heading-offset-deg</property>
<step type="double">5.0</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-heading-offset-deg</property>
<step type="double">-5.0</step>
</binding>
</high>
</axis>
<axis>
<desc>Long-Hat</desc>
<number>
<unix>5</unix>
<mac>5</mac>
<windows>7</windows>
</number>
<axis n="5">
<desc>View Elevation</desc>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-scale</command>
<property>/sim/current-view/axes/long</property>
<command>property-adjust</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<step type="double">5.0</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<step type="double">-5.0</step>
</binding>
</high>
</axis>
<button n="0">

View file

@ -99,23 +99,49 @@ $Id$
</axis>
<!-- The next two axes are the view hat -->
<axis n="3">
<desc>View left/right</desc>
<binding>
<command>property-scale</command>
<property>/sim/current-view/axes/lat</property>
</binding>
<desc>View Direction</desc>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-heading-offset-deg</property>
<step type="double">5.0</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-heading-offset-deg</property>
<step type="double">-5.0</step>
</binding>
</high>
</axis>
<axis n="4">
<desc>View up/down</desc>
<binding>
<command>property-scale</command>
<property>/sim/current-view/axes/long</property>
</binding>
<desc>View Elevation</desc>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<step type="double">5.0</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<step type="double">-5.0</step>
</binding>
</high>
</axis>
<button n="0">
<desc>Brakes</desc>
<binding>

View file

@ -80,20 +80,45 @@ $Id$
</binding>
</axis>
<!-- view direction -->
<axis n="5">
<desc>View left/right</desc>
<binding>
<command>property-scale</command>
<property>/sim/current-view/axes/lat</property>
</binding>
<desc>View Direction</desc>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-heading-offset-deg</property>
<step type="double">5.0</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-heading-offset-deg</property>
<step type="double">-5.0</step>
</binding>
</high>
</axis>
<axis n="6">
<desc>View up/down</desc>
<binding>
<command>property-scale</command>
<property>/sim/current-view/axes/long</property>
</binding>
<desc>View Elevation</desc>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<step type="double">5.0</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<step type="double">-5.0</step>
</binding>
</high>
</axis>
<button n="0">

View file

@ -72,21 +72,44 @@ $Id$
</axis>
<!-- The next two axes are the view hat -->
<axis n="4">
<desc>View left</desc>
<desc>View Direction</desc>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-scale</command>
<property>/sim/current-view/axes/lat</property>
<command>property-adjust</command>
<property>/sim/current-view/goal-heading-offset-deg</property>
<step type="double">5.0</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-heading-offset-deg</property>
<step type="double">-5.0</step>
</binding>
</high>
</axis>
<axis n="5">
<desc>View right</desc>
<desc>View Elevation</desc>
<low>
<repeatable>true</repeatable>
<binding>
<command>property-scale</command>
<property>/sim/current-view/axes/long</property>
<command>property-adjust</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<step type="double">5.0</step>
</binding>
</low>
<high>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>/sim/current-view/goal-pitch-offset-deg</property>
<step type="double">-5.0</step>
</binding>
</high>
</axis>
<button n="3">