LeCuvier Posted June 11, 2020 Posted June 11, 2020 (edited) I added the following commands to the file "default.lua". These create new bindings for a number of commands which in the stock file require two pushbuttons each. With the added bindings you can use a single maintained 2-position (ON/OFF) switch instead of 2 pushbuttons per command. {down = device_commands.Button_35, up = device_commands.Button_35, cockpit_device_id = devices.CONTROLS, value_down = -1.0, value_up = 1.0, name = _('Undercarriage 2-Pos UP/DOWN'), category = {_('Systems'), _('Hydraulic system')}}, {down = device_commands.Button_39, up = device_commands.Button_39, cockpit_device_id = devices.CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Compressibilty Recovery Flaps 2-Pos EXTD/RETR'), category = {_('Flight Control'), _('Systems')}}, {down = device_commands.Button_26, up = device_commands.Button_26, cockpit_device_id = devices.MAIN_SWITCH_BOX, value_down = 1.0, value_up = 0.0, name = _('Pitot Heat 2-Pos ON/OFF'), category = {_('Main Switch Box'), _('Systems')}}, {down = device_commands.Button_32, up = device_commands.Button_32, cockpit_device_id = devices.MAIN_SWITCH_BOX, value_down = 1.0, value_up = 0.0, name = _('Battery Switch 2-Pos ON/OFF'), category = {_('Front Dash'), _('Systems')}}, {down = device_commands.Button_24, up = device_commands.Button_24, cockpit_device_id = devices.MAIN_SWITCH_BOX, value_down = 1.0, value_up = 0.0, name = _('Generator Switch 2-Pos ON/OFF'), category = {_('Main Switch Box')}}, {down = device_commands.Button_19, up = device_commands.Button_19, cockpit_device_id = devices.K14_GUNSIGHT, value_down = 0.0, value_up = 1.0, name = _('Gunsight fixed ring 2-Pos ON/OFF'), category = _('K-14 gunsight')}, {down = device_commands.Button_28, up = device_commands.Button_28, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 0.3, value_up = 0.0, name = _('Magnetos 2-Pos BOTH/OFF'), category = {_('Front Dash'), _('Engine Controls')}}, {down = device_commands.Button_28, up = device_commands.Button_28, cockpit_device_id = devices.MAIN_SWITCH_BOX, value_down = 1.0, value_up = 0.0, name = _('Oil Dilution Switch 2-Pos ON/OFF'), category = {_('Main Switch Box'), _('Engine Controls')}}, {down = device_commands.Button_7, up = device_commands.Button_7, cockpit_device_id = devices.WEAPONS, value_down = -1.0, value_up = 0.0, name = _('Gun Safety 2-Pos FIRE/SAFE'), category = _('Weapons')},Edit 12-JUN-2020: As I'm running out of easily used buttons I was looking for a way to avoid using extra buttons for switch covers. I found a solution for the gun safety and compressibility recovery flap switches: {down = device_commands.Button_3, up = device_commands.Button_3, pressed = device_commands.Button_7, cockpit_device_id = devices.WEAPONS, value_down = 1.0, value_pressed = -1.0 , value_up = 0.0, name = _('Gun Safety 2-Pos and Cover'), category = _('Weapons')}, {down = device_commands.Button_36, up = device_commands.Button_36, pressed = device_commands.Button_39, cockpit_device_id = devices.CONTROLS, value_down = 1.0, value_pressed = 1.0, value_up = 0.0 , name = _('Compressibilty Recovery Flaps 2-Pos and Cover'), category = {_('Flight Control'), _('Systems')}},The solution takes advantage of the fact that, when you close the respective cover, the switch automatically reverts to the UP position. I 've bound the command for the recovery flaps to the "Speedbrake Aft" switch on my TM WH throttle. When I pull the switch aft and hold it, the cover opens and the flaps extend. When I have recovered from the dive, I release the switch and that closes the cover and makes the flaps retract. One might argue that this solution is a cheat, but I can live with that. Bomb arming switches & covers: {down = device_commands.Button_11, up = device_commands.Button_11, pressed = device_commands.Button_13, cockpit_device_id = devices.WEAPONS, value_down = 1.0, value_up = 0.0, value_pressed = 1.0, name = _('Left Wing Bomb Arm & Cover'), category = {_('Weapons'), _('Input.Generic.drop_ordinance_arming_panel')}}, {down = device_commands.Button_15, up = device_commands.Button_15, pressed = device_commands.Button_17, cockpit_device_id = devices.WEAPONS, value_down = 1.0, value_up = 0.0, value_pressed = 1.0, name = _('Right Wing Bomb Arm & Cover'), category = {_('Weapons'), _('Input.Generic.drop_ordinance_arming_panel')}}, {down = device_commands.Button_19, up = device_commands.Button_19, pressed = device_commands.Button_21, cockpit_device_id = devices.WEAPONS, value_down = 1.0, value_up = 0.0, value_pressed = 1.0, name = _('Belly Bomb Arm & Cover'), category = {_('Weapons'), _('Input.Generic.drop_ordinance_arming_panel')}}, Edited June 12, 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
Recommended Posts