Jump to content

Recommended Posts

Posted (edited)

The DCS controls for the F/A-18 are inconsistent. While some controls allow the use of 2- or 3-position switches, others rely solely on separate ON and OFF or toggle options. Although this setup works for a keyboard, it forces HOTAS users to manually toggle switches both off and on for every state change, which is inconvenient and unnatural.

To address this, I implemented new 2-position switch options for the Fuel Dump Switch and LTD/R Switch. These controls now function as proper 2-position switches. Additionally, when the "synchronise control device state at mission start" option is disabled, it should still be possible to synchronise switch positions by cycling them with a few ON/OFF toggles.

C:\Program Files\DCS_World\Mods\aircraft\FA-18C\Input\FA-18C\joystick\default.lua:


{    down = fuel_commands.DumpSw,                        up = fuel_commands.DumpSw,                    cockpit_device_id = devices.FUEL_INTERFACE,            value_down =  1.0,        valueup = -1.0,name = ('Fuel Dump Switch - 2-pos ON/OFF'),
...
{    down = tgp_commands.LtdrArm_EXT,                up = tgp_commands.LtdrArm_EXT,                cockpit_device_id = devices.TGP_INTERFACE,        value_down =  1.0,        valueup = -1.0,name = ('LTD/R Switch - 2-pos ARM/SAFE'),

 

There are probably other controls that could benefit from similar improvements. Unfortunately, each update overwrites default.lua, making it challenging to maintain these changes. It would be ideal if these enhancements were included as default options in future updates.

Edited by elegz
Posted

I recommend to use the Command Injector by @Quaggles. With this solution, your default.lua adds are in default.lua files under Saved Games. See

https://forum.dcs.world/topic/270487-quaggles-dcs-input-command-injector-mod-store-custom-input-commands-safely-in-saved-games-instead-of-merging-them-with-developer-changes-each-update/#elControls_4651461_menu

This involves replacing the original "Data.lua" under "...Scripts\Input" with the one modified by the author. You obviously have to back this modified file up, but it's only this one file as opposed to multiple "default.lua" (depending on how many aircraft you have). But the big advantage of this solution is that you don't have to rework your mofified "default.lua" when ED makes changes/additions to the original one.

Also, lots of additions were compiled by @Munkwolf. They are available here:

https://github.com/Munkwolf/dcs-community-keybinds

  • Like 2

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

  • Recently Browsing   0 members

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