Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: zeplintwo/AnalogWASD-2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1
Choose a base ref
...
head repository: zeplintwo/AnalogWASD-2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 19 commits
  • 19 files changed
  • 1 contributor

Commits on Jul 18, 2021

  1. Throttle Added

    Throttle PWM added. T16000.M Support added. Limitation found
    zeplintwo committed Jul 18, 2021
    Copy the full SHA
    ac8ebbe View commit details
  2. Copy the full SHA
    c3eddc5 View commit details
  3. Update README.md

    zeplintwo authored Jul 18, 2021
    Copy the full SHA
    0596298 View commit details
  4. Update README.md

    zeplintwo authored Jul 18, 2021
    Copy the full SHA
    60957a1 View commit details
  5. Update README.md

    zeplintwo authored Jul 18, 2021
    Copy the full SHA
    8cf8aa9 View commit details
  6. Copy the full SHA
    befb7b1 View commit details

Commits on Jul 19, 2021

  1. Polling solved

    zeplintwo committed Jul 19, 2021
    Copy the full SHA
    7d0bd1e View commit details
  2. Update README.md

    zeplintwo authored Jul 19, 2021
    Copy the full SHA
    597ee0b View commit details
  3. Miss labeled Var correction

    zeplintwo committed Jul 19, 2021
    Copy the full SHA
    90313ef View commit details
  4. Wiki images

    zeplintwo committed Jul 19, 2021
    Copy the full SHA
    18396dc View commit details
  5. Update to keymap and images

    zeplintwo committed Jul 19, 2021
    Copy the full SHA
    3928a5a View commit details

Commits on Jul 21, 2021

  1. Nightly

    Split macro and function out as well as key defines
    zeplintwo committed Jul 21, 2021
    Copy the full SHA
    6cd177f View commit details

Commits on Jul 23, 2021

  1. Start of Toggle for T16000.M Support

    Start of the T16000.M Support and Testing as well as re-organization of files to reflect a better layout.
    zeplintwo committed Jul 23, 2021
    Copy the full SHA
    5d54734 View commit details

Commits on Jul 27, 2021

  1. Nightly Push

    Added Verbose and Debug.
    zeplintwo committed Jul 27, 2021
    Copy the full SHA
    5ee6eb0 View commit details

Commits on Jul 30, 2021

  1. T16000.M Soution

    T16000.M Soution
    zeplintwo committed Jul 30, 2021
    Copy the full SHA
    73d3a2a View commit details

Commits on Aug 19, 2021

  1. Update README.md

    zeplintwo authored Aug 19, 2021
    Copy the full SHA
    b77873e View commit details

Commits on Oct 3, 2021

  1. Copy the full SHA
    1df819c View commit details
  2. Copy the full SHA
    e6b4975 View commit details

Commits on Apr 1, 2022

  1. Update Analog_WASD_User_Settings.ttm

    Discord user Jominerman found an issue with one set of actions when tuning with the T16000m's where the improper ranges for T16000RotAxisRange  = 16383;   T16000RotHalfRange  = 8191 they were originally set to 255 and 128.
    zeplintwo authored Apr 1, 2022
    Copy the full SHA
    9614ea2 View commit details
139 changes: 66 additions & 73 deletions Analog_WSAD_Macros.ttm → Analog_WASD_Functions.ttm
Original file line number Diff line number Diff line change
@@ -1,62 +1,69 @@
// Part of Analog_WSAD_Profile#.# keybinds packages
//---------------------------------------------------------------------------
// MACRO VARIABLE INITALISATION
// Variable Initalisation
//---------------------------------------------------------------------------

int CCount = 0;
int MorseDashDelay = 450;
int MorseDotDelay = 300;
int MorseDelay = 200;

//---------------------------------------------------------------------------
// CUSTOM FUNCTIONS
// Multi-Function Scripts
//---------------------------------------------------------------------------
int initLEDController(){
ActKey(PULSE+KEYON+LED(&Throttle, LED_INTENSITY, 255)); // Initiate LED status below
ActKey(PULSE+KEYON+LED(&Throttle, LED_INTENSITY, 129)); // Set backlight for Throttle
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1)); // Analog WASD Function
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED2));
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED3));
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED4));
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED5));
if(Verbose) printf("LED's Reset \xa");
}

//---------------------------------------------------------------------------
// Control Setup Functions
//---------------------------------------------------------------------------\
int ControlAxisCurveSetup(){ //exclusion switching for Duals or Warthog HOTAS
printf("\xa");
if(Verbose) printf("\xa");
if (WarthogStick == 1 & T16000Right == 0){ //Selection of Warthog Stick for Right Side
if (T16000Left == 0) {
Configure(&T16000, MODE_EXCLUDED);
}
printf("---Warthog Joystick Loading \xa");
JoyA10Set();
}
}
else if (T16000Right == 1 & WarthogStick == 0){
Configure(&Joystick, MODE_EXCLUDED);
printf("---T16000.m Right Loading \xa");
JoyT16Set();
}
if(Verbose) printf("---T16000.m Right Loading \xa");
JoyT16RSet();
}
else{
SettingError('R');
}
}

if (WarthogThrottle == 1 & T16000Left == 0){
if (T16000Right == 0) {
Configure(&T16000, MODE_EXCLUDED);
}
printf("---Warthog Throttle Loading \xa");
if(Verbose) printf("---Warthog Throttle Loading \xa");
ThrA10Set();
}
}
else if (T16000Left==1 & WarthogThrottle == 0){
Configure(&Throttle, MODE_EXCLUDED);
printf("---T16000.m Left Loading \xa");
JoyT16Set();
}
if(Verbose) printf("---T16000.m Left Loading \xa");
JoyT16LSet();
}
else{
SettingError('L');
}
}

}

int JoyA10Set(){
MapAxis(&Joystick, JOYX, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
MapAxis(&Joystick, JOYY, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
//Warthog Joystick Curves
SetSCurve(&Joystick, JOYX, 0,JSDeadZone,0,(JSCurve[JSProfile]/2),JSZoom[JSProfile]);
SetSCurve(&Joystick, JOYY, 0,JSDeadZone,0,(JSCurve[JSProfile]/2),JSZoom[JSProfile]);
printf("---Warthog Joystick Curves Set \xa") ;
if(Verbose) printf("---Warthog Joystick Curves Set \xa");
WarthogJoyBinds();
}
}

int ThrA10Set(){
MapAxis(&Throttle, SCX, MOUSE_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
@@ -70,11 +77,11 @@ int ThrA10Set(){
SetJCurve(&Throttle, THR_RIGHT, 50, 50);
SetJCurve(&Throttle, THR_LEFT, 50, 50);
SetJCurve(&Throttle, THR_FC, 50, 50);
printf("---Warthog Throttle Curves Set \xa");
if(Verbose) printf("---Warthog Throttle Curves Set \xa");
WarthogThrottleBinds();
}
}

int JoyT16Set(){ //Dual T16000.m Curves
int JoyT16LSet(){ //T16000.m Left Curves
if (T16000Left == 1 ){
MapAxis(&T16000L, JOYX, DX_XROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
MapAxis(&T16000L, JOYY, DX_YROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
@@ -83,21 +90,24 @@ int JoyT16Set(){ //Dual T16000.m Curves
SetSCurve(&T16000L, JOYX, 0,JSDeadZone,0,JSCurve[JSProfile],JSZoom[JSProfile]);
SetSCurve(&T16000L, JOYY, 0,JSDeadZone,0,JSCurve[JSProfile],JSZoom[JSProfile]);
SetSCurve(&T16000L, RUDDER, 0,JSDeadZone,0,JSCurve[JSProfile],JSZoom[JSProfile]);
printf("---T16000.m Left Joystick Curves Set \xa") ;
if(Verbose) printf("---T16000.m Left Joystick Curves Set \xa") ;
T16LeftBinds();
}
if (T16000Right == 0 ){
}
}

int JoyT16RSet(){ //T16000.m Right Curves
if (T16000Right == 1 ){
MapAxis(&T16000, JOYX, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
MapAxis(&T16000, JOYY, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
MapAxis(&T16000, RUDDER, DX_Z_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
//Joystick Curves Right
SetSCurve(&T16000, JOYX, 0,JSDeadZone,0,JSCurve[JSProfile],JSZoom[JSProfile]);
SetSCurve(&T16000, JOYY, 0,JSDeadZone,0,JSCurve[JSProfile],JSZoom[JSProfile]);
SetSCurve(&T16000, RUDDER, 0,JSDeadZone,0,JSCurve[JSProfile],JSZoom[JSProfile]);
printf("---T16000.m Right Joystick Curves Set \xa");
if(Verbose) printf("---T16000.m Right Joystick Curves Set \xa");
T16RightBinds();
}
}
}

int SettingError(char side){
printf("--------------------------- Settings Error ---------------------------\xa");
@@ -119,49 +129,32 @@ int SettingError(char side){
printf("Once done save and re-run the script.\xa");
printf("\xa");
printf("--------------------------- End Error ---------------------------\xa");
}
abort(Settings_Failure);//will cause Runtime Error as this is to force close on the script
}

int WarthogJoyBinds(){//Keybindings for the Warthog Joysick key assignments.
MapKeyIOUMD(&Joystick,TG1,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,TG2,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,S1,Vector,Vector,Vector,Vector,Vector,Vector);
MapKeyIOUMD(&Joystick,S2,L_CTL+'l',L_CTL+'l',L_CTL+'l',L_CTL+'l',L_CTL+'l',L_CTL+'l');
//MapKeyIOUMD(&Joystick,S3,0,0,0,0,0,0);
MapKey(&Joystick,S3,CHAIN(PULSE+'a',D(4000),PULSE+'b'));
//MapKeyIOUMD(&Joystick,S4,0,0,0,0,0,0);
MapKey(&Joystick,S4,EXEC("AxisToKey(100,1);"));
MapKeyIOUMD(&Joystick,H1U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4P,0,0,0,0,0,0);
printf("---Warthog Joystick Binds Loaded.\xa \xa");
}
//---------------------------------------------------------------------------
// External, Game and Prox Game comms switching
//---------------------------------------------------------------------------
int ExtComms(){
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF,LED_CURRENT+LED2));
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF,LED_CURRENT-LED3));
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF,LED_CURRENT-LED4));
MapKey(&Throttle, MSP, ExtVoice);
if(Verbose) printf("External Comms Enabled \xa");
}

int WarthogThrottleBinds(){//Keybindings for the Warthog Throttle key assignments.
MapKeyIOUMD(&Throttle,SPDF,Brakes,Brakes,Brakes,Brakes,Brakes,Brakes);
MapKeyIOUMD(&Throttle,SPDM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle,SPDB,Brakes,Brakes,Brakes,Brakes,Brakes,Brakes);
printf("---Warthog Throttle Binds Loaded.\xa \xa");
}
int IntComms(){
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF,LED_CURRENT-LED2));
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF,LED_CURRENT+LED3));
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF,LED_CURRENT-LED4));
MapKey(&Throttle, MSP, IntVoice);
if(Verbose) printf("Internal Comms Enabled \xa");
}

int T16LeftBinds(){
printf("---T16000.m Left Binds Loaded.\xa \xa");
}

int T16RightBinds(){
printf("---T16000.m Right Binds Loaded.\xa \xa");
}

int BothComms(){
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF,LED_CURRENT-LED2));
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF,LED_CURRENT-LED3));
ActKey(KEYON+PULSE+LED(&Throttle, LED_ONOFF,LED_CURRENT+LED4));
MapKey(&Throttle, MSP, CHAIN(ExtVoice,IntVoice));
if(Verbose) printf("Both Comms Enabled \xa");
}
36 changes: 22 additions & 14 deletions Analog_WSAD_Keymapings.ttm → Analog_WASD_Key_Binds.ttm
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
// Part of Analog_WSAD_Profile#.# keybinds packages
// Part of Analog_WASD_Profile#.# keybinds packages
//---------------------------------------------------------------------------
//
// Default keymaps from Dual Universe these may or may not dircectly be used but are are for referance and will be use where posable to keep future change compatable.
// Default keymaps these may or may not dircectly be used but are are for referance and will be use where posable to keep future change compatable.
// Keybinds will be useing TARGETS USB command to be cross local compatable see bottom of file for english key conversion.
//
// KEYBIND SHOULD NOT BE CHANGED UNLESS YOU RUN A NON-STANDARD LAYOUT. IE YOU CHANGE THE DEFAULT KEYBOARD BINDS
//
//---------------------------------------------------------------------------
define ThrottleUp USB[0x15] //r throttle step up
define ThrottleDown USB[0x17] //t throttle step down
define PitchDown USB[0x16] //s pitch down, nose down
define PitchUp USB[0x1A] //w pitch up, nose up
define RollRight USB[0x07] //d roll right, roll clockwise
define RollLeft USB[0x04] //a roll left, roll anti-clockwise
define YawRight USB[0x08] //e yaw right, nose right
define YawLeft USB[0x14] //q yaw left, nose left
define ThrustUp USB[0x2c] //space accend, thrust upward
define ThrustDown USB[0x07] //c decend, thrust DOWN
define Brakes USB[0xE0] //left control/ctrl brakes, stoping thrust, aero brakes, retro thrust
define Vector USB[0x1B] //x toggle though vector trajectorys

define ThrottleUp USB[0xE1] //L_Shift throttle step up
define AltThrottleUp USB[0x55] //numpad * alternate throttle step up
define ThrottleDown USB[0xE0] //L_Ctrl - throttle step down
define AltThrottleDown USB[0x54] //numpad / alternate throttle step down
define TrimInc USB[0x59] //numpad 1 trim increase step up
define TrimDecr USB[0x5A] //numpad 2 trim decrease step down
define PitchDown USB[0x16] //s pitch down, nose down
define PitchUp USB[0x1A] //w pitch up, nose up
define RollRight USB[0x08] //e roll right, roll clockwise
define RollLeft USB[0x14] //q roll left, roll anti-clockwise
define YawRight USB[0x07] //d yaw right, nose right
define YawLeft USB[0x04] //a yaw left, nose left
define ThrustUp USB[0x52] //up arrow translate, accend, stafe thrust up
define ThrustDown USB[0x51] //down arrow translate, decend, thrust down
define ThrustRight USB[0x4F] //right arrow translate, strafe,thrust right
define ThrustLeft USB[0x50] //left arrow translate, strafe,thrust left
define Brakes USB[0xE0] //left control/ctrl brakes, stoping thrust, aero brakes, retro thrust, reverse
define ExtVoice USB[0x48] //Pause/Break for external Comms
define IntVoice USB[0x47] //Scroll Lock for internal Comms

//--------------------------------------------------------------------------------------------------------------------------------------------------------------//
// REFERENCE: USB KEY DEFINITIONS // //
135 changes: 135 additions & 0 deletions Analog_WASD_Key_Defines.ttm
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
// Part of Analog_WASD_Profile#.# keybinds packages
//---------------------------------------------------------------------------
// Keybinds for all Supported Devices
//---------------------------------------------------------------------------

int WarthogJoyBinds(){//Keybindings for the Warthog Joysick key assignments.
MapKey(&Joystick,TG1,0);
MapKey(&Joystick,TG2,DX1);
MapKeyIOUMD(&Joystick,S1,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,S2,0,0,0,0,0,0);
//MapKeyIOUMD(&Joystick,S3,0,0,0,0,0,0);//Reserved for IO activation
MapKeyIOUMD(&Joystick,S4,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4P,0,0,0,0,0,0);
if(Verbose) printf("---Warthog Joystick Binds Loaded.\xa \xa");
}

int WarthogThrottleBinds(){//Keybindings for the Warthog Throttle key assignments.
SetShiftButton(&Joystick, S3, &Throttle,BSF,BSB);
//MapKeyIOUMD(&Throttle, MSP,0,0,0,0,0,0); //Push to talk reserve
MapKeyIOUMD(&Throttle, MSU,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, MSR,0,0,0,EXEC("mDirBurst(ThrottleDown,ThrottleUp);"),0,0);
MapKeyIOUMD(&Throttle, MSD,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, MSL,0,0,0,EXEC("mDirBurst(ThrottleUp,ThrottleDown);"),0,0);
MapKeyIOUMD(&Throttle, SPDF,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, SPDM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, SPDB,0,0,0,0,0,0);
//MapKeyIOUMD(&Throttle, BSF,0,0,0,0,0,0); //UMD activation reserve
//MapKeyIOUMD(&Throttle, BSM,0,0,0,0,0,0); //UMD activation reserve
//MapKeyIOUMD(&Throttle, BSB,0,0,0,0,0,0); //UMD activation reserve
MapKeyIOUMD(&Throttle, CHF,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, CHB,0,0,0,0,0,0);
MapKey(&Throttle,PSF,EXEC("ExtComms();"));
MapKey(&Throttle,PSM,EXEC("IntComms();"));
MapKey(&Throttle,PSB,EXEC("BothComms();"));
MapKeyIOUMD(&Throttle, LTB,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EFLNORM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EFRNORM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EOLMOTOR,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EORMOTOR,0,0,0,0,0,0);
//MapKeyIOUMD(&Throttle, APUON,0,0,0,0,0,0); // Reserved for Analog WASD functaionality
//MapKeyIOUMD(&Throttle, APUOFF,0,0,0,0,0,0); // Reserved for Analog WASD functaionality
MapKeyIOUMD(&Throttle, LDGH,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, FLAPU,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, FLAPD,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EACON,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, RDRNRM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, APENG,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, APPAT,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, APALT,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, IDLERON,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, IDLELON,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EOLIGN,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EORIGN,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, CSU,0,ThrustUp,0,ThrustUp,0,ThrustUp);
MapKeyIOUMD(&Throttle, CSD,0,ThrustDown,0,ThrustDown,0,ThrustDown);
MapKeyIOUMD(&Throttle, CSL,0,ThrustLeft,0,ThrustLeft,0,ThrustLeft);
MapKeyIOUMD(&Throttle, CSR,0,ThrustRight,0,ThrustRight,0,ThrustRight);
MapKeyIOUMD(&Throttle, EFLOVER,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EFROVER,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EACOFF,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, RDRDIS,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, APDIS,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, IDLEROFF,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, IDLELOFF,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EOLNORM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EORNORM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, FLAPM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, CHM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, APAH,0,0,0,0,0,0);
if(Verbose) printf("---Warthog Throttle Binds Loaded.\xa \xa");
}

int T16LeftBinds(){
MapKey(&T16000L, TS1,0);
MapKey(&T16000L, TS2,0);
MapKey(&T16000L, TS3,0);
MapKey(&T16000L, TS4,0);
MapKey(&T16000L, B5,EXEC("T16000Logic();"));//Reserved for PWM Logic
MapKey(&T16000L, B6,0);
MapKey(&T16000L, B7,0);
MapKey(&T16000L, B8,0);
MapKey(&T16000L, B9,0);
MapKey(&T16000L, B10,0);
MapKey(&T16000L, B11,0);
MapKey(&T16000L, B12,0);
MapKey(&T16000L, B13,0);
MapKey(&T16000L, B14,0);
MapKey(&T16000L, B15,0);
MapKey(&T16000L, B16,0);
MapKey(&T16000L, H1U,0); // 4 virtual keys generated by the joystick HAT
MapKey(&T16000L, H1R,0);
MapKey(&T16000L, H1D,0);
MapKey(&T16000L, H1L,0);
if(Verbose) printf("---T16000.m Left Binds Loaded.\xa \xa");
}

int T16RightBinds(){
MapKey(&T16000, TS1,0);
MapKey(&T16000, TS2,0);
MapKey(&T16000, TS3,0);
MapKey(&T16000, TS4,0);
MapKey(&T16000, B5,EXEC("T16000Logic();"));//Reserved for PWM Logic
MapKey(&T16000, B6,0);
MapKey(&T16000, B7,0);
MapKey(&T16000, B8,0);
MapKey(&T16000, B9,0);
MapKey(&T16000, B10,0);
MapKey(&T16000, B11,0);
MapKey(&T16000, B12,0);
MapKey(&T16000, B13,0);
MapKey(&T16000, B14,0);
MapKey(&T16000, B15,0);
MapKey(&T16000, B16,0);
MapKey(&T16000, H1U,0); // 4 virtual keys generated by the joystick HAT
MapKey(&T16000, H1R,0);
MapKey(&T16000, H1D,0);
MapKey(&T16000, H1L,0);
if(Verbose) printf("---T16000.m Right Binds Loaded.\xa \xa");
}
Loading