Writing Joystick Code: Part 4: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 15: Line 15:
There's a problem though. Different operating systems assign different numbers to the axes. Let's say that with a your joystick, Windows says that the Aileron axis is number 0, and Macs and Linux say it is axis 2. We have to change our format of the axis definition to
There's a problem though. Different operating systems assign different numbers to the axes. Let's say that with a your joystick, Windows says that the Aileron axis is number 0, and Macs and Linux say it is axis 2. We have to change our format of the axis definition to
   <axis>
   <axis>
     <win>0</win>
     <number>
    <mac>2</mac>
      <win>0</win>
    <unix>2</unix>
      <mac>2</mac>
      <unix>2</unix>
    </number>
     <desc>Aileron</desc>
     <desc>Aileron</desc>
     <binding>
     <binding>
    ...
      ...
    </binding>
   </axis>
   </axis>


224

edits

Navigation menu