Steel Jaw Posted August 9, 2024 Posted August 9, 2024 include "target.tmh" //default Thrustmaster function int Eject ; int Jettison ; int Chainled ; int main() { Configure(&LMFD,MODE_EXCLUDED); Configure(&RMFD,MODE_EXCLUDED); Configure(&HCougar,MODE_EXCLUDED); Configure(&T16000,MODE_EXCLUDED); Configure(&T16000L,MODE_EXCLUDED); Configure(&TFRPRudder,MODE_EXCLUDED); if(Init(&EventHandle)) return 1; //event =handler //shift button SetShiftButton(&Joystick,S4); //set pulse and delay lengths SetKBRate(50,100); //LED init state //ActKey(PULSE+KEYON+LED(&Throttle, LED_INTENSITY, 214)); //set Throttle backlight power to 5/6 //ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED0)); //set backlight OFF //ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1)); //set LED 1 OFF //ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED2)); //set LED 2 OFF //ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED3)); //set LED 3 OFF //ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED4)); //set LED 4 OFF //ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED5)); //set LED= 5 OFF ///////////////////////////////////////// //Joystick and Throttle Axis Definitions/ ///////////////////////////////////////// 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); //Shift slew to mouse with S4, Shift slider axe to mouse wheel with S4 //MapKey(&Joystick, S4, EXEC("MapAxis(&Throttle,SCX,MOUSE_X_AXIS,AXIS_NORMAL,MAP_RELATIVE);" //"SetSCurve(&Throttle, SCX, 0, 10, 0, 0, -5);" //"MapAxis(&Throttle, SCY, MOUSE_Y_AXIS, AXIS_NORMAL, MAP_RELATIVE);" //"SetSCurve(&Throttle, SCY, 0, 10, 0, 0, -5);" //"MapAxis(&Throttle, THR_FC, DX_THROTTLE_AXIS);" //)); MapKeyR(&Joystick, S4, EXEC("MapAxis(&Throttle, SCX, DX_XROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);" //"SetSCurve(&Throttle, SCX, 0, 0, 0, 0, 0);" //"MapAxis(&Throttle, SCY, DX_YROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);" //"SetSCurve(&Throttle, SCY, 0, 0, 0, 0, 0);" //"MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS);" )); //Slew MapAxis(&Throttle, SCX, DX_XROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Throttle, SCX, 0, 0, 0, 0, 0); MapAxis(&Throttle, SCY, DX_YROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Throttle, SCY, 0, 0, 0, 0, 0); //Slew click MapKeyIO(&Throttle,SC,MOUSE_LEFT,USB[0x28]); //mouse click, usb code designate //Free assign to throttle friction lever in DCS MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS); printf(" \xa"); printf(" --------[ NOiD FA-18C Profile 1.9 ]-------- \xa"); printf(" \xa"); "You see, IronHand is my thing" My specs: W10 Pro, I5/11600K o/c to 4800 @1.32v, 64 GB 3200 XML RAM, Red Dragon 7800XT/16GB, monitor: GIGABYTE M32QC 32" (31.5" Viewable) QHD 2560 x 1440 (2K) 165Hz.
Recommended Posts