flankerjun Posted January 7, 2020 Posted January 7, 2020 I use TM throttle for hornet,it is perfect for A10C control,but for hornet,it needs more multiple position button options,the TM throttle can control Hornet Flaps with a 3-positon button,but for the landing gear, i need 2 buttons,one for down,the other for up,Why not we can control with one two-positon button,push up,landing gear up,push down,the landing gear up,this would be much better. the master arm,speed brake,hook,landing gear,lights control,refuelling probe,etc... all these fuctions needs improvement A-10C Warthog,Flaming Cliffs 3,F-16C VIPER,F/A-18C HORNET,Super Carrier,AV-8B Night Attack V/STOL,Mi-8MTV2 Magnificent Eight,Black Shark 2,SA342 Gazelle,UH-1H Huey,Persian Gulf Map,Combined Arms Intel i7-14700KF| Colorful iGame GeForce RTX 2070 AD Special OC GDDR6 8G | Acer PREDATOR 32g DDR5 6000MHZ | MSI PRO Z790A-MAX | Kingston KC3000 1T SSD M.2 | ST 12T HDD 7200RPM | AOC 2790PQU 27'' 4K |Thrustmaster Hotas Warthog PC
Bobik2002 Posted January 7, 2020 Posted January 7, 2020 You can do that with t.a.r.g.e.t software. I done that and works perfectly. Sent from my Mi A1 using Tapatalk Ryzen 9 5900x | 32GB DDR4 | RTX 3090 | 32GB RAM
Gruman Posted January 7, 2020 Posted January 7, 2020 TARGET or any other Joystick Mapper could do this, but the fewer Apps running, the better. I guess you are familiar with the "Special for Joystick" Tab. I know, not all functions are mapped there, but those could be looked at if you like to change the control .lua yourself. I agree, all those functions should be accessible without the need to mod the controls or usage of any Joystick Mapper (Target, Joy2Key, etc). Instead of even more bindable function, each function should have more settings. Let us define On - Off State, Toggle and timed functions. Intel I9 10900k @5.1GHz | MSI MEG Z490 Unify | Corsair Vengeance 64GB - 3600MHz | EVGA RTX 3090 FTW3 VPC T-50 Base /w Viper & Hornet Grip | VPC Rotor TCS Pro w/ Hawk-60 Grip | TM TPR LG C2 42" | Reverb G2 | TIR 5 | PointCtrl | OpenKneeboard
LeCuvier Posted January 7, 2020 Posted January 7, 2020 (edited) 16 additions to "default.lua" I have made 16 additions so far to the file "default.lua". The 2-position switch for Gear UP/DOWN is the 3rd one in the list: {down = SMS_commands.MasterArmSw, up = SMS_commands.MasterArmSw, cockpit_device_id = devices.SMS, value_down = 1.0, value_up = 0.0, name = _('Master Arm Switch 2-Pos ARM/SAFE'), category = {_('Instrument Panel'), _('Master Arm Panel')}}, {down = hotas_commands.THROTTLE_EXTERIOR_LIGTHS, up = hotas_commands.THROTTLE_EXTERIOR_LIGTHS, cockpit_device_id = devices.HOTAS, value_down = 1.0, value_up = 0.0, name = _('Exterior Lights 2-Pos ONOFF'), category = {_('Throttle Grip'), _('HOTAS')}}, {down = iCommandPlaneGearUp, up = iCommandPlaneGearDown, name = _('Landing Gear Control Handle 2-Pos UP/DOWN'), category = {_('Left Vertical Panel')}}, {down = gear_commands.HookHandle, up = gear_commands.HookHandle, cockpit_device_id = devices.GEAR_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Arresting Hook Handle 2-Pos UP/DOWN'), category = {_('Right Vertical Panel')}}, {down = HUD_commands.HUD_AltitudeSw, up = HUD_commands.HUD_AltitudeSw, cockpit_device_id = devices.HUD, value_down = 1.0, value_up = 0.0, name = _('Altitude Switch 2-Pos BARO/RADAR'), category = {_('Instrument Panel'), _('HUD Control Panel')}}, {down = cpt_commands.CanopySwitchClose, up = cpt_commands.CanopySwitchOpen, cockpit_device_id = devices.CPT_MECHANICS, value_down = -1.0, value_up = 1.0, name = _('Canopy Control Switch 2-Pos OPEN/CLOSE'), category = {_('Right Wall'), _('Systems')}}, {down = oxygen_commands.OBOGS_ControlSw, up = oxygen_commands.OBOGS_ControlSw, cockpit_device_id = devices.OXYGEN_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('OBOGS Control Switch 2-Pos ON/OFF'), category = {_('Left Console')}}, {down = cptlights_commands.HookBypass, up = cptlights_commands.HookBypass, cockpit_device_id = devices.CPT_LIGTHS, value_down = -1.0, value_up = 1.0, name = _('Hook Bypass 2-Pos Switch FIELD/CARRIER'), category = {_('Left Vertical Panel')}}, {down = gear_commands.LaunchBarSw, up = gear_commands.LaunchBarSw, cockpit_device_id = devices.GEAR_INTERFACE, value_down = -1.0, value_up = 1.0, name = _('Launch Bar Control 2-Pos Switch RETRACT/EXTEND'), category = {_('Left Vertical Panel')}}, {down = extlights_commands.LdgTaxi, up = extlights_commands.LdgTaxi, cockpit_device_id = devices.EXT_LIGHTS, value_down = 1.0, value_up = 0.0, name = _('LDG/TAXI LIGHT Switch 2-Pos ON/OFF'), category = {_('Left Vertical Panel')}}, {down = ctrl_commands.WingFoldPull, pressed = ctrl_commands.WingFoldSelect, cockpit_device_id = devices.CONTROL_INTERFACE, value_down = 1.0, value_pressed = -1.0, name = _('Wing Fold Control PULL-FOLD'), category = {_('Right Vertical Panel')}}, {down = ctrl_commands.WingFoldSelect, up = ctrl_commands.WingFoldPull, cockpit_device_id = devices.CONTROL_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Wing Fold Control SPREAD-STOW'), category = {_('Right Vertical Panel')}}, {down = fuel_commands.DumpSw, up = fuel_commands.DumpSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 1.0, value_up = -1.0, name = _('Fuel Dump Switch 2-Pos ON/OFF'), category = {_('Left Console'), _('Fuel Control Panel')}}, {down = 3256, up = 3256, cockpit_device_id = 0, value_down = -1.0, value_up = 0.0, name = _('Flashlight 2-Pos ON/OFF'), category = {_('View Cockpit'), _('Right Console')}}, {down = iCommandPlaneShowKneeboard, up = iCommandPlaneShowKneeboard, value_down = 1.0, value_up = -1.0, name = _('Kneeboard 2-Pos SHOW/HIDE'), category = _('Kneeboard')}, {down=gear_commands.EmergParkHandleSelectPark, up=gear_commands.EmergParkHandleOnOff,cockpit_device_id=devices.GEAR_INTERFACE,value_down=1.0,value_up=-1.0,name=_('Emergency/Parking Brake Handle - CCW+Pull'),category=_('[13] Front Left - Vertical Panel')},I could have achieved the same result with TARGET if all my game controllers were from Thrustmaster. But my Button Box is from DSD and my Joystick is from VIRPIL. So, TARGET is useless for me. Caution though: the 2-position commands work with 2-position switches which stay in the ON or in the OFF position; not with spring-loaded pushbuttons. Edited January 7, 2020 by LeCuvier LeCuvier Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5
LeCuvier Posted January 7, 2020 Posted January 7, 2020 ...speed brake... all these fuctions needs improvement Why would the speed brake need improvement? Bindings are perfect for the speed brake switch on the WH throttle. Bind "Speed Bbrake Switch - EXTEND" to switch aft (JOY_BTN8) and "Speed Brake Switch - RETRACT/OFF" to switch forward (JOY_BTN7). LeCuvier Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5
Talvid Posted July 6, 2021 Posted July 6, 2021 On 1/7/2020 at 2:16 AM, LeCuvier said: 16 additions to "default.lua" I have made 16 additions so far to the file "default.lua". The 2-position switch for Gear UP/DOWN is the 3rd one in the list: {down = SMS_commands.MasterArmSw, up = SMS_commands.MasterArmSw, cockpit_device_id = devices.SMS, value_down = 1.0, value_up = 0.0, name = _('Master Arm Switch 2-Pos ARM/SAFE'), category = {_('Instrument Panel'), _('Master Arm Panel')}}, {down = hotas_commands.THROTTLE_EXTERIOR_LIGTHS, up = hotas_commands.THROTTLE_EXTERIOR_LIGTHS, cockpit_device_id = devices.HOTAS, value_down = 1.0, value_up = 0.0, name = _('Exterior Lights 2-Pos ONOFF'), category = {_('Throttle Grip'), _('HOTAS')}}, {down = iCommandPlaneGearUp, up = iCommandPlaneGearDown, name = _('Landing Gear Control Handle 2-Pos UP/DOWN'), category = {_('Left Vertical Panel')}}, {down = gear_commands.HookHandle, up = gear_commands.HookHandle, cockpit_device_id = devices.GEAR_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Arresting Hook Handle 2-Pos UP/DOWN'), category = {_('Right Vertical Panel')}}, {down = HUD_commands.HUD_AltitudeSw, up = HUD_commands.HUD_AltitudeSw, cockpit_device_id = devices.HUD, value_down = 1.0, value_up = 0.0, name = _('Altitude Switch 2-Pos BARO/RADAR'), category = {_('Instrument Panel'), _('HUD Control Panel')}}, {down = cpt_commands.CanopySwitchClose, up = cpt_commands.CanopySwitchOpen, cockpit_device_id = devices.CPT_MECHANICS, value_down = -1.0, value_up = 1.0, name = _('Canopy Control Switch 2-Pos OPEN/CLOSE'), category = {_('Right Wall'), _('Systems')}}, {down = oxygen_commands.OBOGS_ControlSw, up = oxygen_commands.OBOGS_ControlSw, cockpit_device_id = devices.OXYGEN_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('OBOGS Control Switch 2-Pos ON/OFF'), category = {_('Left Console')}}, {down = cptlights_commands.HookBypass, up = cptlights_commands.HookBypass, cockpit_device_id = devices.CPT_LIGTHS, value_down = -1.0, value_up = 1.0, name = _('Hook Bypass 2-Pos Switch FIELD/CARRIER'), category = {_('Left Vertical Panel')}}, {down = gear_commands.LaunchBarSw, up = gear_commands.LaunchBarSw, cockpit_device_id = devices.GEAR_INTERFACE, value_down = -1.0, value_up = 1.0, name = _('Launch Bar Control 2-Pos Switch RETRACT/EXTEND'), category = {_('Left Vertical Panel')}}, {down = extlights_commands.LdgTaxi, up = extlights_commands.LdgTaxi, cockpit_device_id = devices.EXT_LIGHTS, value_down = 1.0, value_up = 0.0, name = _('LDG/TAXI LIGHT Switch 2-Pos ON/OFF'), category = {_('Left Vertical Panel')}}, {down = ctrl_commands.WingFoldPull, pressed = ctrl_commands.WingFoldSelect, cockpit_device_id = devices.CONTROL_INTERFACE, value_down = 1.0, value_pressed = -1.0, name = _('Wing Fold Control PULL-FOLD'), category = {_('Right Vertical Panel')}}, {down = ctrl_commands.WingFoldSelect, up = ctrl_commands.WingFoldPull, cockpit_device_id = devices.CONTROL_INTERFACE, value_down = 1.0, value_up = 0.0, name = _('Wing Fold Control SPREAD-STOW'), category = {_('Right Vertical Panel')}}, {down = fuel_commands.DumpSw, up = fuel_commands.DumpSw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 1.0, value_up = -1.0, name = _('Fuel Dump Switch 2-Pos ON/OFF'), category = {_('Left Console'), _('Fuel Control Panel')}}, {down = 3256, up = 3256, cockpit_device_id = 0, value_down = -1.0, value_up = 0.0, name = _('Flashlight 2-Pos ON/OFF'), category = {_('View Cockpit'), _('Right Console')}}, {down = iCommandPlaneShowKneeboard, up = iCommandPlaneShowKneeboard, value_down = 1.0, value_up = -1.0, name = _('Kneeboard 2-Pos SHOW/HIDE'), category = _('Kneeboard')}, {down=gear_commands.EmergParkHandleSelectPark, up=gear_commands.EmergParkHandleOnOff,cockpit_device_id=devices.GEAR_INTERFACE,value_down=1.0,value_up=-1.0,name=_('Emergency/Parking Brake Handle - CCW+Pull'),category=_('[13] Front Left - Vertical Panel')}, I could have achieved the same result with TARGET if all my game controllers were from Thrustmaster. But my Button Box is from DSD and my Joystick is from VIRPIL. So, TARGET is useless for me. Caution though: the 2-position commands work with 2-position switches which stay in the ON or in the OFF position; not with spring-loaded pushbuttons. notice the second line THROTTLE_EXTERIOR_LIGTHS .. lights is obviously mispelled. Correct it and save, and the switch will begin working again VR rig -
LeCuvier Posted July 6, 2021 Posted July 6, 2021 8 hours ago, Iceman555 said: notice the second line THROTTLE_EXTERIOR_LIGTHS .. lights is obviously mispelled. Correct it and save, and the switch will begin working again Yes, this was mis-spelled in the stock files as well some updates ago, and correct spelling would not have worked. The updated collection of added bindings is posted here: https://forums.eagle.ru/topic/270080-lua-editing-for-additional-key-binds-tutorial-no-discussion-here-please/?tab=comments#elControls_4691325_menu LeCuvier Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5
Recommended Posts