include "targetdx128.tmh" int main() { Configure(&HCougar, MODE_EXCLUDED); Configure(&Joystick, MODE_EXCLUDED); Configure(&T16000, MODE_EXCLUDED); Configure(&T16000L, MODE_EXCLUDED); Configure(&LMFD, MODE_EXCLUDED); Configure(&RMFD, MODE_EXCLUDED); Configure(&TFRPRudder, MODE_EXCLUDED); Configure(&TWCSThrottle, MODE_EXCLUDED); if(Init(&EventHandle)) return 1; SetKBRate(32, 50); SetKBLayout(KB_ENG); SetShiftButton(0, 0, 0, 0, 0, 0); MapKey(&Throttle, SC, DX1); MapKey(&Throttle, MSU, DX2); MapKey(&Throttle, MSD, DX3); MapKey(&Throttle, MSL, DX4); MapKey(&Throttle, MSR, DX5); MapKey(&Throttle, MSP, DX6); MapKey(&Throttle, SPDF, DX7); MapKey(&Throttle, SPDM, DX8); MapKey(&Throttle, SPDB, DX9); MapKey(&Throttle, BSF, DX10); MapKey(&Throttle, BSM, DX11); MapKey(&Throttle, BSB, DX12); MapKey(&Throttle, CHF, DX13); MapKey(&Throttle, CHM, DX14); MapKey(&Throttle, CHB, DX15); MapKey(&Throttle, PSF, DX16); MapKey(&Throttle, PSM, DX17); MapKey(&Throttle, PSB, DX18); MapKey(&Throttle, CSU, DX19); MapKey(&Throttle, CSD, DX20); MapKey(&Throttle, CSL, DX21); MapKey(&Throttle, CSR, DX22); MapKey(&Throttle, LTB, DX23); MapKey(&Throttle, EFLNORM, DX24); MapKey(&Throttle, EFLOVER, DX25); MapKey(&Throttle, EFRNORM, DX26); MapKey(&Throttle, EFROVER, DX27); MapKey(&Throttle, EOLIGN, DX28); MapKey(&Throttle, EOLNORM, DX29); MapKey(&Throttle, EOLMOTOR, DX30); MapKey(&Throttle, EORIGN, DX31); MapKey(&Throttle, EORNORM, DX32); MapKey(&Throttle, EORMOTOR, DX33); MapKey(&Throttle, APUON, DX34); MapKey(&Throttle, APUOFF, DX35); MapKey(&Throttle, LDGH, DX36); MapKey(&Throttle, FLAPU, DX37); MapKey(&Throttle, FLAPM, DX38); MapKey(&Throttle, FLAPD, DX39); MapKey(&Throttle, EACON, DX40); MapKey(&Throttle, EACOFF, DX41); MapKey(&Throttle, RDRNRM, DX42); MapKey(&Throttle, RDRDIS, DX43); MapKey(&Throttle, APPAT, DX44); MapKey(&Throttle, APAH, DX45); MapKey(&Throttle, APALT, DX46); MapKey(&Throttle, APENG, DX47); MapKey(&Throttle, IDLELON, DX48); MapKey(&Throttle, IDLERON, DX49); MapKey(&Joystick, TG1, DX50); MapKey(&Joystick, TG2, DX51); MapKey(&Joystick, S1, DX52); MapKey(&Joystick, S2, DX53); MapKey(&Joystick, S3, DX54); MapKey(&Joystick, S4, DX55); MapKey(&Joystick, H1U, DX56); MapKey(&Joystick, H1D, DX57); MapKey(&Joystick, H1L, DX58); MapKey(&Joystick, H1R, DX59); MapKey(&Joystick, H2U, DX60); MapKey(&Joystick, H2D, DX61); MapKey(&Joystick, H2L, DX62); MapKey(&Joystick, H2R, DX63); MapKey(&Joystick, H4P, DX64); MapKey(&Joystick, H4U, DX65); MapKey(&Joystick, H4D, DX66); MapKey(&Joystick, H4L, DX67); MapKey(&Joystick, H4R, DX68); MapKey(&Joystick, H3U, DX69); MapKey(&Joystick, H3D, DX70); MapKey(&Joystick, H3L, DX71); MapKey(&Joystick, H3R, DX72); MapAxis(&Throttle, SCX, DX_Z_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Throttle, SCX, 0, 0, 0, 0, 0); MapAxis(&Throttle, SCY, DX_ZROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Throttle, SCY, 0, 0, 0, 0, 0); MapAxis(&Throttle, THR_RIGHT, DX_YROT_AXIS, AXIS_REVERSED, MAP_ABSOLUTE); SetSCurve(&Throttle, THR_RIGHT, 0, 0, 0, 0, 0); MapAxis(&Throttle, THR_LEFT, DX_XROT_AXIS, AXIS_REVERSED, MAP_ABSOLUTE); SetSCurve(&Throttle, THR_LEFT, 0, 0, 0, 0, 0); MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Throttle, THR_FC, 0, 0, 0, 0, 0); MapAxis(&Joystick, JOYX, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Joystick, JOYX, 0, 0, 0, 0, 0); MapAxis(&Joystick, JOYY, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Joystick, JOYY, 0, 0, 0, 0, 0); } int EventHandle(int type, alias o, int x) { DefaultMapping(&o, x); }