Hi all,
Trying to add additional keybinds to the SU25 using the following method, (https://github.com/Quaggles/dcs-input-command-injector) to make the most of my Virpil control panel. I have run into a hiccup and can't figure out why. I'm attempting to remap the SU25's Laser to be a 2 position on/off switch instead of default single button on/off. I have added these lines to a default.lua in the correct folder, however it only gives me the new keybind to "Laser On" (top code line) and not off, which I can't work out why. Is it because this switch for the laser is hardcoded to only be a single entry on/off configuration?
DCS log isn't showing any coding errors.
return {
keyCommands = {
-- Sensors
{down = iCommandPlaneLaserRangerOn, name = _('Laser Designator On'), category = _('Jim')},
{down = iCommandPlaneLaserRangerOff, name = _('Laser Designator Off'), category = _('Jim')},
}
}
I successfully added controls to the Ka50 the same way with success (converting single on/off > 2 position on/off) but the SU25 won't have a bar of it.
Any help is appreciated, I'm stumped.
Jim