La patrouille de france Flightgear
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Le Deal du moment :
Fnac : 2 Funko Pop achetées : le 3ème ...
Voir le deal

Banque de données Joystick

+2
Patten
Alexis
6 participants

Aller en bas

banque de donnée - Banque de données Joystick Empty Banque de données Joystick

Message  Alexis Sam 1 Oct 2011 - 8:25

Salut,
Alors beaucoup de gens on retouchés ou carrément réécrit le fichier xml de leur joystick. D'autres sont à la recherche d'un nouveau fichier qui offre des possibilités différentes, où d'autres fonctions sont attribuées aux touches. Ce que je vous propose ici de réunir ici tout ces fichiers pour les partager aux autres utilisateurs. A chaque questions concernant la configuration d'un joystick, il sera redirigé ici. Alors si vous souhaitez partager votre travail, je vous propose de m'envoyer ici, ou par message privé les différentes info suivantes :
- Modèle de votre joystick
- fichier xml : entre des balises code ou tout simplement hébergé sur le net, il y aura un lien de téléchargement ici tout simplement parce qu'il y a une limite de nombre de caractères par messages sur le forum, une dizaine de fichier xml ne passera pas entre des balises code.
- Liste des touches et des fonctions attribuées, peut-être sous forme de schéma, ça serait intéressant d'avoir une image du joystick légendée.
Bien entendu j'indiquerais que vous en êtes l'auteur, et votre fichier doit être libre de droit (licence GPL) pour apparaitre ici, pas de copyright chez nous !

Voici la liste des fichier actuellement disponible, classés suivant le modèle de joystick :



  • Logitech Extreme Digital 3D Pro




Auteur : Thiriot Christian alias "Patten", "Pattenzinc"
Description :
* Axis 0: ailerons
* Axis 1: elevator
* Axis 2 (twist): Palonnier
* Axis 3 (slider): Accélérateur
* Axes 4 and 5 (hat): Vues circulaires
*
* Boutons nommés sur le joystick:
* Gachette: Freins
* Bouton 2: Push and talk (pour FG com) (pas testé)
* Bouton 3: Sortir et rentrer les trains d'atterrissage
* Bouton 4: Sortir les volets (par crans avec affichage en degrés sur l'écran)
* Bouton 6: Rentrer les volets (par crans avec affichage en degrés sur l'écran)
* Bouton 5: Frein de parking
* Bouton 7: Contact magnétos
* Bouton 8: Démarreur
* Bouton 9: Cycles HUD
* Bouton 10: Inversion de poussée (Affichage ON-OFF à l'écran)
* Bouton 11: Changement de vues
* Bouton 12: Vue cockpit

Téléchagement ICI




Merci de me signaler un éventuel lien mort.


Dernière édition par Alexis le Sam 1 Oct 2011 - 14:25, édité 1 fois
Alexis
Alexis
Admin

Messages : 2067
Date d'inscription : 19/02/2009
Age : 31
Localisation : Loire Atlantique

http://fgalexis.jimdo.com/

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  Patten Sam 1 Oct 2011 - 14:13

Bonjour à tous,

Allez, je m'y colle:
************************************************************************
* Thiriot Christian..."Patten", "Pattenzinc" Avril 2011
*
*Pour Joystick Logitech Extreme Digital 3D Pro.*
*
* Axis 0: ailerons
* Axis 1: elevator
* Axis 2 (twist): Palonnier
* Axis 3 (slider): Accélérateur
* Axes 4 and 5 (hat): Vues circulaires
*
* Boutons nommés sur le joystick:
* Gachette: Freins
* Bouton 2: Push and talk (pour FG com) (pas testé)
* Bouton 3: Sortir et rentrer les trains d'atterrissage
* Bouton 4: Sortir les volets (par crans avec affichage en degrés sur l'écran)
* Bouton 6: Rentrer les volets (par crans avec affichage en degrés sur l'écran)
* Bouton 5: Frein de parking
* Bouton 7: Contact magnétos
* Bouton 8: Démarreur
* Bouton 9: Cycles HUD
* Bouton 10: Inversion de poussée (Affichage Inversion ON-OFF à l'écran)
* Bouton 11: Changement de vues
* Bouton 12: Vue cockpit
************************************************************************
Le fichier XML ICI

Very Happy
Patten
Patten
Pilote de chasse

Messages : 3233
Date d'inscription : 16/01/2011
Age : 69

http://pattenflightgear.wifeo.com/

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  algajojo Sam 1 Oct 2011 - 17:30

et voici le mien :
saitek X52 + palonniers
joystick : http://dl.free.fr/uXrGTnklX
palonniers : http://dl.free.fr/uk5rgHA8G

je n'ai pas eu le temps de commenter et de nettoyer les fichiers Embarassed Embarassed
promis juré une 2ème version viendra !!!!!!! santa
amicalement
georges
algajojo
algajojo
Pilote de jet

Messages : 775
Date d'inscription : 17/10/2010
Age : 65
Localisation : Chelles LFPH

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  Tigre 439 Sam 1 Oct 2011 - 19:43

Voici la configuration que j'utilise avec mon Thrustmaster T. Flight Hotas X

banque de donnée - Banque de données Joystick Joystick

J'ai communiqué avec Syd Adams l'auteur du DHC-2 et le DHC-6 pour faire quelques modifications au DHC-6 pour ce joystick. Le bouton 8 qui est juste à droite du "toggle switch" change l'angle des hélices...

Quand on atterri et qu'on recule la manette des gaz complètement, on peut ensuite cliquer sur le bouton 8 et ensuite la manette deviens en "reverse pitch" c'est très utile pour faire des atterrissages ultra courts. Very Happy
************************************************************************
* Bindings for T.Flight Hotas X joystick
*
*
* Axis 0: ailerons
* Axis 1: elevator
* Axis 3: rudder (stick twist)
* Axis 2: throttle
* Axis 4: rudder (toggle switch on throttle)
* Axis 6: hat l/r
* Axis:7: hat up/down
*
* Button 0: all brakes
* Button 1: change view
* Button 2: elevator trim down
* Button 3: elevator trim up
* Button 4: flap down
* Button 5: flap up
* Button 6: flap down
* Button 7: gear up/down
* Button 8: reverse pitch
************************************************************************





Le fichier XML ICI
Tigre 439
Tigre 439
Qui lui a confié le hindenburg ?

Messages : 87
Date d'inscription : 22/09/2011
Age : 60
Localisation : St-Georges-de-Beauce, Québec, Canada (CYSG)

http://www.flightgearcanada.ca

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  Patten Sam 26 Nov 2011 - 18:17

J'ai reçu mon yoke Saitek aujourd'hui, quel pied.

Bon, il faut s'y faire, mais c'est vraiment bien.
Sur les photos, çà semble être un joujou, mais c'est un véritable instrument qui me paraît assez solide, à part peut-être les 3 manettes de gaz, pas d'hélice, et mixture à ménager.

J'ai commencé à didouiller le xml:
-Inversion des boutons de volets et trains (pour ne pas être trop dépaysé par rapport à mon joystick)
-Affichage des degrés de flaps
Si quelqu'un parmi vous a personnalisé le sien, je serai assez tenté de tester sa config cheers .
Mon fichier:
Code:
<?xml version="1.0"?>
<!-- Saitek Pro Flight Yoke

  Christian Thiriot "Patten" modifié le 26 Novembre 2011
  -En test
-->
<PropertyList>
 <name>Saitek Saitek Pro Flight Yoke</name>
 <name>Saitek Pro Flight Yoke</name>

 <axis n="0">
  <desc>Aileron</desc>
  <binding>
  <command>property-scale</command>
  <property>/controls/flight/aileron</property>
  <squared type="bool">true</squared>
  </binding>
 </axis>
 <axis n="1">
  <desc>Elevator</desc>
  <binding>
  <command>property-scale</command>
  <property>/controls/flight/elevator</property>
  <factor type="double">-1.0</factor>
  <squared type="bool">true</squared>
  </binding>
 </axis>
 <!-- Throttle Quadrant -->
 <axis n="2">
  <desc>Throttle</desc>
  <binding>
  <command>nasal</command>
  <script>controls.throttleAxis()</script>
  </binding>
 </axis>
 <axis n="3">
  <desc>Prop Pitch</desc>
  <binding>
  <command>nasal</command>
  <script>controls.propellerAxis()</script>
  </binding>
 </axis>
 <axis n="4">
  <desc>Mixture </desc>
  <binding>
  <command>nasal</command>
  <script>controls.mixtureAxis()</script>
  </binding>
 </axis>

 <axis n="5">
  <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">1.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">-1.0</step>
  </binding>
  </high>
 </axis>

 <axis n="6">
  <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>
 <!-- Buttons on the Yoke -->
 <button n="0">
    <desc>Cycle View</desc>
    <repeatable>false</repeatable>
    <binding>
        <command>nasal</command>
        <script>view.stepView(1)</script>
    </binding>
 </button>
 <button n="1"> <!-- Labled as D -->
  <desc>Toggle parking break</desc>
  <binding>
  <command>property-toggle</command>
  <property>/controls/gear/brake-parking</property>
  </binding>
 </button>
 <button n="2"> <!-- Labled as A1 -->
  <desc>Elevator trim down</desc>
  <repeatable>true</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.elevatorTrim(0.75)</script>
  </binding>
 </button>
 <button n="3"> <!-- Labled as A2 -->
  <desc>Elevator trim up</desc>
  <repeatable>true</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.elevatorTrim(-0.75)</script>
  </binding>
 </button>
 <button n="4"> <!-- Labled as B1 -->
  <desc>Zoom In</desc>
  <repeatable>true</repeatable>
  <binding>
  <command>property-adjust</command>
  <property>/sim/current-view/field-of-view</property>
  <step type="double">-0.5</step>
  </binding>
 </button>
 <button n="5"> <!-- LAbled as B2 -->
  <desc>Zoom Out</desc>
  <repeatable>true</repeatable>
  <binding>
  <command>property-adjust</command>
  <property>/sim/current-view/field-of-view</property>
  <step type="double">+0.5</step>
  </binding>
 </button>
 <button n="6"> <!-- Labled as C1 -->
  <desc>Aileron trim left</desc>
  <repeatable>true</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.aileronTrim(-0.75)</script>
  </binding>
 </button>
 <button n="7"> <!-- Labled as C2 -->
  <desc>Aileron trim right</desc>
  <repeatable>true</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.aileronTrim(0.75)</script>
  </binding>
 </button>

  <!-- Buttons on the throttle Quadrant -->
 <button n="16"> <!-- Labled as T1 -->
  <desc>Flaps up</desc>
  <repeatable>false</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.flapsDown(-1);
gui.popupTip(sprintf("Volets: %d deg", 30*getprop("/controls/flight/flaps")+0.1)); 
</script>
  </binding>
  <mod-up>
  <binding>
    <command>nasal</command>
    <script>controls.flapsDown(0);
gui.popupTip(sprintf("Volets: %d deg", 30*getprop("/controls/flight/flaps")+0.1)); 
</script>
  </binding>
  </mod-up>
 </button>
 <button n="17"> <!-- Labled as T2 -->
  <desc>Flaps down</desc>
  <repeatable>false</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.flapsDown(1);
gui.popupTip(sprintf("Volets: %d deg", 30*getprop("/controls/flight/flaps")+0.1)); 
</script>
  </binding>
  <mod-up>
  <binding>
    <command>nasal</command>
    <script>controls.flapsDown(0);
gui.popupTip(sprintf("Volets: %d deg", 30*getprop("/controls/flight/flaps")+0.1)); 
</script>
  </binding>
  </mod-up>
 </button>
 <button n="14"> <!-- Labled as T3 -->
  <desc>Gear up</desc>
  <repeatable>false</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.gearDown(-1)</script>
  </binding>
  <mod-up>
  <binding>
    <command>nasal</command>
    <script>controls.gearDown(0)</script>
  </binding>
  </mod-up>
 </button>
 <button n="15"> <!-- Labled as T4 -->
  <desc>Gear down</desc>
  <repeatable>false</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.gearDown(1)</script>
  </binding>
  <mod-up>
  <binding>
    <command>nasal</command>
    <script>controls.gearDown(0)</script>
  </binding>
  </mod-up>
 </button>
 <button n="18">
    <desc>Cycle View</desc>
    <repeatable>false</repeatable>
    <binding>
        <command>nasal</command>
        <script>view.stepView(0)</script>
    </binding>
 </button>

 
 <button n="19"> <!-- Labled as T6 -->
    <desc>Cycle HUD</desc>
    <repeatable>false</repeatable>
    <binding>
        <command>nasal</command>
        <script> aircraft.HUD.cycle_color();</script>
    </binding>
    <mod-up>
        <binding>
            <command>nasal</command>
            <script> aircraft.HUD.cycle_color();</script>
        </binding>
    </mod-up>
 </button>
 <button n="20">
  <desc>thrust reverse</desc>
    <repeatable type="bool">false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
          props.setAll("/controls/engines/engine", "reverser", 1);
          props.setAll("/controls/engines/engine", "throttle", 1);
          gui.popupTip("Thrust reverse on!");
      </script>
    </binding>
    <mod-up>
      <binding>
        <command>nasal</command>
        <script>
            props.setAll("/controls/engines/engine", "reverser", 0);
            props.setAll("/controls/engines/engine", "throttle", 0);
            gui.popupTip("Thrust reverse off!");
        </script>
      </binding>
    </mod-up>
        </button>
</PropertyList>

PS: Je n'arrive pas à faire afficher "Freins ON" et Freins OFF" le cas échéant Sad

Very Happy
Patten
Patten
Pilote de chasse

Messages : 3233
Date d'inscription : 16/01/2011
Age : 69

http://pattenflightgear.wifeo.com/

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  Patten Jeu 22 Déc 2011 - 0:53

algajojo a écrit:et voici le mien :
saitek X52 + palonniers
joystick : http://dl.free.fr/uXrGTnklX
palonniers : http://dl.free.fr/uk5rgHA8G

je n'ai pas eu le temps de commenter et de nettoyer les fichiers Embarassed Embarassed
promis juré une 2ème version viendra !!!!!!! santa
amicalement
georges

up

Sujet qui pourrait s’avérer très utile, sauf que les liens sont morts (merci Free).

Jojo est-t-il possible d'avoir le fichier ici (dans la mesure ou il est différent de celui par défaut pour le X52 hein?)

Code:


Merci par avance, j'ai reçu mon cable ps2 mm pour le X52, pour la voltige le X52, c'est le must Wink

Very Happy
Patten
Patten
Pilote de chasse

Messages : 3233
Date d'inscription : 16/01/2011
Age : 69

http://pattenflightgear.wifeo.com/

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  algajojo Jeu 22 Déc 2011 - 1:14

aussitôt demandé aussitôt servi Very Happy Very Happy
le js
Code:

<?xml version="1.0"?>
<!--
Only a few stick controls have been mapped here:
 + "Rocker" switch:    Rudder
 + Top rotary dial:    Mixture
 + Bottom rotary dial:  Prop Advance
 + Top stick hat:      Elevator & Aileron trim
 + Bottom stick hat:    View direction
 + Top throttle hat:    Flaps & Rudder trim
 + Stick button "A":    Gear toggle
 + Stick button "C":    Reset view (hackish)

Linux/Windows/Mac Axis Numbers:
  0     Roll (positive == right)
  1     Pitch (positive == down/back/nose-up)
  2/5/5 top "rotary dial" on the throttle (positive == CCW)
  3     Rocker switch ("rudder" control) on the throttle (positive == right)
  4/2/2 Throttle (positive == back/down/idle)
  5/4/4 Bottom "rotary dial" on the throttle (positive == CW)
     Strange this axis doesn't seem to exist on Mac OS X!
  6/6/6 Lower right hat horizontal axis (positive == right)
  7/7/7 Lower right hat vertical axis (positive == down (Mac positive is UP))

Button Numbers (Identical b/w Linux/Windows/Mac):
 0  Trigger
 1  Stick top "A" switch
 2  Stick top "B" switch
 3  Stick top "launch/fire" switch
 4  Throttle "D" switch
 5  Throttle "mouse" switch (tiny black thumb button)
 6  Stick "pinkie" switch
 7  Stick front "C" switch
 8  -+                                left position  ("M1")
 9  +- Throttle "mode" 3-way switch: middle position ("M2")
10  -+                                right position  ("M3")
11  -+                                left position
12  +- Throttle "Aux" 3-way switch:  middle position
13  -+                                right position
14  Upper left hat in "up" position
15  Upper left hat in "right" position
16  Upper left hat in "down" position
17  Upper left hat in "left" position
18  Throttle forefinger hat in "up/back" position
19  Throttle forefinger hat in "right" position
20  Throttle forefinger hat in "down/forward" position
21  Throttle forefinger hat in "left" position
22  Throttle thumb hat in "up" position
23  Throttle thumb hat in "right" position
24  Throttle thumb hat in "down" position
25  Throttle thumb hat in "left" position
gui.popupTip("Gear up!");
$Id$
-->
<PropertyList>
 
 <name>Saitek X52</name>
 <name>Saitek X52 Flight Controller USB</name>
 <name>Saitek X52 Flight Controller</name>
 <name>Saitek X52 Flight Control Stick </name>
 <name>Saitek X52 Flight Stick (USB)</name>
 <name>Saitek X52 Flight Control System</name>
 <name>Saitek Saitek X52</name>
 <name>Saitek Saitek X52 Flight Stick (USB)</name>
 <name>Saitek Saitek X52 Flight Control Stick </name>
 <name>Saitek Saitek X52 Flight Control System</name>

 <axis n="0">
  <desc>Aileron</desc>
  <binding>
  <command>property-scale</command>
  <property>/controls/flight/aileron</property>
  <squared type="bool">true</squared>
  </binding>
 </axis>

 <axis n="1">
  <desc>Elevator</desc>
  <binding>
  <command>property-scale</command>
  <property>/controls/flight/elevator</property>
  <factor type="double">-1.0</factor>
  <squared type="bool">true</squared>
  </binding>
 </axis>
<!--
<axis n="3">
  <desc>Rudder</desc>
  <dead-band type="double">0.02</dead-band>
  <binding>
  <command>property-scale</command>
  <property>/controls/flight/rudder</property>
  <offset type="double">0.001</offset>
  <factor type="double">0.5</factor>
  </binding>

  <binding>
  <command>nasal</command>
  <script><![CDATA[
    # In mode 3 (taxiing), map the wheelbrakes
    if(getprop("/input/joysticks/js[0]/saitek-x45-mode") == 3) {
        val = cmdarg().getNode("setting").getValue();
        setprop("/controls/gear/brake-left", 0);
        setprop("/controls/gear/brake-right", 0);
        if(val > 0) { setprop("/controls/gear/brake-right", val); }
        else        { setprop("/controls/gear/brake-left", -val); }
    }
  ]]></script>
  </binding>
 </axis>
-->
 <!-- View Direction Hat -->

 <axis n="6">
  <number>
  <unix>7</unix>
  <mac>6</mac>
  <windows>6</windows>
  </number>
  <desc>vue horizontale</desc>
  <low>
  <repeatable>true</repeatable>
  <binding>
  <factor type="double">0.5</factor>
    <command>nasal</command>
    <script>view.panViewDir(1)</script>
  </binding>
  </low>
  <high>
  <repeatable>true</repeatable>
  <binding>
  <factor type="double">0.5</factor>
    <command>nasal</command>
    <script>view.panViewDir(-1)</script>
  </binding>
  </high>
 </axis>

 <axis>
  <desc>vue verticale</desc>
  <number>
  <unix>8</unix>
  <mac>7</mac>
  <windows>7</windows>
  </number>
  <low>
  <repeatable>true</repeatable>
  <binding>
  <factor type="double">0.5</factor>
    <command>nasal</command>
    <script> gui.popupTip("axe 7 low");
         view.panViewPitch(1);</script>
  </binding>
  </low>
  <high>
  <repeatable>true</repeatable>
  <binding>
  <factor type="double">0.5</factor>
    <command>nasal</command>
    <script> gui.popupTip("axe 7 high");
         view.panViewPitch(-1);</script>
  </binding>
  </high>
 </axis>

 <axis>
  <desc>Throttle</desc>
  <number>
  <unix>2</unix>
  <mac>2</mac>
  <windows>2</windows>
  </number>
  <binding>
  <command>nasal</command>
  <script>controls.throttleAxis()</script>
  </binding>
 </axis>

 <axis>
  <desc>Mixture</desc>
  <number>
  <unix>3</unix>
  <mac>5</mac>
  <windows>5</windows>
  </number>
  <binding>
  <command>nasal</command>
  <script>controls.mixtureAxis()</script>
  </binding>
 </axis>

 <axis>
  <desc>Propeller Advance</desc>
  <number>
  <unix>4</unix>
  <mac>4</mac>
  <windows>4</windows>
  </number>
  <binding>
  <command>nasal</command>
  <script>controls.propellerAxis(-1)</script>
  </binding>
 </axis>

<!-- <button n="4">
  <desc>Reset View</desc>
  <binding>
  <command>nasal</command>
  <script>view.resetView()</script>
  </binding>
 </button>
-->

<button n="0">
  <desc>Brakes</desc>
  <binding>
  <command>nasal</command>
  <script>controls.applyBrakes(1)</script>
  </binding>
  <mod-up>
  <binding>
    <command>nasal</command>
    <script>controls.applyBrakes(0)</script>
  </binding>
  </mod-up>
 </button>

<button n="1">
  <desc>test mode</desc>
  <binding>
  <command>nasal</command>
  <script>
        mod = getprop("/config-jojo/js[0]/saitek-x52-mode");
      if (mod == 1) {
                  gui.popupTip("mode 1!");   
      } elsif (mod == 2) {
                  gui.popupTip("mode 2!");
      } elsif (mod == 3) {
                  gui.popupTip("mode 3!");
      }
      
   </script>
  </binding>
  <mod-up>
  <binding>
    <command>nasal</command>
    <script>
        mod = getprop("/config-jojo/js[0]/saitek-x52-mode");
      if (mod == 1) {
                  gui.popupTip("mode 1!");   
      } elsif (mod == 2) {
                  gui.popupTip("mode 2!");
      } elsif (mod == 3) {
                  gui.popupTip("mode 3!");
      }
   </script>
  </binding>
  </mod-up>
 </button>



 <button n="2">
  <desc>Decrease flaps</desc>
  <binding>
  <command>nasal</command>
  <script>controls.flapsDown(-1);
          gui.popupTip("volets up!");
</script>
  </binding>
  <mod-up>
  <binding>
    <command>nasal</command>
    <script>controls.flapsDown(0)</script>
  </binding>
  </mod-up>
 </button>

 <button n="3">
  <desc>Increase flaps</desc>
  <binding>
  <command>nasal</command>
  <script>controls.flapsDown(1);
           gui.popupTip("volets down!");
</script>
  </binding>
  <mod-up>
  <binding>
    <command>nasal</command>
    <script>controls.flapsDown(0)</script>
  </binding>
  </mod-up>
 </button>



 <button n="4">
  <desc>Landing Gear Up/Down Toggle</desc>
  <binding>
  <command>nasal</command>
  <script>controls.gearToggle()</script>
  </binding>
 </button>

 <button n="5">
  <desc>Toggle parking brake on or off</desc>
  <binding>
    <command>property-toggle</command>
    <property>/controls/gear/brake-parking</property>
  </binding>
 </button>

<button n="6">
  <desc>selecteur megneto</desc>
  <repeatable type="bool">false</repeatable>
  <binding>
  <command>nasal</command>
  <script>
      <![CDATA[
        l = getprop("/controls/engines/engine/magnetos");
         if (l == 0)
         {
             props.setAll("/controls/engines/engine", "magnetos", 1);
         }
         elsif ( l == 1 )
         {
             props.setAll("/controls/engines/engine", "magnetos", 2);
         }
         elsif ( l == 2 )
         {
             props.setAll("/controls/engines/engine", "magnetos", 3);
         }
         elsif ( l == 3 )
         {
              props.setAll("/controls/engines/engine", "magnetos", 0);
         }
      ]]>
  </script>
  </binding>
 </button>

 <button n="7">
  <desc>Fire Starter on Selected Engine(s)</desc>
   <repeatable type="bool">true</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.startEngine(1)</script>
  </binding>
  <mod-up>
  <binding>
    <command>nasal</command>
    <script>controls.startEngine(0)</script>
  </binding>
  </mod-up>
 </button>

 <button n="8">
  <desc>Rudder trim left</desc>
   <repeatable type="bool">false</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.rudderTrim(-1);
         gui.popupTip("rudder trim gauche!");
</script>
  </binding>
 </button>

 <button n="9">
  <desc>Rudder trim right</desc>
   <repeatable type="bool">false</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.rudderTrim(1);
          gui.popupTip("rudder trim droite!");
</script>
  </binding>
 </button>

 
 <button n="10">
  <desc>Elevator trim up</desc>
   <repeatable type="bool">false</repeatable>
  <binding>
  <command>nasal</command>
  <script>
     controls.elevatorTrim(-0.5);
     gui.popupTip("elev trim haut!");
  </script>
  </binding>
 </button>

 <button n="11">
  <desc>Elevator trim down</desc>
   <repeatable type="bool">false</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.elevatorTrim(0.5);
        gui.popupTip("elev trim bas!");
  </script>
  </binding>
 </button>

  <button n="12">
  <desc>Aileron trim left</desc>
   <repeatable type="bool">false</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.aileronTrim(-0.5);
          gui.popupTip("aileron trim gauche!");
  </script>
  </binding>
 </button>

 <button n="13">
  <desc>Aileron trim right</desc>
   <repeatable type="bool">false</repeatable>
  <binding>
  <command>nasal</command>
  <script>controls.aileronTrim(0.5);
           gui.popupTip("aileron trim droit!");
</script>
  </binding>
 </button>

<!-- <button n="13">
  <desc>Decrease speedbrake</desc>
  <binding>
  <command>property-assign</command>
  <property>/controls/flight/speedbrake</property>
  <value>0</value>
  </binding>
 </button> 
 <button n="21">
  <desc>PTT - Push To Talk (via FGCom)</desc>
  <binding>
  <command>nasal</command>
  <script>space(1, modifiers.getValue())</script>
  </binding>
  <mod-up>
  <binding>
    <command>nasal</command>
    <script>space(0, modifiers.getValue())</script>
  </binding>
  </mod-up>
 <mod-shift>
  <binding>
    <command>nasal</command>
    <script>space(1, modifiers.getValue())</script>
  </binding>
  <mod-up>
    <binding>
    <command>nasal</command>
    <script>space(0, modifiers.getValue())</script>
    </binding>
  </mod-up>
  </mod-shift>
 </button>

<button n="12">
  <desc>Increase speedbrake</desc>
  <binding>
  <command>property-assign</command>
  <property>/controls/flight/speedbrake</property>
  <value>1</value>
  </binding>
 </button> -->
 
   <button n="21">
    <desc>PTT - Push To Talk</desc>
    <binding>
     <command>nasal</command>
     <script>controls.ptt(1)</script>
    </binding>
    <mod-up>
     <binding>
     <command>nasal</command>
     <script>controls.ptt(0)</script>
     </binding>
    </mod-up>
   </button>
   
<!-- mode switch (buttons 23-25) -->

 <button n="23">
  <desc>Mode 1</desc>
  <binding>
  <command>nasal</command>
  <script>
    setprop("/config-jojo/js[0]/saitek-x52-mode", 1);
    gui.popupTip("bouton 23");
  </script>
  </binding>
 </button>

 <button n="24">
  <desc>Mode 2</desc>
  <binding>
  <command>nasal</command>
  <script>
    setprop("/config-jojo/js[0]/saitek-x52-mode", 2);
    gui.popupTip("bouton 24"); 
  </script>
  </binding>
 </button>

 <button n="25">
  <desc>Mode 3</desc>
  <binding>
  <command>nasal</command>
  <script>
    setprop("/config-jojo/js[0]/saitek-x52-mode", 3);
    gui.popupTip("bouton 25");   
  </script>
  </binding>
 </button>

<button n="29">
   <desc>inversion poussee</desc>
   <repeatable type="bool">false</repeatable>
   <binding>
      <command>nasal</command>
      <script>
            reverser = !getprop("/controls/engines/engine[0]/reverser");
            props.setAll("/controls/engines/engine", "reverser", reverser);
            if (reverser) {
               gui.popupTip("Thrust Reverser ON");
            } else {
               gui.popupTip("Thrust Reverser OFF");
            }
         
      </script>
   </binding>
</button>


</PropertyList>

ATTENTION AUX CHEMINS QUI CORRESPONDENT A MA CONFIG

palonniers :
Code:

<?xml version="1.0"?>

<!--
************************************************************************
* Setup for Saitek Pro Flight Rudder Pedals.
*
* These are USB rudder pedals with toe brakes.  Bindings are as
* follow:
*
* Axis 0 (left pedal): left brake
* Axis 1 (right pedal): right brake
* Axis 2 (sliding both pedals): rudder (and nosewheel)
************************************************************************
$Id$
-->

<PropertyList>

 <name>Saitek Pro Flight Rudder Pedals</name>
 <name>Saitek Saitek Pro Flight Rudder Pedals</name>

 <axis n="0">
  <desc>Brake left</desc>
  <binding>
  <command>property-scale</command>
  <property>/controls/gear/brake-left</property>
  <offset>1.0</offset>
  <factor>0.5</factor>
  </binding>
 </axis>

 <axis n="1">
  <desc>Brake right</desc>
  <binding>
  <command>property-scale</command>
  <property>/controls/gear/brake-right</property>
  <offset>1.0</offset>
  <factor>0.5</factor>
  </binding>
 </axis>

 <axis n="2">
  <number>
  <windows>3</windows>
  <mac>2</mac>
  <unix>2</unix>
  </number>
  <desc>Rudder</desc>
  <binding>
  <command>property-scale</command>
  <property>/controls/flight/rudder</property>
  <factor>1.0</factor>
  <offset>0.0</offset>
  <power type="double">2.0</power>
  </binding>
 </axis>

</PropertyList>

si tu as une question, n'hésites pas Cool Cool
amicalement
georges
algajojo
algajojo
Pilote de jet

Messages : 775
Date d'inscription : 17/10/2010
Age : 65
Localisation : Chelles LFPH

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  Patten Jeu 22 Déc 2011 - 1:20

algajojo a écrit:aussitôt demandé aussitôt servi Very Happy Very Happy
le js

si tu as une question, n'hésites pas Cool Cool
amicalement
georges

Saint Cloud béret Basque.

Very Happy
Patten
Patten
Pilote de chasse

Messages : 3233
Date d'inscription : 16/01/2011
Age : 69

http://pattenflightgear.wifeo.com/

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  Patten Jeu 22 Déc 2011 - 1:26

mod = getprop("/config-jojo/js[0]/saitek-x52-mode");

Je suis censé mettre quel chemin chez moi (un exemple).

Very Happy

Patten
Patten
Pilote de chasse

Messages : 3233
Date d'inscription : 16/01/2011
Age : 69

http://pattenflightgear.wifeo.com/

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  algajojo Jeu 22 Déc 2011 - 8:47

patten a écrit: mod = getprop("/config-jojo/js[0]/saitek-x52-mode");

Je suis censé mettre quel chemin chez moi (un exemple).

Very Happy

alors scratch study
Idea le chemin du fichier xml (chez moi fgdata\config-jojo\x52.xml)
par contre il faut que je relise la doc car d'un seul coup, sorti du contexte, ça me parait bizarre Sad Sad
j'avais commencé à travailler la dessus (molette à droite sur le js) pour configurer 3 fonctions sur le même bouton
mais impossible de le faire correctement gérer avec windaube What a Face
amicalement
georges
algajojo
algajojo
Pilote de jet

Messages : 775
Date d'inscription : 17/10/2010
Age : 65
Localisation : Chelles LFPH

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  Patten Jeu 22 Déc 2011 - 13:18

Bonjour à tous,
Merci JOJO.

Very Happy
Patten
Patten
Pilote de chasse

Messages : 3233
Date d'inscription : 16/01/2011
Age : 69

http://pattenflightgear.wifeo.com/

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  F-JJTH Jeu 22 Déc 2011 - 19:30

Bonjour à tous,

J'utilise uniquement le pédalier d'un Microsoft Sidewinder Precision Racing Wheel en tant que palonnier. Celui-ci n'existe pas dans FG :
Code:

<?xml version="1.0"?>
<!--
************************************************************************
* Bindings for Microsoft SideWinder Precision Racing Wheel joystick.
* Axis 1:                        rudder
* Axis 2:                        rudder
************************************************************************
$Id$
-->

<PropertyList>
 <name>Microsoft SideWinder Precision Racing Wheel USB version 1.0</name>

 <axis n="1">
  <desc>Rudder Right</desc>
  <number>
    <unix>1</unix>
    <mac>1</mac>
    <windows>2</windows>
  </number>
  <binding>
    <command>property-scale</command>
    <property>/controls/flight/rudder</property>
    <factor type="double">-0.5</factor>
    <offset type="double">-1.0</offset>
    <squared type="bool">true</squared>
  </binding>
 </axis>

 <axis n="2">
  <desc>Rudder Left</desc>
  <number>
    <unix>2</unix>
    <mac>2</mac>
    <windows>3</windows>
  </number>
  <binding>
    <command>property-scale</command>
    <property>/controls/flight/rudder</property>
    <factor type="double">0.5</factor>
    <offset type="double">-1.0</offset>
    <squared type="bool">true</squared>
  </binding>
 </axis>
</PropertyList>

Et j'utilise un ThrustMaster T-Flight X-Hotas que j'ai modifier comme ceci :
- L'axe N°4 ne sert plus à regarder à gauche et à droite, il permet de freiner à gauche ou à droite plus ou moins fort selon si l'on appuie plus ou moins
- Le bouton "SE" est utilisé pour afficher la Map (la Map disparaît si on relâche le bouton)*
- La gâchette ne fait que freiner (elle ne réinitialise plus la vue)

Code:

<?xml version="1.0"?>
<!--
Joystick binding for ThrustMaster T.Flight Hotas X
Adrien Bailly

Original file by 'flug':
http://www.flightgear.org/forums/viewtopic.php?f=2&t=5517


Axis #  (direction)        mapped to
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
axis 0:  (left-right)        aileron
axis 1:  (forward-backward)  elevator
axis 2:  (slider)            throttle
axis 3:  (twist)            rudder
axis 4:  (top hat)          view left/right

Note that internally, FG numbers buttons starting with 0.  The markings on the
HOTAS-X start with Button 1, and I have used the HOTAS-X number markings below:

Button #    Location              Function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
button 1:  (joystick R1)          Brakes & reset view
button 2:  (joystick L1)          Push-To-Talk (for fgcom)
button 3:  (joystick R3)          Trim nose down
button 4:  (joystick L3)          Trim nose up

NO MODIFIER:
  button 5:  (throttle)    Flaps up
  button 6:  (throttle)    Flaps down
  button 7:  (throttle)    Gear up/down
  button 8:  (throttle)    Switch view

MODIFIER 1 (keep button R2 down):
  button 5:  (throttle)    Mixture rich
  button 6:  (throttle)    Mixture lean
  button 7    (throttle)    Propeller coarse
  button 8:  (throttle)    Propeller fine

MODIFIER 2 (keep button L2 down):
  button 5:  (throttle)    Battery ON/OFF
  button 6:  (throttle)    Fuel selector
  button 7    (throttle)    Magnetos
  button 8:  (throttle)    ???

MODIFIER 1+2 (keep buttons L2 and R2 down):
  button 5:  (throttle)    ???
  button 6:  (throttle)    ???
  button 7    (throttle)    ???
  button 8:  (throttle)    ???

button 9:  (throttle R2)  Modifier 1
button 10:  (throttle L2)  Modifier 2

button SE:  (base SE)      ???
button ST:  (base ST)      ???

HAT SWITCH
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
With the rocker switch and throttle twist controlling view direction, it is easy
to look all around in different directions.
-->

<PropertyList>
  <name type="string">T.Flight Hotas X</name>
  <name type="string">Hotas X</name>
  <name type="string">Thrustmaster Hotas X</name>
  <name type="string">Thrustmaster T.Flight Hotas X</name>
  <nasal>
      <script>
        <![CDATA[
        setprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1", 0);
        setprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2", 0);
        ]]>
      </script>
  </nasal>
   
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~ Axis Bindings ~~~~~~~~~~~~~~~~~~~~~~~~ -->
  <axis n="0">
      <desc>Joystick: Aileron</desc>
      <binding>
        <command>property-scale</command>
        <property>/controls/flight/aileron</property>
        <factor type="double">1.0</factor>
        <power type="double">1.0</power>
      </binding>
  </axis>

  <axis n="1">
      <desc>Joystick: Elevator</desc>
      <binding>
        <command>property-scale</command>
        <property>/controls/flight/elevator</property>
        <factor type="double">-1.0</factor>
        <power type="double">1.0</power>
      </binding>
  </axis>

  <axis n= "2">
      <desc>Throttle</desc>
      <binding>
        <command>nasal</command>
        <script>controls.throttleAxis()</script>
      </binding>
  </axis>

  <axis n="3">
      <desc>Rudder</desc>
      <binding>
        <command>property-scale</command>
        <property>/controls/flight/rudder</property>
        <power type="double">1.0</power>
      </binding>
  </axis>

  <!-- Throttle rocker switch axis pans l/r -->
  <!--<axis n="4">
      <desc>Throttle rocker switch: View Left/Right</desc>
      <dead-band type="double">0.05</dead-band>
      <binding>
        <command>property-scale</command>
        <property>/sim/current-view/heading-offset-deg</property>
        <factor type="double">-180</factor>
        <power type="double">1.2</power>
      </binding>
  </axis>-->

  <axis n="4">
    <desc>Brake left and right</desc>
    <dead-band type="double">0.02</dead-band>
    <binding>     
      <command>nasal</command>
      <script>
      <![CDATA[
        var brakeCmd = getprop("input/joysticks/js[1]/axis[4]/binding/setting");
        if(brakeCmd <= 0){setprop("controls/gear/brake-left", brakeCmd*brakeCmd);}
        if(brakeCmd >= 0){setprop("controls/gear/brake-right", brakeCmd);}
      ]]>
      </script>
    </binding>
  </axis>

  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~ Hat Switch ~~~~~~~~~~~~~~~~~~~~~~~~ -->
  <axis n="5">
      <desc>Hat Switch: View Direction (use mod buttons for different effects)</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>Hat Switch: View Elevation (use mod buttons for different effects)</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 Bindings ~~~~~~~~~~~~~~~~~~~~~~~~ -->

  <!-- Trigger (R1) -->
  <button n="0">
      <desc>Button R1(1) (trigger): Brakes + reset to pilot view</desc>
      <repeatable type="bool">true</repeatable>
      <binding>
        <command>nasal</command>
        <script>
            controls.applyBrakes(1.0);
        </script>
      </binding>
      <mod-up>
      <binding>
        <command>nasal</command>
        <script>
            controls.applyBrakes(0.0);
        </script>
      </binding>
      </mod-up>
  </button>

  <!-- Button right of Hat switch, Labeled L1(2) -->
  <button n="1">
      <desc>Button L1(2) (joystick center): Push-To-Talk (for fgcom)</desc>
      <binding>
        <command>nasal</command>
        <script>
            controls.ptt(1); # push-to-talk (fgcom) ON
        </script>
      </binding>
      <mod-up>
        <binding>
            <command>nasal</command>
            <script>
                controls.ptt(0); # push-to-talk (fgcom) OFF
            </script>
        </binding>
      </mod-up>
  </button>


  <!-- Front button, right of trigger, (R3) -->
  <button n="2">
      <desc>Button R3(3): Elevator trim down</desc>
      <repeatable type="bool">true</repeatable>
      <binding>
        <command>nasal</command>
        <script>
            controls.elevatorTrim(1);
            gui.popupTip(sprintf("Elevator trim: %d", 100 * getprop("/controls/flight/elevator-trim")));
        </script>
      </binding>
  </button>


  <!-- Button far right of Hat switch, Labeled L3(4) -->
  <button n="3">
      <desc>Button L3(4): Elevator trim down</desc>
      <repeatable type="bool">true</repeatable>
      <binding>
        <command>nasal</command>
        <script>
            controls.elevatorTrim(-1);
            gui.popupTip(sprintf("Elevator trim: %d", 100 * getprop("/controls/flight/elevator-trim")));
        </script>
      </binding>
  </button>


  <!-- Throttle Button labeled 5 -->
  <button n="4">
      <desc>Button (5): Flaps up / Mixture rich / Battery on-off / ???</desc>
      <repeatable type="bool">false</repeatable>
      <binding>
        <command>nasal</command>
        <script>
            mod1 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1");
            mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");         
            if(mod1==0 and mod2==0) {
              controls.flapsDown(-1);
              gui.popupTip(sprintf("Flaps: %d deg", 30*getprop("/controls/flight/flaps")+0.1));
            }
            elsif(mod1==1 and mod2==0) {
              controls.adjMixture(10);
              gui.popupTip(sprintf("Mixture rich"));
            }
            elsif(mod1 == 0 and mod2==1) {
              j = getprop("/controls/electric/battery-switch");
              if(j == 0) { 
                  setprop("/controls/electric/battery-switch", 1);
                  gui.popupTip(sprintf("Battery ON"));
              } else {
                  setprop("/controls/electric/battery-switch", 0);
                  gui.popupTip(sprintf("Battery OFF"));
              }
            }
            elsif(mod1==1 and mod2==1) {
           
            }
        </script>
      </binding>
      <mod-up>
        <binding>
            <command>nasal</command>
            <script>
              mod1 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1");
              mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");         
              if(mod1==0 and mod2==0) {
                  controls.flapsDown(0);
                  gui.popupTip(sprintf("Flaps: %d deg", 30*getprop("/controls/flight/flaps")+0.1));
              }
              elsif(mod1==1 and mod2==0) {
                  # mixture
              }
              elsif(mod1 == 0 and mod2==1) {
                 
              }
              elsif(mod1==1 and mod2==1) {
             
              }             
            </script>
        </binding>
      </mod-up>
  </button> 

  <!-- Throttle Button labeled 6 -->
  <button n="5">
      <desc>Button (6): Flaps down / Mixture lean / Fuel selector / ???</desc>
      <repeatable type="bool">false</repeatable>
      <binding>
        <command>nasal</command>
        <script>
            mod1 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1");
            mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");           
            if(mod1==0 and mod2==0) {
              controls.flapsDown(1);
              gui.popupTip(sprintf("Flaps: %d deg", 30*getprop("/controls/flight/flaps")+0.1));
            }
            elsif(mod1==1 and mod2==0) {
              controls.adjMixture(-10);
              gui.popupTip(sprintf("Mixture lean"));
            }
            elsif(mod1 == 0 and mod2==1) {
              k = getprop("/controls/fuel/tank/fuel_selector");
              if (k == 0) {
                  setprop("/controls/fuel/tank/fuel_selector", 1);
                  setprop("/controls/engines/engine/fuel-pump", 1);
              } else {
                  setprop("/controls/fuel/tank/fuel_selector", 0);
                  setprop("/controls/engines/engine/fuel-pump", 0);
              }
            }
            elsif(mod1==1 and mod2==1) {
           
            }               
        </script>
      </binding>
      <mod-up>
        <binding>
            <command>nasal</command>
            <script>
              mod1 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1");
              mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");           
              if(mod1==0 and mod2==0) {
                  controls.flapsDown(0);
                  gui.popupTip(sprintf("Flaps: %d deg", 30*getprop("/controls/flight/flaps")+0.1));
              }
              elsif(mod1==1 and mod2==0) {
                  # mixture
              }
              elsif(mod1 == 0 and mod2==1) {
             
              }
              elsif(mod1==1 and mod2==1) {
             
              }               
            </script>
        </binding>
      </mod-up>
  </button> 

  <!-- Throttle Button labeled 7 (circle)-->
  <button n="6">
      <desc>Button (7): Landing Gear Toggle / Propeller coarse / Magnetos / ???</desc>
      <repeatable type="bool">false</repeatable>
      <binding>
        <command>nasal</command>
        <script>
            mod1 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1");
            mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");           
            if(mod1==0 and mod2==0) {
              controls.gearToggle();
            }
            elsif(mod1==1 and mod2==0) {
              controls.adjPropeller(10);
              gui.popupTip(sprintf("Propeller coarse"));
            }
            elsif(mod1 == 0 and mod2==1) {
              l = getprop("/controls/engines/engine/magnetos");
              if (l == 0) {
                  props.setAll("/controls/engines/engine", "magnetos", 1);
              } elsif ( l == 1 ) {
                  props.setAll("/controls/engines/engine", "magnetos", 2);
              } elsif ( l == 2 ) {
                  props.setAll("/controls/engines/engine", "magnetos", 3);
              } elsif ( l == 3 ) {
                  props.setAll("/controls/engines/engine", "magnetos", 0);
              }
            }
            elsif(mod1==1 and mod2==1) {
           
            }               
        </script>
      </binding>
      <mod-up>
        <binding>
            <command>nasal</command>
            <script>
              mod1 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1");
              mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");         
              if(mod1==0 and mod2==0) {
                  # gear
              }
              elsif(mod1==1 and mod2==0) {
                  # propeller
              }
              elsif(mod1 == 0 and mod2==1) {
                  # magnetos
              }
              elsif(mod1==1 and mod2==1) {
             
              }               
            </script>
        </binding>
      </mod-up>
  </button>
 
  <!-- Throttle Button labeled 8 (triangle) -->
  <button n="7">
      <desc>Button (8): Switch view / Propeller fine / Starter / ???</desc>
      <repeatable type="bool">false</repeatable>
      <binding>
        <command>nasal</command>
        <script>
            mod1 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1");
            mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");           
            if(mod1==0 and mod2==0) {
              view.stepView(1);
            }
            elsif(mod1==1 and mod2==0) {
              controls.adjPropeller(-10);
              gui.popupTip(sprintf("Propeller fine"));
            }
            elsif(mod1==0 and mod2==1) {
              setprop("/controls/engines/engine/starter", 1);
              setprop("/controls/engines/engine[1]/starter", 1);
              setprop("/controls/engines/engine[2]/starter", 1);
              setprop("/controls/engines/engine[3]/starter", 1);
              setprop("/controls/engines/engine[4]/starter", 1);
              gui.popupTip(sprintf("Cranking..."));
            }
            elsif(mod1==1 and mod2==1) {
           
            }               
        </script>
      </binding>
      <mod-up>
        <binding>
            <command>nasal</command>
            <script>
              mod1 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1");
              mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");           
              if(mod1==0 and mod2==0) {
                  # switch views
              }
              elsif(mod1==1 and mod2==0) {
                  # propeller
              }
              elsif(mod1==0 and mod2==1) {
                  setprop("/controls/engines/engine/starter", 0);
                  setprop("/controls/engines/engine[1]/starter", 0);
                  setprop("/controls/engines/engine[2]/starter", 0);
                  setprop("/controls/engines/engine[3]/starter", 0);
                  setprop("/controls/engines/engine[4]/starter", 0);
              }
              elsif(mod1==1 and mod2==1) {
             
              }               
            </script>
        </binding>
      </mod-up>
  </button> 
 
  <!-- Throttle Button labeled R2(9) -->
  <button n="8">
      <desc>Button R2(9): Modifier 1</desc>
      <repeatable type="bool">false</repeatable>
      <binding>
        <command>nasal</command>
        <script>
            setprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1", 1);
        </script>
      </binding>
      <mod-up>
        <binding>
            <command>nasal</command>
            <script>
              setprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1", 0);
            </script>
        </binding>
      </mod-up>
  </button>
 
  <!-- Throttle Button labeled L2(10) -->
  <button n="9">
      <desc>Button L2(10): Modifier2</desc>
      <repeatable type="bool">false</repeatable>
      <binding>
        <command>nasal</command>
        <script>
            setprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2", 1);
        </script>
      </binding>
      <mod-up>
        <binding>
            <command>nasal</command>
            <script>
              setprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2", 0);
            </script>
        </binding>
      </mod-up>
  </button>
 
  <!-- Base Button SE -->
  <button n="10">
      <desc>Button SE: ???</desc>
      <repeatable type="bool">false</repeatable>
      <binding>
        <command>dialog-show</command>
        <dialog-name>map</dialog-name>
      </binding>
      <mod-up>
        <binding>
          <command>dialog-close</command>
          <dialog-name>map</dialog-name>
        </binding>
      </mod-up>
  </button> 
 
  <!-- Base Button ST -->
  <button n="11">
      <desc>Button ST: ???</desc>
      <repeatable type="bool">false</repeatable>
      <binding>
        <command>nasal</command>
        <script>
            gui.popupTip(sprintf("Button n=11 unused"));
        </script>
      </binding>
  </button> 
</PropertyList>

Amicalement,
Clément
F-JJTH
F-JJTH
Pilote de Ligne

Messages : 2010
Date d'inscription : 19/01/2011
Age : 35
Localisation : Carpentras - LFNH

http://www.clemaez.fr/flightgear

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  Patten Mar 4 Fév 2014 - 11:30

Salut à tous,

Bien que l'on puisse configurer son JS à sa sauce "en live" dans Fg, je complète un peu la banque de donnée avec le fichier pour le Yoke de Saitek, çà peut donner des idées à d'autres...

En relisant en diagonale ce thread, je note que l'inversion du pas d'hélices existait dans le DHC6 à une époque.

Code:
<?xml version="1.0"?>

<PropertyList>
  <name type="string">UNUSED INVALID CONFIG</name>
  <axis>
    <desc type="string">Aileron</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/aileron</property>
      <dead-band type="double">0</dead-band>
      <factor type="double">1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="1">
    <desc type="string">Elevator</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/elevator</property>
      <dead-band type="double">0</dead-band>
      <factor type="double">-1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="2">
    <desc type="string">Throttle</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.throttleAxis();</script>
    </binding>
  </axis>
  <axis n="3">
    <desc type="string">Propeller</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.propellerAxis();</script>
    </binding>
  </axis>
  <axis n="4">
    <desc type="string">Mixture</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.mixtureAxis();</script>
    </binding>
  </axis>
  <axis n="5">
    <number>
      <unix type="string">5</unix>
      <windows type="string">6</windows>
    </number>
    <desc type="string">View Direction</desc>
    <low>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">property-adjust</command>
        <property type="string">/sim/current-view/goal-heading-offset-deg</property>
        <step type="double">1</step>
      </binding>
    </low>
    <high>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">property-adjust</command>
        <property type="string">/sim/current-view/goal-heading-offset-deg</property>
        <step type="double">-1</step>
      </binding>
    </high>
    <binding n="0" type="string">
    </binding>
    <binding n="0">
      <setting type="double">0</setting>
    </binding>
  </axis>
  <axis n="6">
    <number>
      <unix type="string">6</unix>
    </number>
    <desc type="string">View Elevation</desc>
    <low>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">property-adjust</command>
        <property type="string">/sim/current-view/goal-pitch-offset-deg</property>
        <step type="double">1</step>
      </binding>
    </low>
    <high>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">property-adjust</command>
        <property type="string">/sim/current-view/goal-pitch-offset-deg</property>
        <step type="double">-1</step>
      </binding>
    </high>
    <binding n="0" type="string">
    </binding>
    <binding n="0">
      <setting type="double">0</setting>
    </binding>
  </axis>
  <axis n="7">
    <number>
      <windows type="string">7</windows>
    </number>
    <desc type="string">View Elevation</desc>
    <low>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">property-adjust</command>
        <property type="string">/sim/current-view/goal-pitch-offset-deg</property>
        <step type="double">-1</step>
      </binding>
    </low>
    <high>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">property-adjust</command>
        <property type="string">/sim/current-view/goal-pitch-offset-deg</property>
        <step type="double">1</step>
      </binding>
    </high>
    <binding type="string">
    </binding>
  </axis>
  <button>
    <desc type="string">View Cycle Forwards</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">view.stepView(1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="1">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">property-toggle</command>
      <property type="string">/controls/gear/brake-parking</property>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="2">
    <desc type="string">Custom</desc>
    <repeatable type="string">true</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.elevatorTrim(0.75)</script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="3">
    <desc type="string">Custom</desc>
    <repeatable type="string">true</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.elevatorTrim(-0.75)</script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="4">
    <desc type="string">Custom</desc>
    <repeatable type="string">true</repeatable>
    <binding>
      <command type="string">property-adjust</command>
      <property type="string">/sim/current-view/field-of-view</property>
      <step type="double">-0.5</step>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="5">
    <desc type="string">Custom</desc>
    <repeatable type="string">true</repeatable>
    <binding>
      <command type="string">property-adjust</command>
      <property type="string">/sim/current-view/field-of-view</property>
      <step type="double">0.5</step>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="6">
    <desc type="string">Custom</desc>
    <repeatable type="string">true</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.aileronTrim(-0.75)</script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="7">
    <desc type="string">Custom</desc>
    <repeatable type="string">true</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.aileronTrim(0.75)</script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="14">
    <desc type="string">Flaps Up</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.flapsDown(-1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.flapsDown(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="15">
    <desc type="string">Flaps Down</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.flapsDown(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.flapsDown(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="16">
    <desc type="string">Gear Up</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.gearDown(-1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.gearDown(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="17">
    <desc type="string">Gear Down</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.gearDown(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.gearDown(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="18">
    <desc type="string">Spoilers Retract</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.stepSpoilers(-1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.stepSpoilers(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="19">
    <desc type="string">Spoilers Deploy</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.stepSpoilers(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.stepSpoilers(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="20">
    <desc type="string">Custom</desc>
    <repeatable type="bool">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">
                props.setAll("/controls/engines/engine", "reverser", 1);
                props.setAll("/controls/engines/engine", "throttle", 1);
                gui.popupTip("Thrust reverse on!");
            </script>
      <module type="string">__js2</module>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">
                    props.setAll("/controls/engines/engine", "reverser", 0);
                    props.setAll("/controls/engines/engine", "throttle", 0);
                    gui.popupTip("Thrust reverse off!");
                </script>
        <module type="string">__js2</module>
      </binding>
    </mod-up>
  </button>
</PropertyList>


Pour mon Saitek-X52-Flight-Control:

Code:
<?xml version="1.0"?>

<PropertyList>
  <name type="string">Saitek Saitek X52 Flight Control System</name>
  <axis>
    <desc type="string">Aileron</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/aileron</property>
      <dead-band type="double">0</dead-band>
      <factor type="double">1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="1">
    <desc type="string">Elevator</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/elevator</property>
      <dead-band type="double">0</dead-band>
      <factor type="double">-1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="2">
    <desc type="string">Throttle</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.throttleAxis();</script>
    </binding>
  </axis>
  <axis n="3">
    <desc type="string">Mixture</desc>
    <number>
      <unix type="string">3</unix>
      <mac type="string">5</mac>
      <windows type="string">5</windows>
    </number>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.mixtureAxis(-1)</script>
      <module type="string">__js0</module>
      <setting type="double">-1</setting>
    </binding>
    <low>
      <binding type="string">
      </binding>
    </low>
  </axis>
  <axis n="4">
    <desc type="string">unassigned (was: Propeller RPM)</desc>
    <number>
      <unix type="string">4</unix>
      <mac type="string">8</mac>
      <windows type="string">8</windows>
    </number>
    <binding>
      <command type="string">nasal</command>
      <script type="string">
    ####controls.propellerAxis(-1)
  </script>
      <module type="string">__js0</module>
      <setting type="double">1</setting>
    </binding>
    <low>
      <binding type="string">
      </binding>
    </low>
  </axis>
  <axis n="5">
    <desc type="string">Rudder</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/rudder</property>
      <dead-band type="double">0</dead-band>
      <factor type="double">1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="6">
    <desc type="string">Propeller RPM</desc>
    <number>
      <unix type="string">6</unix>
      <mac type="string">4</mac>
      <windows type="string">4</windows>
    </number>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.propellerAxis(-1)</script>
      <module type="string">__js0</module>
      <setting type="double">1</setting>
    </binding>
    <low>
      <binding type="string">
      </binding>
    </low>
  </axis>
  <axis n="7">
    <desc type="string">View Pan Left/Right (D-shift: move PoV)</desc>
    <number>
      <unix type="string">7</unix>
      <mac type="string">6</mac>
      <windows type="string">6</windows>
    </number>
    <low>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">nasal</command>
        <script type="string">
      if (getprop("/sim/gui/d-button")){
        setprop("/sim/current-view/x-offset-m",
     -0.01 + getprop("/sim/current-view/x-offset-m"));
      } else {
   view.panViewDir(1)
      }
    </script>
        <module type="string">__js0</module>
        <offset type="double">1</offset>
      </binding>
    </low>
    <high>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">nasal</command>
        <script type="string">
      if (getprop("/sim/gui/d-button")){
        setprop("/sim/current-view/x-offset-m",
     0.01 + getprop("/sim/current-view/x-offset-m"));
      } else {
   view.panViewDir(-1)
      }
    </script>
        <module type="string">__js0</module>
        <offset type="double">1</offset>
      </binding>
    </high>
    <binding type="string">
    </binding>
  </axis>
  <button>
    <desc type="string">Brakes</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.applyBrakes(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.applyBrakes(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="1">
    <desc type="string">FGCom PTT</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.ptt(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.ptt(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="2">
    <desc type="string">View Cycle Backwards</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">view.stepView(-1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="3">
    <desc type="string">View Cycle Forwards</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">view.stepView(1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="4">
    <desc type="string">Spoilers Deploy</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.stepSpoilers(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.stepSpoilers(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="5">
    <desc type="string">Brakes</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.applyBrakes(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.applyBrakes(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="6">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">
    setprop("/sim/gui/d-button", 1);
  </script>
      <module type="string">__js0</module>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">
      setprop("/sim/gui/d-button", 0);
    </script>
        <module type="string">__js0</module>
      </binding>
    </mod-up>
  </button>
  <button n="8">
    <desc type="string">Flaps Up</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.flapsDown(-1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.flapsDown(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="9">
    <desc type="string">Flaps Down</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.flapsDown(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.flapsDown(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="10">
    <desc type="string">Gear Up</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.gearDown(-1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.gearDown(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="11">
    <desc type="string">Gear Down</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.gearDown(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.gearDown(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="12">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">
      if ( getprop("/sim/gui/d-button") ) {
        props.setAll("/controls/engines/engine", "cowl-flaps-norm", 1);
      } else {
        props.setAll("/controls/engines/engine", "carb-heat", 0);
      }
    </script>
      <module type="string">__js0</module>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="13">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">
      if ( getprop("/sim/gui/d-button") ) {
        props.setAll("/controls/engines/engine", "cowl-flaps-norm", 0);
      } else {
        props.setAll("/controls/engines/engine", "carb-heat", 1);
      }
    </script>
      <module type="string">__js0</module>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="14">
    <desc type="string">Trigger</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.trigger(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.trigger(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="15">
    <desc type="string">Elevator Trim Down</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.elevatorTrim(1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="16">
    <desc type="string">Aileron Trim Right</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.aileronTrim(1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="17">
    <desc type="string">Elevator Trim Up</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.elevatorTrim(-1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="18">
    <desc type="string">Aileron Trim Left</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.aileronTrim(-1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="20">
    <desc type="string">Custom</desc>
    <repeatable type="bool">true</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.aileronTrim(0.5)</script>
      <module type="string">__js0</module>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="22">
    <desc type="string">Custom</desc>
    <repeatable type="bool">true</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.aileronTrim(-0.5)</script>
      <module type="string">__js0</module>
    </binding>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="23">
    <desc type="string">Brakes</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.applyBrakes(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.applyBrakes(0);</script>
      </binding>
    </mod-up>
  </button>
</PropertyList>

 Very Happy
Patten
Patten
Pilote de chasse

Messages : 3233
Date d'inscription : 16/01/2011
Age : 69

http://pattenflightgear.wifeo.com/

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  Red_Echo Ven 14 Fév 2014 - 0:28

Bonjour,
Pour ceux qui aiment les vieilleries, j'utilise un antique et vénérable Logitech WingMan Attck 2.
Configuré comme suit :
   

  • Axis 0: ailerons
  • Axis 1: elevator
  • Axis 2 (slider): throttle

  • Button 0 (01 trigger): All brakes
  • Button 1 (02): Elevator trim up
  • Button 2 (03): Elevator trim down
  • Button 3 (04): Cycle Flaps (0, 1/3, 2/3, 1)
  • Button 4 (05): Left brake
  • Button 5 (06): Right brake


Vous pouvez le trouver sur mon Dropbox : https://dl.dropboxusercontent.com/u/32387076/wingman-attack-2.xml

Red_Echo
OVNI

Messages : 5
Date d'inscription : 12/02/2014

Revenir en haut Aller en bas

banque de donnée - Banque de données Joystick Empty Re: Banque de données Joystick

Message  Contenu sponsorisé


Contenu sponsorisé


Revenir en haut Aller en bas

Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum