On Thu, 2009-03-26 at 17:31 -0300, franciscorc wrote:
> Hi everybody
> 
>  For those that don´t have a joystick whith a rudder axe.
> 
>  The game  IL2 Sturmovik uses two keys to control rudder, the same  as in 
> flight gear.
>  But there is a difference that I think make it much more easy to control  
> rudder.
>  In IL2 sturmovik YOU  press 2 keys to turn left and right , but when you 
> release a key it returns to center
> position automatically.This  make rudder control more easy and precise.What 
> do you think?
>  Is it possible to implement it in flight gEAR?
> 
> Best regards 
> 
> Francisco
> 
 

It should be fairly easy to do...  Open your keyboard.xml file and look
for the lines that look like this:

 <key n="13"> <!-- PLIB -->
  <name>Enter</name>
  <desc>Move rudder right</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
   <command>property-adjust</command>
   <property>/controls/flight/rudder</property>
   <step type="double">0.05</step>
  </binding>
 </key> 

Add a mod-up to the key tag so it looks like this:

 <key n="13"> <!-- PLIB -->
  <name>Enter</name>
  <desc>Move rudder right</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
   <command>property-adjust</command>
   <property>/controls/flight/rudder</property>
   <step type="double">0.05</step>
  </binding>
  <mod-up>
   <binding>
    <command>property-assign</command>
    <property>/controls/flight/rudder</property>
    <value>0</value>
   </binding>
  </mod-up> 
 </key> 

There are actually several of these "Move Rudder" entries for different
key numbers: 10, 13, 48, 269, 364.  Change all of them.  Also note the
<step> value for 48 and 364 is negative




------------------------------------------------------------------------------
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to