Hi,
I'm trying to use the T.A.R.G.E.T software to make a macro for PIPs.
I run the script and then launch Elite to set my bindings but somehow the throttle and pitch axis are seen as the same thing by Elite
Anyone knows what's going on here?
In case it helps, here is the script built by the Visual editor:
I'm trying to use the T.A.R.G.E.T software to make a macro for PIPs.
I run the script and then launch Elite to set my bindings but somehow the throttle and pitch axis are seen as the same thing by Elite
Anyone knows what's going on here?
In case it helps, here is the script built by the Visual editor:
Code:
include "target.tmh"int main()
{
Configure(&HCougar, MODE_EXCLUDED);
Configure(&Joystick, MODE_EXCLUDED);
Configure(&Throttle, MODE_EXCLUDED);
Configure(&T16000L, MODE_EXCLUDED);
Configure(&LMFD, MODE_EXCLUDED);
Configure(&RMFD, MODE_EXCLUDED);
Configure(&TFRPRudder, MODE_EXCLUDED);
if(Init(&EventHandle)) return 1;
SetKBRate(32, 50);
SetKBLayout(KB_ENG);
SetShiftButton(&TWCSThrottle, TBTN2, &TWCSThrottle, TBTN2, TBTN3, 0);
MapAxis(&T16000, JOYX, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&T16000, JOYX, 0, 0, 0, 0, 0);
MapAxis(&T16000, JOYY, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&T16000, JOYY, 0, 0, 0, 0, 0);
MapAxis(&T16000, RUDDER, DX_ZROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&T16000, RUDDER, 0, 0, 0, 0, 0);
MapAxis(&T16000, THR, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&T16000, THR, 0, 0, 0, 0, 0);
MapKeyIOUMD(&TWCSThrottle, THAT1U, PULSE+UARROW, CHAIN( PULSE+DARROW, D(), PULSE+UARROW, D(), PULSE+UARROW, D(), PULSE+LARROW, D(), PULSE+UARROW), PULSE+UARROW, CHAIN( PULSE+DARROW, D(), PULSE+UARROW, D(), PULSE+UARROW, D(), PULSE+LARROW, D(), PULSE+UARROW), PULSE+UARROW, CHAIN( PULSE+DARROW, D(), PULSE+UARROW, D(), PULSE+UARROW, D(), PULSE+LARROW, D(), PULSE+UARROW));
MapKeyIOUMD(&TWCSThrottle, THAT1R, PULSE+RARROW, CHAIN( PULSE+DARROW, D(), PULSE+RARROW, D(), PULSE+RARROW, D(), PULSE+UARROW, D(), PULSE+RARROW), PULSE+RARROW, CHAIN( PULSE+DARROW, D(), PULSE+RARROW, D(), PULSE+RARROW, D(), PULSE+UARROW, D(), PULSE+RARROW), PULSE+RARROW, CHAIN( PULSE+DARROW, D(), PULSE+RARROW, D(), PULSE+RARROW, D(), PULSE+UARROW, D(), PULSE+RARROW));
MapKeyIOUMD(&TWCSThrottle, THAT1D, PULSE+DARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+RARROW, D(), PULSE+LARROW), PULSE+DARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+RARROW, D(), PULSE+LARROW), PULSE+DARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+RARROW, D(), PULSE+LARROW));
MapKeyIOUMD(&TWCSThrottle, THAT1L, PULSE+LARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW), PULSE+LARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW), PULSE+LARROW, CHAIN( PULSE+DARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW, D(), PULSE+LARROW));
MapAxis(&TWCSThrottle, TRDR, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&TWCSThrottle, TRDR, 0, 0, 0, 0, 0);
MapAxis(&TWCSThrottle, TTHR, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&TWCSThrottle, TTHR, 0, 0, 0, 0, 0);
MapAxis(&TWCSThrottle, TANT, DX_Z_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&TWCSThrottle, TANT, 0, 0, 0, 0, 0);
MapAxis(&TWCSThrottle, TMSTX, DX_XROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&TWCSThrottle, TMSTX, 0, 0, 0, 0, 0);
MapAxis(&TWCSThrottle, TMSTY, DX_YROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&TWCSThrottle, TMSTY, 0, 0, 0, 0, 0);
MapAxis(&TWCSThrottle, TCSRIGHT, DX_ZROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&TWCSThrottle, TCSRIGHT, 0, 0, 0, 0, 0);
MapAxis(&TWCSThrottle, TCSRUDDER, DX_THROTTLE_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&TWCSThrottle, TCSRUDDER, 0, 0, 0, 0, 0);
MapAxis(&TWCSThrottle, TCSLEFT, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&TWCSThrottle, TCSLEFT, 0, 0, 0, 0, 0);
}
int EventHandle(int type, alias o, int x)
{
DefaultMapping(&o, x);
}