Petit truc pour se faire un profil directement dans DCS pour son joy préféré et si on a pas de warthog.
Voici comment bidouiller le fichier input.
Ces fichiers sont trouvable dans "C:\Users\vot'nom\Saved Games\DCS\Config\Input\aéronef\joystick
C'est valable pour DCS World, et aussi dans DCS-A10, DCS-BS2.
Certaines commandes sont un interrupteur à trois position (exemple le boatSwitch du A10)
Sur mon cougar, j'associe le boatSwitch au bouton DogFight, qui est un interupteur trois position on-off-on.
Dans les options de DCS, on ne peut qu'associer deux fonction pour mon inter car quand on choisi tel bouton pour telle commande, il ne prend en compte que l'appuie.
Cela est ensuite modifiable dans le fichier input.
initialement, le boatSwitch apparait comme ça dans le fichier input :
CODE
{down = iCommandPlane_HOTAS_BoatSwitchAft, name = "HOTAS Boat Switch Aft", category = "HOTAS"},
{down = iCommandPlane_HOTAS_BoatSwitchCenter, name = "HOTAS Boat Switch Center", category = "HOTAS"},
{down = iCommandPlane_HOTAS_BoatSwitchForward, name = "HOTAS Boat Switch Forward", category = "HOTAS"},
Dans les options de DCS, j'associe une position de mon inter DogFight au boatSwitchAft, et une autre à la position BoatSwitch Forward.
Dans le fichier input, ça donne ça :
CODE
{combos = {{key = "JOY_BTN25"}, }, down = iCommandPlane_HOTAS_BoatSwitchAft, name = "HOTAS Boat Switch Aft", category = "HOTAS"},
{down = iCommandPlane_HOTAS_BoatSwitchCenter, name = "HOTAS Boat Switch Center", category = "HOTAS"},
{combos = {{key = "JOY_BTN26"}, }, down = iCommandPlane_HOTAS_BoatSwitchForward, name = "HOTAS Boat Switch Forward", category = "HOTAS"},
résultat, je pousse mon inter je suis sur boat switch forward, je me met au centre, rien ne se passe, je le place en position arrière, le boaSwitch passe directement en position AFT, et si je repasse au centre, il reste dans cette position.
La solution est simple, dans le fichier input, il y a "down = commande" pour dire quand j'appuie, il se passe ça.
Si on ajoute "up = commande", on aura la possibilité d'ajouter une commande au relaché de la touche, donc pour mon interupteur trois position, mon retour au centre correspondra au up du bouton 25 et au up du bouton 26.
On modifie donc comme ça :
CODE
{combos = {{key = "JOY_BTN25"}, }, down = iCommandPlane_HOTAS_BoatSwitchAft, up = iCommandPlane_HOTAS_BoatSwitchCenter, name = "HOTAS Boat Switch Aft", category = "HOTAS"},
{down = iCommandPlane_HOTAS_BoatSwitchCenter, name = "HOTAS Boat Switch Center", category = "HOTAS"},
{combos = {{key = "JOY_BTN26"}, }, down = iCommandPlane_HOTAS_BoatSwitchForward, up = iCommandPlane_HOTAS_BoatSwitchCenter, name = "HOTAS Boat Switch Forward", category = "HOTAS"},
et ça roule.
J'ai fait ça pour le boatswitch, le pinkySwitch et aussi pour les flaps.
L'intéret c'est de pouvoir se passer d'un logiciel annexe pour gérer un profil.