Dis mine. It's not a "you don't have to do any work because I used default keyboard shortcuts" but it makes some things possible.
[code:lua]include "target.tmh"
int main()
{
Configure(&HCougar, MODE_EXCLUDED); //Exclude all but WH Throttle
Configure(&Joystick, MODE_EXCLUDED);
Configure(&T16000, MODE_EXCLUDED);
Configure(&LMFD, MODE_EXCLUDED);
Configure(&RMFD, MODE_EXCLUDED);
if(Init(&EventHandle)) return 1;
SetKBRate(250, 50);
SetKBLayout(KB_ENG);
//*****************
//*THROTTLE HANDLE*
//*****************
MapAxis(&Throttle, THR_RIGHT, DX_Z_AXIS); //Right Throttle
SetCustomCurve(&Throttle, THR_RIGHT, LIST(0,0, 65,90, 75,90, 100,100));
MapKey (&Throttle, IDLERON, PULSE+DX1); //Cutoff Stepping
MapKeyR (&Throttle, IDLERON, PULSE+DX1);
MapKey(&Throttle, PSF, PULSE+LED(&Throttle, LED_INTENSITY, 0)); //Backlight Control
MapKey(&Throttle, PSM, PULSE+LED(&Throttle, LED_INTENSITY, 43));
MapKey(&Throttle, PSB, PULSE+LED(&Throttle, LED_INTENSITY, 86));
MapKey(&Throttle, LTB, DX3); //Chute Deploy
MapKey(&Throttle, MSR, AXIS(DX_XROT_AXIS,-250,10)); //Field of View
MapKey(&Throttle, MSL, AXIS(DX_XROT_AXIS, 250,10));
MapKey(&Throttle, MSU, F1); //Radio Menu
MapKey(&Throttle, MSD, F2);
MapKey(&Throttle, MSP, DX4); //Push To Talk
MapKey(&Throttle, SPDF, DX5); //Speedbrake
MapKey(&Throttle, SPDB, DX6);
MapKey(&Throttle, CHF, DX31); //Sight-Radar Adjust
MapKey(&Throttle, CHB, DX32);
//****************
//*THROTTLE PANEL*
//****************
MapKey(&Throttle, EFLNORM, PULSE+DX7); //Pitot Heat #1
MapKey(&Throttle, EFLOVER, DX8);
MapKey(&Throttle, EFRNORM, PULSE+DX9); //Pitot Heat #2
MapKey(&Throttle, EFROVER, DX10);
MapKey(&Throttle, EOLIGN, DX11); //Landing Light Land
MapKeyR(&Throttle, EOLMOTOR, PULSE+DX12); //Landing Light Taxi
MapKey(&Throttle, EOLMOTOR, DX13); //Landing Light Off
MapKey(&Throttle, EORIGN, DX14); //Gear Up
MapKey(&Throttle, EORNORM, PULSE+DX15); //Gear Neutral
MapKey(&Throttle, EORMOTOR, DX16); //Gear Down
MapKey(&Throttle, FLAPU, PULSE+DX17); //Flaps
MapKey(&Throttle, FLAPM, PULSE+DX18);
MapKey(&Throttle, FLAPD, PULSE+DX19);
MapKey(&Throttle, CSU, F5);
MapKey(&Throttle, CSR, F4);
MapKey(&Throttle, CSD, F3);
MapKey(&Throttle, CSL, F6);
MapKey(&Throttle, BSB, PULSE+F7);
MapKey(&Throttle, BSF, PULSE+F8);
MapKey(&Throttle, APUON, DX20); //Launch Allow
MapKey(&Throttle, APUOFF, PULSE+DX21);
MapKey(&Throttle, LDGH, DX22); //SPRD/SPO Drop
MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS);
MapKey(&Throttle, EACON, PULSE+DX23); //Position Lights Med/Off
MapKey(&Throttle, EACOFF, PULSE+DX24);
MapKey(&Throttle, RDRNRM, DX25); //Radar Scan/Fixed
MapKey(&Throttle, RDRDIS, PULSE+DX26);
MapKey(&Throttle, APENG, DX27); //SAU Hold
MapKey(&Throttle, APPAT, DX28); //SAU Landing Modes
MapKey(&Throttle, APAH, DX29);
MapKey(&Throttle, APALT, PULSE+DX30);
}
//event handler
int EventHandle(int type, alias o, int x)
{
DefaultMapping(&o, x);
//add event handling code here
}
[/code]