Jump to content

SA-342L Allow for Bi-Directional Right/Left Pylon Arming Switches


Recommended Posts

Posted

So, in the default SA-342 controls, the right/left pylon arms are toggle switches. I want to use the TMWH Throttle EAC and RDR ALTM switches for these. But the problem with these (or, indeed, any of the TMWH Throttle base switches) is that I have to flip them off and then back on again to effect a toggle. The switches can easily get out of sync, and it is not always easy to keep track of the virtual world state vis a vis the physical world state. Very confusing in the heat of the moment, especially as you have to glance down inthe cockpit to see the state of the switches and then sync the throttle base etc. etc.

 

So I did the following modification. This allows for the throttle switches to directly mimic the state of the cockpit switches: flip up to on, flip down to off. No muss, no fuss.

 

In: "Mods\aircraft\SA342\Input\joystick\default.lua", under the

 

keyCommands = {

 

section, add the following:

 

-- [**CUSTOM**]

{down = device_commands.Button_21,cockpit_device_id = devices.WEAPONS, up = device_commands.Button_21,cockpit_device_id = devices.WEAPONS, value_down = 1, value_up = 0, name = _('(Custom) SA342 Left Arm Toggle'), category = _('(Custom) SA342 Weapons Panel')},

{down = device_commands.Button_23,cockpit_device_id = devices.WEAPONS, up = device_commands.Button_23,cockpit_device_id = devices.WEAPONS, value_down = 1, value_up = 0, name = _('(Custom) SA342 Right Arm Toggle'), category = _('(Custom) SA342 Weapons Panel')},

 

This file will almost certainly be overwritten during an update, so either be prepared to copy it over again and again, or, better yet, manage it through JSGME. For your convenience, I've attached a JSGME-ready archive incorporating the above.

AC-SA342-Controls-Custom-Toggles.zip

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...