Jump to content

Keybinds for HMCS power - VR QOL


Xeno 1-1 HuDz

Recommended Posts

It would be nice to have them in the base game. If you're cool with using a mod, I've got those in the keybinds project: https://github.com/Munkwolf/dcs-community-keybinds/blob/main/InputCommands/A-10C_2/Input/A-10C_2/joystick/default.lua

		{down = 3001, cockpit_device_id = 75, value_down = 1, name = _('HMCS Power On'), category = {_('Custom'), _('HMCS Power')}},
		{down = 3001, up = 3001, cockpit_device_id = 75, value_down = 1, value_up = 0.0, name = _('HMCS Power On else Off (2-way Switch)'), category = {_('Custom'), _('HMCS Power')}},
		{down = 3001, cockpit_device_id = 75, value_down = 0.0, name = _('HMCS Power Off'), category = {_('Custom'), _('HMCS Power')}},
		{down = 3001, cockpit_device_id = 75, value_down = -1, name = _('HMCS Power Battery'), category = {_('Custom'), _('HMCS Power')}},
		{down = 3001, up = 3001, cockpit_device_id = 75, value_down = -1, value_up = 0.0, name = _('HMCS Power Battery else Off (2-way Switch)'), category = {_('Custom'), _('HMCS Power')}},

 

File is formatted for use with Quaggles mod, which allows you to put custom binds in your saved games folder: https://github.com/Quaggles/dcs-input-command-injector

  • Like 2
Link to comment
Share on other sites

On 10/18/2021 at 8:48 PM, Munkwolf said:

It would be nice to have them in the base game. If you're cool with using a mod, I've got those in the keybinds project: https://github.com/Munkwolf/dcs-community-keybinds/blob/main/InputCommands/A-10C_2/Input/A-10C_2/joystick/default.lua

		{down = 3001, cockpit_device_id = 75, value_down = 1, name = _('HMCS Power On'), category = {_('Custom'), _('HMCS Power')}},
		{down = 3001, up = 3001, cockpit_device_id = 75, value_down = 1, value_up = 0.0, name = _('HMCS Power On else Off (2-way Switch)'), category = {_('Custom'), _('HMCS Power')}},
		{down = 3001, cockpit_device_id = 75, value_down = 0.0, name = _('HMCS Power Off'), category = {_('Custom'), _('HMCS Power')}},
		{down = 3001, cockpit_device_id = 75, value_down = -1, name = _('HMCS Power Battery'), category = {_('Custom'), _('HMCS Power')}},
		{down = 3001, up = 3001, cockpit_device_id = 75, value_down = -1, value_up = 0.0, name = _('HMCS Power Battery else Off (2-way Switch)'), category = {_('Custom'), _('HMCS Power')}},

 

File is formatted for use with Quaggles mod, which allows you to put custom binds in your saved games folder: https://github.com/Quaggles/dcs-input-command-injector

Munkwolf, could you elaborate on that ?  Do I just have to add these 5 lines to the default.lua, and then I can bind the switch ?  Or do I need to install a mod ?

Link to comment
Share on other sites

9 minutes ago, MarcT-NL said:

Munkwolf, could you elaborate on that ?  Do I just have to add these 5 lines to the default.lua, and then I can bind the switch ?  Or do I need to install a mod ?

You can just add those lines in the default.lua... but a downside of that approach is that after DCS updates you'll have to redo edit(s), because updates or repairs will reset those default lua files.

I'd suggest using Quaggles Input Command Injector mod: https://github.com/Quaggles/dcs-input-command-injector

That mod allows you to put custom binds in an InputCommands folder in your Saved Games\DCS folder, where they don't get wiped out during updates or repairs.

All the files in the keybinds project are formatted for use with Quaggles mod.

The base InputCommands zip file in Quaggles mod is the InputCommands_Skeleton folder in the keybinds project, where it's got the folders and files for all modules, but with no custom binds defined (blank canvas for your own binds). Then the 'InputCommands' folder in the keybinds project has lots of extra binds in it.

You can download the latest full set of keybinds by clicking on Code > Download on the keybinds project page. Copy the InputCommands folder from that download into your Saved Games\DCS folder, and if Quaggles mod is running you should see extra controls available in DCS.

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

image.png

  • Like 1
Link to comment
Share on other sites

Thanks. I already edit a bunch of .LUA-files after eacht update. Because ED, or 3rd parties wont fix it. That's the world we live in. There is more te be gained by selling unfinished products. Owww.... now I sounds cynical again. Oh wel. Thanks very much for the code. I'll try that later.

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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