Xeno 1-1 HuDz Posted October 18, 2021 Share Posted October 18, 2021 Hi, would it be possible to add key binds for hmcs power. At the moment i have to lean forward and recentre my vr view to beable to reach the power switch, then recentre normal, kind of annoying. Cheers. Link to comment Share on other sites More sharing options...
Munkwolf Posted October 18, 2021 Share Posted October 18, 2021 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 2 Link to comment Share on other sites More sharing options...
MarcT-NL Posted October 26, 2021 Share Posted October 26, 2021 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 More sharing options...
Munkwolf Posted October 26, 2021 Share Posted October 26, 2021 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 1 Link to comment Share on other sites More sharing options...
MarcT-NL Posted October 27, 2021 Share Posted October 27, 2021 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 More sharing options...
Recommended Posts