include "target.tmh" include "_DefaultMap.tmh" define TPULSE 70 define TDELAY 50 int main() { /////////////////// Setup and initialisation /////////////////// Configure(&HCougar, MODE_EXCLUDED); Configure(&T16000, MODE_EXCLUDED); Configure(&LMFD, MODE_EXCLUDED); Configure(&RMFD, MODE_EXCLUDED); Configure(&Joystick, MODE_EXCLUDED); // Configure(&Throttle, MODE_EXCLUDED); if(Init(&EventHandle)) return 1; SetKBRate(TPULSE, TDELAY); // Keyboard pulse and delay times in ms SetKBLayout(KB_ENG); // 0 to 42 is OFF // 43 to 85 is level 1 // 86 to 128 is level 2 // 129 to 171 is level 3 // 172 to 214 is level 4 // 215 to 255 is level 5 ActKey(PULSE+KEYON+LED(&Throttle, LED_INTENSITY, 0)); // set Throttle backlight power to OFF //////////////////////// // Standalone mapping // //////////////////////// MapList(&Throttle,&ThrottleMap1); // _DefaultMap.tmh /////////////////// Throttle axes setup /////////////////// MapAxis(&Throttle, SCX, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); // DX_XROT_AXIS with Throttle+Joystiock SetSCurve(&Throttle, SCX, 0, 0, 0, 0, 0); MapAxis(&Throttle, SCY, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); // DX_YROT_AXIS with Throttle+Joystiock SetSCurve(&Throttle, SCY, 0, 0, 0, 0, 0); MapAxis(&Throttle, THR_RIGHT, DX_Z_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Throttle, THR_RIGHT, 0, 0, 0, 0, 0); MapAxis(&Throttle, THR_LEFT, DX_ZROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Throttle, THR_LEFT, 0, 0, 0, 0, 0); MapAxis(&Throttle, THR_FC, DX_THROTTLE_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); // DX_SLIDER_AXIS with Throttle+Joystiock SetSCurve(&Throttle, THR_FC, 0, 0, 0, 0, 0); /////////////////// Throttle button mapping /////////////////// // YOUR MODIFIED CONFIG HERE } int EventHandle(int type, alias o, int x) { DefaultMapping(&o, x); }