include "target.tmh"
//program startup
int main()
{
if(Init(&EventHandle)) return 1; // declare the event handler, return on error
SetKBRate(25, 33);
//SetShiftButton(&HCougar, S3, &Throttle, PSF, PSB, IOTOGGLE+UDTOGGLE);
//SetShiftButton(&HCougar, S3, &Throttle, PSF, PSB, 0);
SetShiftButton(&HCougar, S3, &Throttle, PSB, PSF);
//-------------------------------------Output-------
MapKeyIO(&HCougar, S1,
PULSE+'1', // 1 OK
PULSE+'2'); // 2 OK
MapKeyUMD(&HCougar, S2,
PULSE+'1', // 2 incorrect
PULSE+'2', // 2 OK
PULSE+'3'); // 2 incorrect
MapKeyIOUMD(&HCougar, H2U,
PULSE+'1', // 3 incorrect
PULSE+'2', // 4 incorrect
PULSE+'3', // 3 OK
PULSE+'4', // 4 OK
PULSE+'5', // 3 incorrect
PULSE+'6'); // 4 incorrect
//---------------------------
MapKey(&Throttle, BSF,
PULSE+'U'); // U OK
MapKeyR(&Throttle, BSF,
PULSE+'C'); // C OK
MapKey(&Throttle, BSB,
PULSE+'D'); // D OK
MapKeyR(&Throttle, BSB,
PULSE+'C'); // C OK
}
//event handler
int EventHandle(int type, alias o, int x)
{
DefaultMapping(&o, x);
//add event handling code here
}