Jump to content

Custom key-bindings


Zabuza
 Share

Recommended Posts

So I thought it might be useful for LNS and us to collect our custom key-bindings. Here are mine:

 

There was no joystick assignment, just keyboard:

{down = 3011, value_down = 1.0, cockpit_device_id = devices.TESTRADIO2, name = 'FR22 Push-to-talk', category = 'Radios'},
{down = 3011, value_down = 1.0, cockpit_device_id = devices.TESTRADIO, name = 'FR24 Push-to-talk', category = 'Radios'},
{down = iCommandPlaneEject, name='Eject (3 times)', category = 'Flight Control'},
{down = 3302, cockpit_device_id = devices.WEAPON_SYSTEM, value_down =   1.0, name = "Weapon jettison Cover", category = "Weapons"},
{down = 3303, cockpit_device_id = devices.WEAPON_SYSTEM, value_down =   1.0, name = "Weapon jettison Button", category = "Weapons"},
{down = 3402, cockpit_device_id = devices.WEAPON_SYSTEM, value_down =   1.0, name = "Fuel tank jettison Cover", category = "Weapons"},
{down = 3320, cockpit_device_id = devices.WEAPON_SYSTEM, value_down =   1.0, name = "Fuel tank jettison Button", category =  "Weapons"},
{down = 3001, cockpit_device_id = devices.ERRORPANEL, value_down = 1.0,    name = 'Master caution reset', category = 'Caution panel'},

T1 Fix (Hold) for HOTAS 2-stage Trigger:

{down = 3006, up = 3005, cockpit_device_id = devices.NAVIGATIONPANEL,  value_down = 1.0, value_up = 1.0, name = "T1 Fix (Hold)",  category = "Radar"},

Commands for 2-stage switches:

{down = 3304, up = 3304, cockpit_device_id = devices.ENGINEPANEL,   value_down = 1.0, value_up = 0.0, name = 'Autothrottle mode AFK  (2-switch)', category = 'Autopilot'},
{down = 3301, up = 3301, cockpit_device_id = devices.FLIGHTDATAUNIT,   value_down = 1.0, value_up = 0.0, name = 'SAS mode SPAK flight   stabiliser (2-switch)', category = 'Autopilot'},
{down = 3001, up = 3001, cockpit_device_id = 7, value_down = 1.0,   value_up = 0.0, name = 'Reversal (2-switch)', category = 'Flight   Control'},

As you might know, they go into:

DCS\Mods\aircraft\AJS37\Input\joystick\default.lua

 

after that they are assignable through the regular interface of DCS.

  • Like 1
Link to comment
Share on other sites

So I thought it might be useful for LNS and us to collect our custom key-bindings.

Good idea :idea: Mine are gathered in this thread.

A warrior's mission is to foster the success of others.

i9-9900K | MSI RTX 3080Ti Suprim X | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

You paste the code into the file specified in the OP.

 

DCS\Mods\aircraft\AJS37\Input\joystick\default.lua

 

It will enable you to assign joystick, or other controller, buttons to those functions.

ASUS ROG Maximus VIII Hero, i7-6700K, Noctua NH-D14 Cooler, Crucial 32GB DDR4 2133, Samsung 950 Pro NVMe 256GB, Samsung EVO 250GB & 500GB SSD, 2TB Caviar Black, Zotac GTX 1080 AMP! Extreme 8GB, Corsair HX1000i, Phillips BDM4065UC 40" 4k monitor, VX2258 TouchScreen, TIR 5 w/ProClip, TM Warthog, VKB Gladiator Pro, Saitek X56, et. al., MFG Crosswind Pedals #1199, VolairSim Pit, Rift CV1 :thumbup:

Link to comment
Share on other sites

That's basically the file which specifies which stuff is assignable in the DCS option menu.

 

You can add it with, for example, notepad++ and add your own entries. Then you will be able to assign buttons to them and if you click them, they will execute the stuff you have defined in that file.

Link to comment
Share on other sites

  • 2 months later...

How do I assign the weapon safety button on my joystick,

"Trigger safety bracket ARM" & "Trigger safety bracket SAFE" ,

to a 1 toggle button (on/off)? is it possible?

/thanx


Edited by CoBlue

i7 8700k@4.7, 1080ti, DDR4 32GB, 2x SSD , HD 2TB, W10, ASUS 27", TrackIr5, TMWH, X-56, GProR.

Link to comment
Share on other sites

Uff, a toggle switch can't be done with those key-binding files alone, as long as they don't create such a key.

You would need something like T.A.R.G.E.T or other software which is capable of saving variables to remember the current state (on/off). Or you could use joystick or hotkey software which internally presses an unused key like '8' on the first press and on the second press '9'. Then you would only need to map those two keys in DCS itself.


Edited by Zabuza
Link to comment
Share on other sites

It's completely possible if he's talking about a toggle switch that holds an input when left on. It's basically how mine is set up, but for the first detent of my trigger. I can't remember if it was a default binding or one I made.

Intel 9600K@4.9GHz, Asus Z390, 32GB DDR4, EVGA RTX 3070, Custom Water Cooling, 970 EVO 1TB NVMe

34" UltraWide 3440x1440 Curved Monitor, 21" Touch Screen MFD monitor, TIR5

My Pit Build, VKB Gunfighter Pro w/WH Grip, TMWH Throttle, MFG Crosswinds W/Combat Pedals, Cougar MFDs, Custom A-10C panels, Custom Helo Collective, SimShaker with Transducer

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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