|
|
Line 102: |
Line 102: |
| {{#ev:youtube|x-JPzLox-gI|300}} | | {{#ev:youtube|x-JPzLox-gI|300}} |
|
| |
|
| == POV hat binding example ==
| |
| <syntaxhighlight lang="xml">
| |
| <!-- Bottom stick hat -->
| |
| <axis>
| |
| <number>
| |
| <mac>7</mac>
| |
| <unix>7</unix>
| |
| <windows>6</windows>
| |
| </number>
| |
| <desc>View Direction</desc>
| |
| <binding>
| |
| <command>property-scale</command>
| |
| <property>/data/hat-H</property>
| |
| <factor type="double">-1.0</factor>
| |
| </binding>
| |
| <binding>
| |
| <command>nasal</command>
| |
| <script>
| |
| <![CDATA[
| |
| var hat_H = getprop("/data/hat-H");
| |
| fgcamera.point.adjust("h", hat_H);
| |
| ]]>
| |
| </script>
| |
| </binding>
| |
| </axis>
| |
|
| |
| <axis>
| |
| <number>
| |
| <mac>8</mac>
| |
| <unix>8</unix>
| |
| <windows>7</windows>
| |
| </number>
| |
| <desc>View Elevation</desc>
| |
| <binding>
| |
| <command>property-scale</command>
| |
| <property>/data/hat-V</property>
| |
| <factor type="double">1.0</factor>
| |
| </binding>
| |
| <binding>
| |
| <command>nasal</command>
| |
| <script>
| |
| <![CDATA[
| |
| var hat_V = getprop("/data/hat-V");
| |
| fgcamera.point.adjust("p", hat_V);
| |
|
| |
| ]]>
| |
| </script>
| |
| </binding>
| |
| </axis>
| |
| </syntaxhighlight>
| |
|
| |
| == Used TrackIR and PPJoy (virtual joystick) combination ==
| |
| <syntaxhighlight lang="xml">
| |
| <?xml version="1.0"?>
| |
|
| |
| <PropertyList>
| |
| <axis n="0">
| |
| <desc>6DOFYaw</desc>
| |
| <tolerance>0.00001</tolerance>
| |
| <binding>
| |
| <command>property-scale</command>
| |
| <property>/sim/TrackIR/heading-deg</property>
| |
| <factor type="double">-180.0</factor>
| |
| </binding>
| |
| </axis>
| |
|
| |
| <axis n="1">
| |
| <desc>6DOFPitch</desc>
| |
| <tolerance>0.00001</tolerance>
| |
| <binding>
| |
| <command>property-scale</command>
| |
| <property>/sim/TrackIR/pitch-deg</property>
| |
| <factor type="double">-100.0</factor>
| |
| </binding>
| |
| </axis>
| |
|
| |
| <axis n="2">
| |
| <desc>6DOFRoll</desc>
| |
| <tolerance>0.00001</tolerance>
| |
| <binding>
| |
| <command>property-scale</command>
| |
| <property>/sim/TrackIR/roll-deg</property>
| |
| <factor type="double">-100.0</factor>
| |
| </binding>
| |
| </axis>
| |
|
| |
| <axis n="3">
| |
| <desc>6DOFX</desc>
| |
| <tolerance>0.00001</tolerance>
| |
| <binding>
| |
| <command>property-scale</command>
| |
| <property>/sim/TrackIR/x-m</property>
| |
| <factor type="double">-0.5</factor>
| |
| </binding>
| |
| </axis>
| |
|
| |
| <axis n="4">
| |
| <desc>6DOFY</desc>
| |
| <tolerance>0.00001</tolerance>
| |
| <binding>
| |
| <command>property-scale</command>
| |
| <property>/sim/TrackIR/y-m</property>
| |
| <factor type="double">0.5</factor>
| |
| </binding>
| |
| </axis>
| |
|
| |
| <axis n="5">
| |
| <desc>6DOFZ</desc>
| |
| <tolerance>0.00001</tolerance>
| |
| <binding>
| |
| <command>property-scale</command>
| |
| <property>/sim/TrackIR/z-m</property>
| |
| <factor type="double">0.5</factor>
| |
| </binding>
| |
| </axis>
| |
|
| |
| </PropertyList>
| |
|
| |
| <!-- end of PPJoy.xml -->
| |
| </syntaxhighlight>
| |
|
| |
|
| == Support == | | == Support == |