Profil Warthog Il2

Salle dedieé aux péripheriques : Joystick, palloniers, Track-Ir

Topic author
skyraider
Nouvelle Recrue
Nouvelle Recrue
Messages : 16
Inscription : 25 juin 2007

Profil Warthog Il2

#1

Message par skyraider »

Salut à tous

Mon profile pour TARGET EDITOR

Les touches sont à parametrer dans il2
(Suivre les remarques, attention à l'UMD)

include "target.tmh" //here we link this file to the file that contains the default Thrustmaster function code

int main()
{
if(Init(&EventHandle)) return 1; // declare the event handler, return on error
//script and function functions go here and before the }

MapAxis(&Joystick, JOYX, DX_X_AXIS);
MapAxis(&Joystick, JOYY, DX_Y_AXIS);
MapAxis(&Throttle, THR_LEFT, DX_ZROT_AXIS);
MapAxis(&Throttle, THR_RIGHT, DX_Z_AXIS);
MapAxis(&Throttle, SCX, DX_XROT_AXIS);
MapAxis(&Throttle, SCY, DX_YROT_AXIS);
MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS);



SetShiftButton(&Joystick, S3, &Throttle, PSF, PSB);
// Gun
MapKeyUMD( &Joystick,
TG1,
USB[0X28],
USB[0X2C],0);
MapKeyUMD( &Joystick, S2,USB[0X2A],USB[0X59],0);

// Flap
MapKeyIO(&Joystick,S1,'f','v');

// Start Motor
// Touche * selectionner tout les moteurs
MapKey( &Throttle,
EOLIGN,
CHAIN( PULSE+'1',
D(100),
PULSE+'i',
D(100),
PULSE+
USB[0x55])
); // Attribuer touche 1 pour selection moteur 1


MapKey( &Throttle,
EORIGN,
CHAIN( PULSE+'2',
D(100),
PULSE+'i',
D(100),
PULSE+USB[0x55])
); // Attribuer touche 2 pour selection moteur 2

// Gear
MapKeyUMD(&Throttle, LDGH,0,0,'g');

// Flap2
MapKeyUMD( &Throttle,
FLAPD,
0,
0,
CHAIN( PULSE+'f',
PULSE+'f',
PULSE+'f',
PULSE+'f')
);//FLAP DOWN


MapKeyUMD( &Throttle,
FLAPU,
0,
0,
CHAIN( PULSE+'v',
PULSE+'v',
PULSE+'v',
PULSE+'v')
);//FLAP UP


MapKeyUMD( &Throttle,
FLAPM,
0,
0,
CHAIN( PULSE+'v',
PULSE+'v',
PULSE+'v',
PULSE+'v',
PULSE+'v',
PULSE+'v',
PULSE+'f')
);//FLAP TO

//Wep touche W
MapKey(&Throttle, LTB, PULSE+USB[0x1A]);


//Compresseur Numpad+/-
MapKey(&Throttle , CHB , PULSE+USB[0x56]);
MapKey(&Throttle , CHF , PULSE+USB[0x57]);


// Cockpit Light
MapKey(&Throttle, EACON, PULSE+'l');
MapKey(&Throttle, EACOFF, PULSE+'l');
// Nav Light
MapKey(&Throttle, RDRNRM, PULSE+'n');
MapKey(&Throttle, RDRDIS, PULSE+'n');

// TrackIR
MapKey(&Joystick, S4, PULSE+USB[0X45]);

KeyAxis( &Throttle,
THR_LEFT,
'um',
AXMAP2
(LIST(0,10,90,100),
CHAIN( PULSE+'v',
PULSE+'v',
PULSE+'v',
PULSE+'v',
PULSE+'v'),
CHAIN( PULSE+'f',
PULSE+'f',
PULSE+'f',
PULSE+'f',
PULSE+'f'),
0));


}
int EventHandle(int type, alias o, int x)
{
DefaultMapping(&o, x);
}
Avatar de l’utilisateur

Mad Fly
Pilote Philanthrope
Pilote Philanthrope
Messages : 4763
Inscription : 04 août 2001

#2

Message par Mad Fly »

merci de ta contribution, je vais peut être te piquer des idées ;)
"La vérité", a-t-on dit, "est la première victime de la guerre".
Préface de Philip Snowden in La Vérité et la Guerre par ED Morel, Londres, Juillet 1916

Image
Image
Image

Topic author
skyraider
Nouvelle Recrue
Nouvelle Recrue
Messages : 16
Inscription : 25 juin 2007

#3

Message par skyraider »

lol
Répondre

Revenir à « salle: Periphériques: Hotas, Joysticks, Track-IR »