Changes

Jump to: navigation, search

Writing Joystick Code: Part 4

1,445 bytes added, 05:36, 15 October 2012
no edit summary
<axis>
<number>
<winwindows>0</win>
<mac>2</mac>
<unix>2</unix>
Now the joystick will work with all operating systems.
 
Except!! Sometimes an axis works upside down in some operating systems. Here is an example of what to do if the hat works opposite ways
in Linux and Windows. Note the swapping around of - signs between the 2 OSs. Add <mac> to which ever one is correct for the Mac.
<axis>
<number>
<unix>6</unix>
</number>
<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">1.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">-1.0</step>
</binding>
</high>
</axis>
<axis>
<number>
<windows>7</windows>
</number>
<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">-1.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">1.0</step>
</binding>
</high>
</axis>
 
Top Stick Hat win ? unix 8 mac 8
I have listed this because the mac Mac axis numbers are newly available'
As you can see, win numbers still missing. The ones I have are just a guess.
--------------------------------------------------
224
edits

Navigation menu