Falcon BMS Forum
    • Categories
    • Unread
    • Recent
    • Unsolved
    • Popular
    • Website
    • Wiki
    • Discord
    • Register
    • Login

    Frederf's Profile (Throttle)

    Thrustmaster
    5
    17
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Frederf
      last edited by

      Frederf’s TARGET Profile
      Falcon BMS 4.33
      2NOV2015

      [size][font][color]include "target.tmh"
      
      int main()
      {
          Configure(&HCougar, MODE_EXCLUDED);
          Configure(&Joystick, MODE_EXCLUDED);
          Configure(&T16000, MODE_EXCLUDED);
          Configure(&LMFD, MODE_EXCLUDED);
          Configure(&RMFD, MODE_EXCLUDED);
      
          if(Init(&EventHandle)) return 1;
      
          SetKBRate(250, 50); //250ms PULSE, 50ms DELAY
          SetKBLayout(KB_ENG);
      
          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));
      
          MapAxis(&Throttle, SCX, DX_X_AXIS);     //X AXIS (Cursor X)
          SetCustomCurve(&Throttle, SCX, LIST(0,0, 10,40, 35,50, 65,50, 90,60, 100,100));
          MapAxis(&Throttle, SCY, DX_Y_AXIS,AXIS_REVERSED);    //Y AXIS (Cursor Y)
          SetCustomCurve(&Throttle, SCY, LIST(0,0, 10,40, 35,50, 65,50, 90,60, 100,100));
      
          //Both throttle axes are 4%-100% w/ detent pause, 0% in OFF.
          MapAxis(&Throttle, THR_LEFT, DX_THROTTLE_AXIS);  //THROTTLE AXIS (Throttle)
          SetCustomCurve(&Throttle, THR_LEFT, LIST(0,4, 65,90, 75,90, 100,100));
          MapKey (&Throttle, IDLELON,    EXEC("TrimDXAxis(DX_THROTTLE_AXIS, 82);"));
          MapKeyR (&Throttle, IDLELON, EXEC("TrimDXAxis(DX_THROTTLE_AXIS, SET(0));"));
      
          MapAxis(&Throttle, THR_RIGHT, DX_Z_AXIS);   //Z AXIS (Right Throttle)
          SetCustomCurve(&Throttle, THR_RIGHT, LIST(0,4, 65,90, 75,90, 100,100));
          MapKey (&Throttle, IDLERON,    EXEC("TrimDXAxis(DX_Z_AXIS, 82);"));
          MapKeyR (&Throttle, IDLERON, EXEC("TrimDXAxis(DX_Z_AXIS, SET(0));"));
      
          MapKey(&Throttle, MSR, AXIS(DX_XROT_AXIS,-250,10));    //X-ROT AXIS (Field of View)
          MapKey(&Throttle, MSL, AXIS(DX_XROT_AXIS, 250,10));
      
          MapKey(&Throttle, MSU, AXIS(DX_YROT_AXIS,-200,10));    //Y-ROT AXIS (Range Knob)
          MapKey(&Throttle, MSD, AXIS(DX_YROT_AXIS, 200,10));
      
          MapKey(&Throttle, CHF, AXIS(DX_ZROT_AXIS, 75,10));    //Z-ROT AXIS (Antenna Elevation)
          MapKey(&Throttle, CHB, AXIS(DX_ZROT_AXIS,-75,10));
      
          KeyAxis(&Throttle, THR_FC, 0, AXMAP2(3, PULSE+DX1, 0, PULSE+DX2));    //AFGearUp/AFGearDown
      
          MapKey(&Throttle, SC, DX3);    //Cursor Enable    SimCursorEnable
          MapKey(&Throttle, MSP, DX4);   //Uncage     SimToggleMissileCage
          MapKey(&Throttle, SPDF, DX5);   //Speedbrake In    AFBrakesIn
          MapKey(&Throttle, SPDB, DX6);   //Speedbrake Out   AFBrakesOut
          MapKey(&Throttle, BSF, DX7);   //MRM      SimSelectMRMOverrdie
          MapKey(&Throttle, BSB, DX8);   //DGFT      SimSelectSRMOverrdie
          MapKey(&Throttle, LTB, DX9);   //Slap Switch    SimSlapSwitch
          MapKey(&Throttle, APUON, DX10);   //Master Arm On    SimArmMasterArm
          MapKey(&Throttle, APUOFF, PULSE+DX11);    //Master Arm Safe   SimSafeMasterArm
          MapKey(&Throttle, LDGH, 'o');   //Horn Silence    SimSilenceHorn
          MapKey(&Throttle, CSU, DX12);   //COMM-IFF UHF    SimTransmitCom1
          MapKey(&Throttle, CSR, DX13);   //COMM-IFF IN    SimCommsSwitchRight
          MapKey(&Throttle, CSD, DX14);   //COMM-IFF VHF    SimTransmitCom2
          MapKey(&Throttle, CSL, DX15);   //COMM-IFF OUT    SimCommsSwitchLeft
          MapKey(&Throttle, FLAPD, DX16);   //AVTR Off     SimAVTRSwitchOff
          MapKey(&Throttle, FLAPM, PULSE+DX17);    //AVTR Auto     SimAVTRSwitchAuto
          MapKey(&Throttle, FLAPU, PULSE+DX18);    //AVTR On     SimAVTRSwitchOn
          MapKey(&Throttle, EFLNORM, PULSE+DX19);    //Pitot Heat On    SimProbeHeatOn
          MapKey(&Throttle, EFLOVER, DX20);  //Pitot Heat Off   SimProbeHeatOff
          MapKey(&Throttle, EFRNORM, PULSE+DX21);    //RF Norm     SimRFNorm
          MapKey(&Throttle, EFROVER, PULSE+DX22);    //RF Quiet     SimRFQuiet
          MapKey(&Throttle, EOLIGN, DX23);  //Master Pitch Override  SimMPO
          MapKey(&Throttle, EORIGN, DX24);  //Emergency-Jettison  SimEmergencyJettison
          MapKey(&Throttle, EACON, DX25);   //Master Lights On   SimExtlMasterNorm
          MapKey(&Throttle, EACOFF, PULSE+DX26);    //Master Lights Off   SimExtlMasterOff
          MapKey(&Throttle, RDRNRM, DX27);  //Radar Altimeter On  SimRALTON
          MapKey(&Throttle, RDRDIS, PULSE+DX28);    //Radar Altimeter Standby    SimRALTSTDBY
          MapKey(&Throttle, APENG, DX29);   //AP Roll Cycle    SimLeftAPSwitch
          MapKey(&Throttle, APPAT, DX30);   //AP Pitch Altitude   SimRightAPUp
          MapKey(&Throttle, APAH, PULSE+DX31);    //AP Pitch Off    SimRightAPMid
          MapKey(&Throttle, APALT, DX32);   //AP Pitch Attitude   SimRightAPDown
      }
      
      //event handler
      int EventHandle(int type, alias o, int x)
      {
          DefaultMapping(&o, x);
      
          //add event handling code here
      }[/color][/font][/size]
      ```(Downloaded .TMC file has aligned comments for clearer reading)
      
      Features:
      
      *   TARGET device for throttle controller only
      *   Script comments
      *   All* DirectX construction
      *   Realistic layout
      *   Illumination control by pinky switch
      *   Custom throttle axes for cutoff and afterburner
      *   Virtual axes by button press for FOV, range, and antenna elevation
      *   Slider axis landing gear handle
      *   Selective PULSE for null output switch state
      *   Selective PULSE to permit other switch states by mouse in cockpit
      
      *Landing gear horn silence bound to keyboard letter 'O'.
      
      Requirements:
      
      *   g_bHotasDgftSelfCancel 1 (Falcon BMS Config)
      *   g_bUseAnalogIdleCutoff 1 (Falcon BMS Config)
      
      Installation:
      
      *   Open .tmc file in TARGET Script Editor
      *   Press Run
      *   Within Falcon BMS map throttle buttons to functions
      *   Within Falcon BMS map joystick buttons to functions
      *   Assign axis functions as below
      
      Axis Assignments: 
      
      | Field of View | X Rotation | Deadzone |
      | Throttle Axis | Throttle |  |
      | Right Engine Throttle Axis | Z |  |
      | Radar Antenna Elevation | Z Rotation | Medium |
      | Cursor X | X | None |
      | Cursor Y | Y | None |
      | Range Knob | Y Rotation | None |
      1 Reply Last reply Reply Quote 1
      • H
        huge
        last edited by

        Thanks for sharing.

        What keyfile to use with your profile?

        F 1 Reply Last reply Reply Quote 0
        • F
          Frederf @huge
          last edited by

          I use one of my own creation which is quite minimal. It’s assumed that one simply goes through the key binding process by pressing each button as needed in the list and then the button to bind.

          ScreenShot -1 0 0XFFFFFFFF 0 0 0 1 "Screenshot"
          PrettyScreenShot -1 0 0XFFFFFFFF 0 0 0 1 "Pretty Screenshot"
          SimEndFlight -1 0 0X1 0 0 0 0 "Exit"
          SimTogglePaused -1 0 0X19 0 0 0 1 "Pause"
          SimMotionFreeze -1 0 0X19 1 0 0 1 "Freeze"
          SimOpenChatBox -1 0 0X14 1 0 0 1 "Chat"
          TimeAccelerateDec -1 0 0X3A 0 0 0 1 "Time Accel-"
          TimeAccelerateInc -1 0 0XF 0 0 0 1 "Time Accel+"
          ToggleNVGMode -1 0 0X31 0 0 0 1 "Night Vision"
          SimToggleTFR 318 0 0X1E 0 0 0 1 "TFR Toggle"
          SimICPFAck 122 0 0X21 0 0 0 1 "FACK"
          SimRWRHandoff 318 0 0X23 0 0 0 1 "TWP HANDOFF"
          SimProbeHeatOn 115 0 0XFFFFFFFF 0 0 0 1 "PROBE HEAT ON"
          SimProbeHeatOff 115 0 0XFFFFFFFF 0 0 0 1 "PROBE HEAT OFF"
          SimFuelDoorToggle 311 0 0XD2 0 0 0 1 "AIR REFUEL Toggle"
          SimExtlMasterNorm 115 0 0XFFFFFFFF 0 0 0 1 "EXT MASTER NORM"
          SimExtlMasterOff 115 0 0XFFFFFFFF 0 0 0 1 "EXT MASTER OFF"
          SimAVTRSwitchOn 115 0 0XFFFFFFFF 0 0 0 1 "AVTR ON"
          SimAVTRSwitchAuto 115 0 0XFFFFFFFF 0 0 0 1 "AVTR AUTO"
          SimAVTRSwitchOff 115 0 0XFFFFFFFF 0 0 0 1 "AVTR OFF"
          SimMPO 115 0 0XFFFFFFFF 0 0 0 1 "MPO Hold"
          SimSlapSwitch 314 0 0XFFFFFFFF 0 0 0 1 "SLAP Switch"
          SimEject 117 0 0X12 2 0 0 1 "Eject"
          SimTransmitCom1 -1 0 0XFFFFFFFF 0 0 0 1 "COMMS UHF"
          SimTransmitCom2 -1 0 0XFFFFFFFF 0 0 0 1 "COMMS VHF"
          SimCommsSwitchLeft -1 0 0XFFFFFFFF 0 0 0 1 "COMMS IFF OUT"
          SimCommsSwitchRight -1 0 0XFFFFFFFF 0 0 0 1 "COMMS IFF IN"
          SimToggleMissileCage -1 0 0XFFFFFFFF 0 0 0 1 "UNCAGE"
          SimSelectSRMOverride -1 0 0XFFFFFFFF 0 0 0 1 "DF Override"
          SimSelectMRMOverride -1 0 0XFFFFFFFF 0 0 0 1 "MRM Override"
          AFBrakesOut -1 0 0XFFFFFFFF 0 0 0 1 "SPD BREAK Open"
          AFBrakesIn -1 0 0XFFFFFFFF 0 0 0 1 "SPD BREAK Close"
          SimCursorEnable -1 0 0XFFFFFFFF 0 0 0 1 "Cursor Enable"
          SimEmergencyJettison 123 0 0XFFFFFFFF 0 0 0 1 "EMER STORES JETTISON"
          AFGearUp 119 0 0XFFFFFFFF 0 0 0 1 "LG Handle - UP"
          AFGearDown 118 0 0XFFFFFFFF 0 0 0 1 "LG Handle - DN"
          SimCATSwitch 115 0 0XD3 0 0 0 1 "CAT I/III"
          SimSilenceHorn 314 0 0X18 0 0 0 1 "HORN SILENCER"
          SimRFNorm 310 0 0XFFFFFFFF 0 0 0 1 "RF NORM"
          SimRFQuiet 310 0 0XFFFFFFFF 0 0 0 1 "RF QUIET"
          SimArmMasterArm 311 0 0XFFFFFFFF 0 0 0 1 "MASTER ARM ARM"
          SimSafeMasterArm 311 0 0XFFFFFFFF 0 0 0 1 "MASTER ARM OFF"
          SimLeftAPSwitch 115 0 0XFFFFFFFF 0 0 0 1 "ROLL Switch - Cycle"
          SimRightAPUp 319 0 0XFFFFFFFF 0 0 0 1 "PITCH Switch - ALT"
          SimRightAPMid 320 0 0XFFFFFFFF 0 0 0 1 "PITCH Switch - OFF"
          SimRightAPDown 319 0 0XFFFFFFFF 0 0 0 1 "PITCH Switch - ATT"
          ExtinguishMasterCaution 127 0 0X39 0 0 0 1 "MASTER CAUTION"
          SimICPCom1 122 0 0XB5 0 0 0 1 "ICP: COM1"
          SimICPCom2 122 0 0X37 0 0 0 1 "ICP: COM2"
          SimICPIFF 122 0 0X4A 1 0 0 1 "ICP: IFF"
          SimICPLIST 122 0 0X4A 0 0 0 1 "ICP: LIST"
          SimICPAA 122 0 0X4E 1 0 0 1 "ICP: AA"
          SimICPAG 122 0 0X4E 0 0 0 1 "ICP: AG"
          SimICPTILS 122 0 0X47 0 0 0 1 "ICP: 1-ILS"
          SimICPALOW 122 0 0X48 0 0 0 1 "ICP: 2-ALOW"
          SimICPTHREE 122 0 0X49 0 0 0 1 "ICP: 3"
          SimICPStpt 122 0 0X4B 0 0 0 1 "ICP: 4-STPT"
          SimICPCrus 122 0 0X4C 0 0 0 1 "ICP: 5-CRUS"
          SimICPSIX 122 0 0X4D 0 0 0 1 "ICP: 6-TIME"
          SimICPMark 122 0 0X4F 0 0 0 1 "ICP: 7-MARK"
          SimICPEIGHT 122 0 0X50 0 0 0 1 "ICP: 8-FIX"
          SimICPNINE 122 0 0X51 0 0 0 1 "ICP: 9-A-CAL"
          SimICPZERO 122 0 0X52 0 0 0 1 "ICP: 0-M-SEL"
          SimICPCLEAR 122 0 0X53 0 0 0 1 "ICP: RCL"
          SimICPEnter 122 0 0X9C 0 0 0 1 "ICP: ENTER"
          SimICPNext 126 0 0XC9 0 0 0 1 "ICP: NEXT"
          SimICPPrevious 126 0 0XD1 0 0 0 1 "ICP: PREVIOUS"
          SimICPDEDUP 120 0 0XC8 0 0 0 1 "ICP: DCS UP"
          SimICPDEDDOWN 120 0 0XD0 0 0 0 1 "ICP: DCS DOWN"
          SimICPDEDSEQ 120 0 0XCD 0 0 0 1 "ICP: DCS SEQ"
          SimICPResetDED 120 0 0XCB 0 0 0 1 "ICP: DCS RTN"
          SimDriftCO 121 0 0XC7 0 0 0 1 "ICP: DRIFT C/O Tog."
          SimWarnReset 115 0 0XCF 0 0 0 1 "ICP: WARN RESET"
          SimRALTON 311 0 0XFFFFFFFF 0 0 0 1 "RDR ALT ON"
          SimRALTSTDBY 311 0 0XFFFFFFFF 0 0 0 1 "RDR ALT STDBY"
          SimTMSUp -1 0 0XFFFFFFFF 0 0 0 1 "TMS Up"
          SimTMSDown -1 0 0XFFFFFFFF 0 0 0 1 "TMS Down"
          SimTMSLeft -1 0 0XFFFFFFFF 0 0 0 1 "TMS Left"
          SimTMSRight -1 0 0XFFFFFFFF 0 0 0 1 "TMS Right"
          SimDMSUp -1 0 0XFFFFFFFF 0 0 0 1 "DMS Up"
          SimDMSDown -1 0 0XFFFFFFFF 0 0 0 1 "DMS Down"
          SimDMSLeft -1 0 0XFFFFFFFF 0 0 0 1 "DMS Left"
          SimDMSRight -1 0 0XFFFFFFFF 0 0 0 1 "DMS Right"
          SimCMSUp -1 0 0XFFFFFFFF 0 0 0 1 "CMS Up"
          SimCMSDown -1 0 0XFFFFFFFF 0 0 0 1 "CMS Down"
          SimCmsLeft -1 0 0XFFFFFFFF 0 0 0 1 "CMS Left"
          SimCMSRight -1 0 0XFFFFFFFF 0 0 0 1 "CMS Right"
          AFElevatorTrimUp -1 0 0XFFFFFFFF 0 0 0 1 "TRIM Up"
          AFElevatorTrimDown -1 0 0XFFFFFFFF 0 0 0 1 "TRIM Down"
          AFAileronTrimLeft -1 0 0XFFFFFFFF 0 0 0 1 "TRIM Left"
          AFAileronTrimRight -1 0 0XFFFFFFFF 0 0 0 1 "TRIM Right"
          SimTriggerFirstDetent -1 0 0XFFFFFFFF 0 0 0 1 "FIRST TRIGGER DETENT"
          SimTriggerSecondDetent -1 0 0XFFFFFFFF 0 0 0 1 "SECOND TRIGGER DETENT"
          SimPickle -1 0 0XFFFFFFFF 0 0 0 1 "WEAPON RELEASE"
          SimMissileStep -1 0 0XFFFFFFFF 0 0 0 1 "MSL STEP"
          SimPinkySwitch -1 0 0XFFFFFFFF 0 0 0 1 "PINKY"
          SimAPOverride -1 0 0XFFFFFFFF 0 0 0 1 "AP PADDLE"
          ToggleSmoke -1 0 0X14 2 0 0 1 "Smoke - Toggle"
          SimSpotLight -1 0 0X26 0 0 0 1 "Spotlight"
          AFDragChute -1 0 0X20 2 0 0 1 "Drag Chute Deploy"
          SimFuelDump -1 0 0X20 4 0 0 1 "Dump Fuel"
          SimDropChaff -1 0 0X2D 0 0 0 1 "Drop Chaff (non EWS AC)"
          SimDropFlare -1 0 0X2C 0 0 0 1 "Drop Flare (non EWS AC)"
          AFTriggerCatapult -1 0 0X1C 0 0 0 1 "Abort Catapult"
          AFFullFlap -1 0 0XFFFFFFFF 0 0 0 1 "FLAPS - Full"
          AFNoFlap -1 0 0XFFFFFFFF 0 0 0 1 "FLAPS - Up"
          AFIncFlap -1 0 0X40 0 0 0 1 "FLAPS - Increase"
          AFDecFlap -1 0 0X3F 0 0 0 1 "FLAPS - Decrease"
          AFFullLEF -1 0 0XFFFFFFFF 0 0 0 1 "LEFS - Full"
          AFNoLEF -1 0 0XFFFFFFFF 0 0 0 1 "LEFS - Null"
          AFIncLEF -1 0 0X42 0 0 0 1 "LEFS - Increase"
          AFDecLEF -1 0 0X41 0 0 0 1 "LEFS - Decrease"
          AFWingFoldToggle -1 0 0X11 2 0 0 1 "Wing Fold"
          SimStepFormationLightsUp -1 0 0XFFFFFFFF 0 0 0 1 "Formation Lights - Step Up"
          SimStepFormationLightsDown -1 0 0XFFFFFFFF 0 0 0 1 "Formation Lights - Step Down"
          LoadCockpitDefaults -1 0 0XFFFFFFFF 0 0 0 1 "CKPIT: Cockpit Defaults - Load"
          SaveCockpitDefaults -1 0 0XFFFFFFFF 0 0 0 1 "CKPIT: Cockpit Defaults - Save"
          SimNextWaypoint -1 0 0XFFFFFFFF 0 0 0 1 "SHORT: Next Waypoint"
          SimPrevWaypoint -1 0 0XFFFFFFFF 0 0 0 1 "SHORT: Previous Waypoint"
          SimECMOn -1 0 0XFFFFFFFF 0 0 0 1 "SHORT: Toggle Jammer"
          AFIncExhaust -1 0 0X2F 0 0 0 1 "FCTRL: VTOL-EXHAUST - Increase Angle"
          AFDecExhaust -1 0 0X2F 1 0 0 1 "FCTRL: VTOL-EXHAUST - Decrease Angle"
          CycleEngine -1 0 0X2B 1 0 0 1 "FCTRL: ENGINE - Cycle Engines"
          selectLeftEngine -1 0 0X1A 0 0 0 1 "FCTRL: ENGINE - Select Left Engine"
          selectRightEngine -1 0 0X1B 0 0 0 1 "FCTRL: ENGINE - Select Right Engine"
          selectBothEngines -1 0 0X2B 0 0 0 1 "FCTRL: ENGINE - Select Both Engines"
          AFTriggerReverseThrust -1 0 0XE 0 0 0 1 "FCTRL: ENGINE - Togg. Thrust Reverser"
          OTWToggleFlapDisplay -1 0 0XFFFFFFFF 0 0 0 1 "SIM: Flap Display Toggle"
          OTWToggleEngineDisplay -1 0 0XFFFFFFFF 0 0 0 1 "SIM: Engine Display Toggle"
          ToggleSubTitles -1 0 0XFFFFFFFF 0 0 0 1 "SIM: Toggle Radio Subtitles"
          PrettyFilm -1 0 0XFFFFFFFF 0 0 0 1 "SIM: Pretty Filming (Hide Overlays)"
          OTWToggleFrameRate -1 0 0X21 0 0X2E 4 1 "SIM: Display Frame Rate - Toggle"
          OTWToggleScoreDisplay -1 0 0XFFFFFFFF 0 0 0 1 "SIM: Show Score Display - Toggle"
          OTWToggleOnlinePlayersDisplay -1 0 0XFFFFFFFF 0 0 0 1 "SIM: Show Online Status - Toggle"
          CampaignQuickSave -1 0 0X1F 2 0 0 1 "SIM: Campaign-QuickSave (Host only)"
          CommandsSetKeyCombo -1 0 0X2E 4 0 0 1 "SIM: Key Combination Keys (KeyCombo)"
          ReloadTrackIR -1 0 0X14 0 0X2E 4 1 "SIM: TrackIR Reload"
          OTWSelectHUDMode -1 0 0X2 0 0 0 1 "VIEWINT: HUD Only"
          OTWSelect3DCockpitMode -1 0 0X4 0 0 0 1 "VIEWINT: Pan (3D) Cockpit"
          OTWViewZoomIn -1 0 0X4F 1 0 0 1 "VIEWEXT: Zoom In"
          OTWViewZoomOut -1 0 0X47 1 0 0 1 "VIEWEXT: Zoom Out"
          OTWViewReset -1 0 0X4C 1 0 0 1 "VIEWEXT: Reset View"
          OTWTrackExternal -1 0 0X7 0 0 0 1 "VIEWEXT: Target-To-Self Camera"
          OTWTrackTargetToWeapon -1 0 0X8 2 0 0 1 "VIEWEXT: Target-to-Weapon Camera"
          OTWStepNextAC -1 0 0XD 4 0 0 1 "VIEWEXT: Next Aircraft"
          OTWStepPrevAC -1 0 0XC 4 0 0 1 "VIEWEXT: Previous Aircraft"
          OTWSelectOrbitMode -1 0 0XB 0 0 0 1 "VIEWEXT: Orbit Camera"
          OTWSelectAirFriendlyMode -1 0 0X9 0 0 0 1 "VIEWEXT: Friendly Aircraft Camera"
          OTWSelectGroundFriendlyMode -1 0 0X9 1 0 0 1 "VIEWEXT: Friendly Ground Unit Camera"
          OTWSelectAirEnemyMode -1 0 0X9 2 0 0 1 "VIEWEXT: Enemy Aircraft Camera"
          OTWSelectGroundEnemyMode -1 0 0X9 4 0 0 1 "VIEWEXT: Enemy Ground Unit Camera"
          OTWSelectTargetMode -1 0 0X7 1 0 0 1 "VIEWEXT: Target Camera"
          OTWSelectWeaponMode -1 0 0X8 1 0 0 1 "VIEWEXT: Weapon Camera"
          OTWSelectSatelliteMode -1 0 0X29 0 0 0 1 "VIEWEXT: Satellite Camera"
          OTWSelectFlybyMode -1 0 0XA 1 0 0 1 "VIEWEXT: Flyby Camera"
          OTWSelectIncomingMode -1 0 0X8 0 0 0 1 "VIEWEXT: Incoming Camera"
          OTWSelectChaseMode -1 0 0XA 0 0 0 1 "VIEWEXT: Chase Camera"
          ToggleDisplacementCam -1 0 0XB 1 0 0 1 "VIEWEXT: Toggle Displacement Camera"
          OTWSelectTopGunView -1 0 0XA 2 0 0 1 "VIEWEXT: TopGun Camera"
          OTWSelectNextTopGunView -1 0 0XB 4 0 0 1 "VIEWEXT: Next TopGun View"
          OTWSelectPrevTopGunView -1 0 0XA 4 0 0 1 "VIEWEXT: Prev TopGun View"
          OTWToggleActionCamera -1 0 0X29 1 0 0 1 "VIEWEXT: Action Camera"
          OTWToggleEyeFly -1 0 0XB 2 0 0 1 "VIEWEXT: Toggle EyeFly (Free Cam)"
          RadioAWACSCommand -1 0 0X10 0 0 0 1 "Radio-AWACS"
          RadioWingCommand -1 0 0X11 0 0 0 1 "Radio-Wingman Command"
          RadioElementCommand -1 0 0X12 0 0 0 1 "Radio-Element Command"
          RadioFlightCommand -1 0 0X13 0 0 0 1 "Radio-Flight Command"
          RadioTowerCommand -1 0 0X14 0 0 0 1 "Radio-ATC Message"
          RadioTankerCommand -1 0 0X15 0 0 0 1 "Radio-Tanker Message"
          RadioMessageSend -1 0 0X10 0 0XFFFFFFFF 0 -2 "Radio-Send Message"
          OTWRadioMenuStep -1 0 0X10 0 0X10 1 -2 "Radio-Next Menu"
          OTWRadioMenuStep -1 0 0X10 0 0X10 0 -2 "Radio-Next Menu"
          OTWRadioMenuStepBack -1 0 0X10 1 0X10 1 -2 "Radio-Previous Menu"
          OTWRadioMenuStepBack -1 0 0X10 1 0X10 0 -2 "Radio-Previous Menu"
          RadioMessageSend -1 0 0X11 0 0XFFFFFFFF 0 -2 "Radio-Send Message"
          OTWRadioMenuStep -1 0 0X11 0 0X11 0 -2 "Radio-Next Menu"
          OTWRadioMenuStep -1 0 0X11 0 0X11 1 -2 "Radio-Next Menu"
          OTWRadioMenuStepBack -1 0 0X11 1 0X11 1 -2 "Radio-Previous Menu"
          OTWRadioMenuStepBack -1 0 0X11 1 0X11 0 -2 "Radio-Previous Menu"
          RadioMessageSend -1 0 0X12 0 0XFFFFFFFF 0 -2 "Radio-Send Message"
          OTWRadioMenuStep -1 0 0X12 0 0X12 0 -2 "Radio-Next Menu"
          OTWRadioMenuStep -1 0 0X12 0 0X12 1 -2 "Radio-Next Menu"
          OTWRadioMenuStepBack -1 0 0X12 1 0X12 0 -2 "Radio-Previous Menu"
          OTWRadioMenuStepBack -1 0 0X12 1 0X12 1 -2 "Radio-Previous Menu"
          RadioMessageSend -1 0 0X13 0 0XFFFFFFFF 0 -2 "Radio-Send Message"
          OTWRadioMenuStep -1 0 0X13 0 0X13 1 -2 "Radio-Next Menu"
          OTWRadioMenuStep -1 0 0X13 0 0X13 0 -2 "Radio-Next Menu"
          OTWRadioMenuStepBack -1 0 0X13 1 0X13 0 -2 "Radio-Previous Menu"
          OTWRadioMenuStepBack -1 0 0X13 1 0X13 1 -2 "Radio-Previous Menu"
          RadioMessageSend -1 0 0X14 0 0XFFFFFFFF 0 -2 "Radio-Send Message"
          OTWRadioMenuStep -1 0 0X14 0 0X14 1 -2 "Radio-Next Menu"
          OTWRadioMenuStep -1 0 0X14 0 0X14 0 -2 "Radio-Next Menu"
          OTWRadioMenuStepBack -1 0 0X14 1 0X14 0 -2 "Radio-Previous Menu"
          OTWRadioMenuStepBack -1 0 0X14 1 0X14 1 -2 "Radio-Previous Menu"
          RadioMessageSend -1 0 0X15 0 0XFFFFFFFF 0 -2 "Radio-Send Message"
          OTWRadioMenuStep -1 0 0X15 0 0X15 1 -2 "Radio-Next Menu"
          OTWRadioMenuStep -1 0 0X15 0 0X15 0 -2 "Radio-Next Menu"
          OTWRadioMenuStepBack -1 0 0X15 1 0X15 0 -2 "Radio-Previous Menu"
          OTWRadioMenuStepBack -1 0 0X15 1 0X15 1 -2 "Radio-Previous Menu"
          AFGearUp 0 8 -2 0 0x0 -1
          AFGearDown 1 8 -2 0 0x0 -1
          SimCursorEnable 2 8 -2 0 0x0 -1
          SimToggleMissileCage 3 8 -2 0 0x0 -1
          AFBrakesIn 4 8 -2 0 0x0 -1
          AFBrakesOut 5 8 -2 0 0x0 -1
          SimSelectMRMOverride 6 8 -2 0 0x0 -1
          SimSelectSRMOverride 7 8 -2 0 0x0 -1
          SimSlapSwitch 8 8 -2 0 0x0 -1
          SimArmMasterArm 9 8 -2 0 0x0 -1
          SimSafeMasterArm 10 8 -2 0 0x0 -1
          SimTransmitCom1 11 8 -2 0 0x0 -1
          SimCommsSwitchRight 12 8 -2 0 0x0 -1
          SimTransmitCom2 13 8 -2 0 0x0 -1
          SimCommsSwitchLeft 14 8 -2 0 0x0 -1
          SimAVTRSwitchOff 15 8 -2 0 0x0 -1
          SimAVTRSwitchAuto 16 8 -2 0 0x0 -1
          SimAVTRSwitchOn 17 8 -2 0 0x0 -1
          SimProbeHeatOn 18 8 -2 0 0x0 -1
          SimProbeHeatOff 19 8 -2 0 0x0 -1
          SimRFNorm 20 8 -2 0 0x0 -1
          SimRFQuiet 21 8 -2 0 0x0 -1
          SimMPO 22 8 -2 0 0x0 -1
          SimEmergencyJettison 23 8 -2 0 0x0 -1
          SimExtlMasterNorm 24 8 -2 0 0x0 -1
          SimExtlMasterOff 25 8 -2 0 0x0 -1
          SimRALTON 26 8 -2 0 0x0 -1
          SimRALTSTDBY 27 8 -2 0 0x0 -1
          SimLeftAPSwitch 28 8 -2 0 0x0 -1
          SimRightAPUp 29 8 -2 0 0x0 -1
          SimRightAPMid 30 8 -2 0 0x0 -1
          SimRightAPDown 31 8 -2 0 0x0 -1
          SimTriggerFirstDetent 32 8 -2 0 0x0 -1
          SimPickle 33 8 -2 0 0x0 -1
          SimPinkySwitch 34 8 -2 0 0x0 -1
          SimAPOverride 35 8 -2 0 0x0 -1
          SimMissileStep 36 8 -2 0 0x0 -1
          SimTriggerSecondDetent 37 8 -2 0 0x0 -1
          SimTMSUp 38 8 -2 0 0x0 -1
          SimTMSRight 39 8 -2 0 0x0 -1
          SimTMSDown 40 8 -2 0 0x0 -1
          SimTMSLeft 41 8 -2 0 0x0 -1
          SimDMSUp 42 8 -2 0 0x0 -1
          SimDMSRight 43 8 -2 0 0x0 -1
          SimDMSDown 44 8 -2 0 0x0 -1
          SimDMSLeft 45 8 -2 0 0x0 -1
          SimCMSUp 46 8 -2 0 0x0 -1
          SimCMSRight 47 8 -2 0 0x0 -1
          SimCMSDown 48 8 -2 0 0x0 -1
          SimCmsLeft 49 8 -2 0 0x0 -1
          AFElevatorTrimUp 0 -1 -3 0 0x0 -1
          AFAileronTrimRight 0 -1 -3 2 0x0 -1
          AFElevatorTrimDown 0 -1 -3 4 0x0 -1
          AFAileronTrimLeft 0 -1 -3 6 0x0 -1
          
          
          H P 2 Replies Last reply Reply Quote 0
          • H
            huge @Frederf
            last edited by

            Ok thanks i presumed as much but was just checking there wasnt meant to be a keyfile in the download.
            I really like the FOV view on the thumb btw!

            Not sure if its possible to add a shifted state axis?

            F 1 Reply Last reply Reply Quote 0
            • F
              Frederf @huge
              last edited by

              It is, if you have a specific request I might be able to think up TARGET code for it. There is one more unused DX axis in the given script.

              H 1 Reply Last reply Reply Quote 0
              • H
                huge @Frederf
                last edited by

                Ive always been in need of a rudder axis since i dont have pedals some of those landings can be a bit sketchy rolling out.

                F 1 Reply Last reply Reply Quote 0
                • F
                  Frederf @huge
                  last edited by

                  How about enabling “roll-linked NWS” and using the joystick?

                  1 Reply Last reply Reply Quote 0
                  • jc1J
                    jc1
                    last edited by

                    @Frederf:

                    …
                    Features:

                    • Illumination control by pinky switch

                      I just got a Warthog Throttle and tried your profile by running it in the TARGET editor. The code compiles and runs. But the backlight stays on always. These are the lines of code from your profile that are supposed to control the backlight.

                      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));

                      Nothing changes when I flip the pinky switch (PSF, PSB, PSM). Anything else I need to do to turn the backlight on and off?

                      Edit:
                      Problem Fixed.
                      The reason I had the problem is that I did not have the latest version of firmware installed. The latest is v2.3.

                    1 Reply Last reply Reply Quote 0
                    • P
                      Peter22 @Frederf
                      last edited by

                      I have not idea wht is this….neither how modify anything here…:)

                      F 1 Reply Last reply Reply Quote 0
                      • F
                        Frederf @Peter22
                        last edited by

                        Tell me what you want the behavior to be and I’ll help you make the edit.

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          Guest @Frederf
                          last edited by

                          Can you explain how your throttle works? Specifically, these lines:

                          //Both throttle axes are 4%-100% w/ detent pause, 0% in OFF.
                          MapAxis(&Throttle, THR_LEFT, DX_THROTTLE_AXIS); //THROTTLE AXIS (Throttle)
                          SetCustomCurve(&Throttle, THR_LEFT, LIST(0,4, 65,90, 75,90, 100,100));
                          MapKey (&Throttle, IDLELON, EXEC(“TrimDXAxis(DX_THROTTLE_AXIS, 82);”));
                          MapKeyR (&Throttle, IDLELON, EXEC(“TrimDXAxis(DX_THROTTLE_AXIS, SET(0));”));

                          This is Morphine’s custom curve:

                          SetCustomCurve(&Throttle, THR_LEFT, LIST(0,5, 100,100));

                          F 1 Reply Last reply Reply Quote 0
                          • F
                            Frederf @Guest
                            last edited by

                            The bolded part describes the graph of the input to output mapping of the axis. They are in pairs input,output. When the input is 0% (idle position) the output is 4%. Increasing the lever toward the afterburner detent stop (~65% input) it increases to 90% output. Between 65-75% input which corresponds physically to the afterburner bump the output is a constant 90%. I figured that the throttle would be irritating to set in this range if you wanted a specific value so I made a flat spot. Output increases again from 90 to 100% value past the 75% physical point.

                            You might ask why 4%. Falcon has a feature where you can turn the engine off by pulling the throttle lever all the way back which is more like how the real one works. You turn on a feature in falcon bms.cfg, and then right click the SET AB button in options which puts a red line on the throttle bar graph below which the engine is turned off. But you have to go past it by more than 3%, thus 4% is the smallest jump which allows the feature.

                            DirectInput axes aren’t continuous. You get 2048 discrete values. The IDLE-MIL range by my method is allocated 86% (4-90%) or ~1761 outputs for the dry range. Morphine’s allocation is 5% to ~68% or ~1290 positions. Mine is about 36% more dense with values which should provide a more continuous feeling response for example when AAR. I figured 10% range was sufficient for after burner (~205 positions). If one wants to run minimum after burner with mine you won’t have to balance it on the physical bump.

                            Lines 3 and 4 are shifting and unshifting (trim) the axis output by 82/2048ths (4.003%) when the throttle is moved to the off position which simply presses a button. The result is that when the off button is depressed the output is 4%-4% = 0% and the engine knows to shut off. When the off button is released it undoes this trim and minimum output is 4% once again and the engine knows to be on.

                            In practice this is simpler than the explanation. In Falcon setup one sets the throttle at idle, right clicks the SET AB button, move throttle forward to the afterburner stop and left click the SET AB button. The throttle bar graph is then seen to go from 0% in the off position, 4% (red line) in idle, 90% (green line) at afterburner stop, no increase through a small range at the afterburner stop, and then to 100% at max.

                            ? 1 Reply Last reply Reply Quote 0
                            • ?
                              Guest @Frederf
                              last edited by

                              Interesting. Morphine’s profile does have that OFF-IDLE feature that is very sweet for startup procedures but I wasn’t truly happy with the response from IDLE to MIL. If I udnerstand you correctly, you’re saying that physical travel from IDLE to MIL (0-65 travel) is 4%-90% throttle in game terms, 65-75 travel is “dead,” then 75-100 travel is 90%-100% afterburner, yes? I’m not really fussed with AB as I’ve never had to try to keep tight formation on AB but better response in the normal throttle range would be great.

                              F 1 Reply Last reply Reply Quote 0
                              • F
                                Frederf @Guest
                                last edited by

                                Yes, that’s the notion. I’d actually be surprised if it makes a noticeable difference but better is better.

                                H 1 Reply Last reply Reply Quote 0
                                • H
                                  huge @Frederf
                                  last edited by

                                  Hi Frederf still enjoying this profile of yours but I’m wondering if there’s a way to add the joystick into the profile as I would like to add the rotatedxaxis as mentioned here:

                                  https://www.benchmarksims.org/forum/showthread.php?16647-Mainly-for-Mav-JP-12-degrees-stick-axes-offset&highlight=ssc+offset

                                  I’ve experimented and like the offset but if I add the joystick I loose the cursor axes. Is this a DX amount limitation?

                                  Any info would be great thanks.

                                  F 1 Reply Last reply Reply Quote 0
                                  • F
                                    Frederf @huge
                                    last edited by

                                    Without switching several commands over to keyboard, absolutely. There are 19 DX (18 if you leave out CMS depress) buttons on the stick after all which is most of the 32 limit. But in theory that’s no problem. Keyboard macros aren’t the best but they work. This profile currently uses 7 axes so you’d have to give up one, range knob?, right throttle?, antenna elevation?? and then I’d have 2 for X/Y joystick.

                                    The world needs a decent combined TARGET profile so if you make a list of the 32 “priority” DX controls and which current axis to convert to key commands I’ll write a script for it.

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      Frederf @Frederf
                                      last edited by

                                      New Version!

                                      Frederf’s TARGET Profile
                                      Falcon BMS 4.35
                                      30 DEC 2020

                                      Main Features

                                      • Throttle controller only. Joystick device is treated as separate controller.
                                      • Included key file
                                      • Button numbers mirror closely non-TARGET controller
                                      • Extensive comments showing device binds, functions, button ID numbers, callbacks, and needed BMS file edits
                                      • DirectX assignments (exception instrument lights on ‘i’ and ‘o’)
                                      • Realistic layout
                                      • Cutoff function for two engine aircraft
                                      • Virtual axes by button press
                                      • Landing gear handle
                                      • Common priority functions hands on

                                      Switches

                                      • Cursor and enable on slew control with custom axis curve and inversion, no need to invert Y axis in setup. Adjust curve as desired.
                                      • Uncage, Mic switch press
                                      • Roll AP switch, AP Engage button, inc/dec based on length of press
                                      • Landing Gear Handle, Friction Slider easy to activate heads up, won’t command gear down if air start and left in bad position
                                      • Speed brake switch as himself
                                      • MO/DGFT uses self-cancel to economize on DirectX buttons
                                      • Interior and cockpit lights, pinky switch intelligently uses short throws of switch to adjust panel lights and long throws to gradually inc/dec the flood knob
                                      • Slap switch, LTB there when you need it
                                      • AR door, fuel switch left, moved from keyboard to handy switch this version
                                      • EMCON, fuel switch right, easy silencing when joining the tanker
                                      • Probe heat, moved to engine operate switch left, shared with MPO on the ignition spring loaded position
                                      • CAT I/III, moved to engine operate switch right, shared with E-jettison. Shed stores and end up CAT I in one motion
                                      • Master Arm, APU on
                                      • Horn silence right where the label says
                                      • AVTR, flap switch off, auto, and on in an easy to find switch
                                      • Master lights, still EAC
                                      • AP Pitch, still on the three-position switch, has a 250ms delay because my AP switch flickers revert to simple logic if desired
                                      • Throttle cutoff for both engines just works without enabling and configuring analog “red line”
                                      • COM-IFF, coolie hat, POV2 is enabled to handle this needed control

                                      Axes

                                      • FOV, on the mic switch forward-aft at your thumb
                                      • Both throttle axes
                                      • Antenna elevation, china hat
                                      • Range knob, on the mic switch up-down

                                      (.TMC comments are aligned in TARGET script editor for clearer reading)

                                      include "target.tmh" 
                                      int main()
                                      {
                                      
                                      //TARGET CONFIGURATION
                                          Configure(&Joystick, MODE_EXCLUDED);	//Joystick Excluded
                                          SetKBRate(100, 50); 					//PULSE, DELAY
                                          SetKBLayout(KB_ENG);					//English
                                      	if(Init(&EventHandle)) return 1;
                                      
                                      /* TARGET SCRIPT FOR FALCON BMS 4.35, BMS - Duck v10.tmc */
                                      
                                      //CONTROLLERS
                                      
                                      	//Controller
                                      		//Keyboard
                                      		//**Joystick - HOTAS Warthog**		00-31
                                      		//Thrustmaster Combined				32-63
                                      		//CH PRO PEDALS USB					64-95
                                      
                                      	//AB/Idle Green Line 					90%
                                      
                                      	/*Current Keyfile						BMS - DUCK v18
                                      		Mapping									Function					##	Callback				0x42	
                                      	Joystick - HOTAS Warthog
                                      		DX1  TG1								Trigger (1/2)				0	SimTriggerFirstDetent
                                      		DX2  S2									Weapon Release				1	SimPickle
                                      		DX3  S3									Pinky Switch				2	SimPinkySwitch
                                      		DX4  S4									AP Override					3	SimAPOverride
                                      		DX5  S1									NWS Missile Step AAR		4	SimMissileStep
                                      		DX6  TG2							 	Trigger (2/2)				5	SimTriggerSecondDetent
                                      		DX7  H2U							  	TMS Up						6	SimTMSUp
                                      		DX8  H2R							  	TMS Right					7	SimTMSRight
                                      		DX9  H2D							  	TMS Down					8	SimTMSDown
                                      		DX10 H2L							  	TMS Left					9	SimTMSLeft
                                      		DX11 H3U								DMS Forward					10	SimDMSUp
                                      		DX12 H3R								DMS Right					11	SimDMSRight
                                      		DX13 H3D								DMS Down					12	SimDMSDown
                                      		DX14 H3L								DMS Left					13	SimDMSLeft
                                      		DX15 H4U							  	CMS Up						14	SimCMSUp
                                      		DX16 H4R							  	CMS Right					15	SimCMSRight
                                      		DX17 H4D							  	CMS Down					16	SimCMSDown
                                      		DX18 H4L							  	CMS Left					17	SimCMSLeft
                                      		DX19 H4P 								Not Used					18
                                      		DX20-32 								Not Used				  	19-31
                                      		POVU H1U								Trim Nose Up		   POV2 0	AFElevatorTrimUp
                                      		POVR H1R								Trim Aileron Right	   POV2 2	AFAileronTrimRight
                                      		POVD H1D								Trim Nose Down		   POV2 4	AFElevatorTrimDown
                                      		POVL H1L								Trim Aileron Left	   POV2 6	AFAileronTrimLeft
                                      
                                      	Thrustmaser Combined*/	
                                      		MapKey(&Throttle, SC,		DX1);	  //Cursor Enable				32	SimCursorEnable
                                      		MapKey(&Throttle, MSP,		DX2);	  //Uncage						33	SimToggleMissileCage
                                      	  //DX3  RDRNRM								Landing Light				34	SimLandingLightUp		SimLandingLightMid
                                      	  //DX4  APENG								AP Roll (Dec)				35	SimLeftAPDec
                                      	  //DX5  FC INCR							Landing Gear Up				36	AFGearUp
                                      	  //DX6  FC DECR							Landing Gear Down			37	AFGearDown
                                      		KeyAxis(&Throttle, THR_FC,0, AXMAP2(3,DX5,0,PULSE+DX6));
                                      		MapKey(&Throttle, SPDF,		DX7);	  //Speedbrake In				38	AFBrakesIn
                                      		MapKey(&Throttle, SPDB, 	DX8);	  //Speedbrake Out				39	AFBrakesOut
                                      		MapKey(&Throttle, BSF, 		DX9);	  //Missile Override			40	SimSelectMRMOverrdie
                                      		MapKey(&Throttle, BSB, 		DX10);	  //DGFT						41	SimSelectSRMOverrdie
                                      	  //DX11 CHF															42
                                      	  //DX12 CHB															43
                                      	  //DX13 PSF								Interior Light CW			44	SimInteriorLightCW		SimInstrumentLightCW
                                      	  //DX14 PSB								Interior Light CCW			45	SimInteriorLightCCW		SimInstrumentLightCCW
                                      		MapKey(&Throttle, LTB, 		DX15);	  //Slap Switch					46	SimSlapSwitch
                                      		MapKey(&Throttle, EFLNORM, 	DX16);	  //Air Refueling				47	SimFuelDoorClose		SimFuelDoorOpen
                                      		MapKey(&Throttle, EFRNORM, 	DX17);	  //EMCON						48	SimRFNorm				SimRFQuiet
                                      		MapKey(&Throttle, EOLMOTOR,	DX18);	  //Probe Heat					49	SimProbeHeatOff			SimProbeHeatOn
                                      		MapKey(&Throttle, EORMOTOR,	DX19);	  //CAT I/III					50	SimCATIII				SimCATI
                                      		MapKey(&Throttle, APUON, 	DX20);	  //Master Arm On				51	SimArmMasterArm			SimSafeMasterArm	
                                      		MapKey(&Throttle, LDGH, 	DX21);	  //Horn Silence				52	SimSilenceHorn
                                      		MapKey(&Throttle, FLAPU, 	DX22);	  //AVTR On/Auto				53	SimAVTRSwitchOn			SimAVTRSwitchAuto
                                      		MapKey(&Throttle, FLAPD, 	DX23);	  //AVTR Off/Auto				54	SimAVTRSwitchOff		SimAVTRSwitchAuto
                                      		MapKey(&Throttle, EACON, 	DX24);	  //Master Lights				55	SimExtlMasterNorm		SimExtlMasterOff
                                      											  //Taxi Light					56	SimLandingLightDown		SimLandingLightMid
                                      	MapKey(&Throttle, RDRNRM,	SEQ(DX25,DX3));
                                      											  //AP Roll						57	SimLeftAPInc
                                      	MapKey(&Throttle, APENG,	TEMPO(DX26,DX4,500));
                                      											  //AP Pitch Up/Mid				58	SimRightAPUp			SimRightAPMid
                                      	MapKey(&Throttle, APPAT, 	TEMPO(0,DX27,250));
                                      											  //AP Pitch Down/Mid			59	SimRightAPDown			SimRightAPMid
                                      	MapKey(&Throttle, APALT,	TEMPO(0,DX28,250));
                                      	MapKey(&Throttle, IDLERON, 	DX29);		  //Throttle Cutoff Right		60	SimThrottleIdleDetentRight
                                      	MapKey(&Throttle, IDLELON, 	DX30);		  //Throttle Cutoff Left		61	SimThrottleIdleDetentLeft
                                      	MapKey(&Throttle, EOLIGN, 	DX31);		  //Master Pitch Override		62	SimMPO
                                      	MapKey(&Throttle, EORIGN, 	DX32);		  //Emergency-Jettison			63	SimEmergencyJettison
                                      	MapKey(&Throttle, CSU, DXHATUP);		  //COMM-IFF UHF			POV2 0	SimTransmitCom1
                                      	MapKey(&Throttle, CSR, DXHATRIGHT);		  //COMM-IFF IN				POV2 2	SimCommsSwitchRight
                                      	MapKey(&Throttle, CSD, DXHATDOWN);		  //COMM-IFF VHF			POV2 4	SimTransmitCom2
                                      	MapKey(&Throttle, CSL, DXHATLEFT);		  //COMM-IFF OUT			POV2 6	SimCommsSwitchLeft
                                      
                                      //ADVANCED OPTIONS
                                      
                                      	//VIEW CONTROL
                                      		//Field of View 					  	X Rotation - Thrustmaser Combined
                                      		MapKey(&Throttle, MSR, AXIS(DX_XROT_AXIS,-250,10) ); 
                                      		MapKey(&Throttle, MSL, AXIS(DX_XROT_AXIS, 250,10) );
                                      
                                      	//FLIGHT CONTROL
                                      		//Rudder Axis								Z Axis - CH PRO PEDALS USB 			(Dead Zone Small)
                                      		//Throttle Axis							  Throttle - Thrustmaster Combined
                                      		MapAxis(&Throttle, THR_LEFT, DX_THROTTLE_AXIS);		
                                      		//Right Engine Throttle Axis			  	Z Axis - Thrustmaster Combined
                                      		MapAxis(&Throttle, THR_RIGHT, DX_Z_AXIS);
                                      		//Pitch Axis								Y Axis - Joystick - HOTAS Warthog	(Dead Zone Small)
                                      		//Roll Axis									X Axis - Joystick - HOTAS Warthog	(Dead Zone Small)
                                      
                                      	//AVIONICS CONTROL
                                      		//Radar Antenna Elevation 			  	Z Rotation - Thrustmaster Combined 		(Dead Zone None)
                                      		MapKey(&Throttle, CHF, AXIS(DX_ZROT_AXIS, 60,10) );
                                      		MapKey(&Throttle, CHB, AXIS(DX_ZROT_AXIS,-60,10) );
                                      		//Cursor X									X Axis - Thrustmaser Combined		(Dead Zone None)
                                      		MapAxis(&Throttle, SCX, DX_X_AXIS);
                                      		//Cursor Y									Y Axis - Thrustmaser Combined		(Dead Zone None)
                                      		MapAxis(&Throttle, SCY, DX_Y_AXIS);
                                      		//Range Knob 						  	Y Rotation - Thrustmaser Combined		(Dead Zone None)
                                      		MapKey(&Throttle, MSU, AXIS(DX_YROT_AXIS,-200,10) );
                                      		MapKey(&Throttle, MSD, AXIS(DX_YROT_AXIS, 200,10) );
                                      
                                      //ADDITIONAL CODE
                                      
                                      	//Custom Curve for left and right throttle
                                      	SetCustomCurve(&Throttle, THR_LEFT, LIST(0,0, 65,90, 75,90, 100,100));
                                      	SetCustomCurve(&Throttle, THR_RIGHT, LIST(0,0, 65,90, 75,90, 100,100));
                                      
                                      	//Custom Curve for cursor X and Y
                                      	SetCustomCurve(&Throttle, SCX, LIST(0,0, 10,40, 35,50, 65,50, 90,60, 100,100));
                                      	SetCustomCurve(&Throttle, SCY, LIST(0,100, 10,60, 35,50, 65,50, 90,40, 100,0));
                                      
                                      	//Cockpit Lighting & Backlight Control
                                      	MapKey(&Throttle, PSF, TEMPO(
                                      		PULSE+'i',
                                      		REXEC(0,333,"ActKey(PULSE+KEYON+DX13);"),
                                      		500
                                      	));	
                                      	MapKey(&Throttle, PSM, PULSE+LED(&Throttle, LED_INTENSITY, 0));
                                      	MapKey(&Throttle, PSB, TEMPO(
                                      		PULSE+'o',
                                      		REXEC(1,333,"ActKey(PULSE+KEYON+DX14);"),
                                      		500
                                      	));	
                                      
                                      	//Slider Axis (Not Used)
                                      	MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS);
                                      
                                      /*	
                                      	\User\Config\FALCON BMS.CFG
                                      	set g_bHotasDgftSelfCancel 1
                                      	set g_bUseAnalogIdleCutoff 0
                                      	set g_nNumOfPOVs 2
                                      	set g_nPOV1DeviceID 2
                                      	set g_nPOV1ID 0
                                      	set g_nPOV2DeviceID 3
                                      	set g_nPOV2ID 0 
                                      */
                                      
                                      /*	
                                      	\User\Config\DeviceSorting.txt
                                      	{0402044F-0000-0000-0000-504944564944} "Joystick - HOTAS Warthog"
                                      	{FFFF044F-0000-0000-0000-504944564944} "Thrustmaster Combined"
                                      	{00F2068E-0000-0000-0000-504944564944} "CH PRO PEDALS USB "
                                      */
                                      
                                      }
                                      int EventHandle(int type, alias o, int x){ DefaultMapping(&o, x); }
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post

                                      78

                                      Online

                                      9.4k

                                      Users

                                      22.1k

                                      Topics

                                      362.1k

                                      Posts
                                      Benchmark Sims - All rights reserved ©