virgo47 Posted December 24, 2023 Share Posted December 24, 2023 This is perhaps a more general question, but I don't know where to ask it - and as I'm trying to solve MiG-21 Radio squelch on/off binding, I'll ask here. I have Squech on and off commands available for binding: {cockpit_device_id = devices.RADIO, down = device_commands.Squelch, value_down = 0, name = _('Squelch Off'), category = _('Radio Communications')}, {cockpit_device_id = devices.RADIO, down = device_commands.Squelch, value_down = 1, name = _('Squelch On'), category = _('Radio Communications')}, There is no obvious on/off toggle for binding. I tried to search for something about this topic, but the results were quite noisy, mostly related to the "toggle switch" on some joysticks and how to deal with them - but that's not related. Is there a way how to construct a binding for toggle? Is it some different value or something else? Or is it simply not provided by the module coding? L-39, F-5E, F/A-18C, MiG-15, F-86F, C-101, FC3 Yak-52, P-47, Spitfire UH-1H, Ka-50 III NTTR, PG, SY, Chnl, Norm2 Supercarrier, NS430, WWII VKB STECS+Gladiator/Kosmosima DCS Unscripted YouTube Link to comment Share on other sites More sharing options...
Red Yeti Posted December 27, 2023 Share Posted December 27, 2023 I'm not sure if I understand you correctly. Do you want to switch between the modes with a push button? Link to comment Share on other sites More sharing options...
virgo47 Posted December 27, 2023 Author Share Posted December 27, 2023 6 minutes ago, Red Yeti said: I'm not sure if I understand you correctly. Do you want to switch between the modes with a push button? Exactly. Many modules offer both separate ON + OFF bindings and additional toggle binding for switches. Does this require a separate "device_command" that is not implemented for MiG-21bis or is there a way to somehow "compose" such a functionality from existing ON + OFF bindings? I tried value_down -1 (inspired by how L-39 does it), but that didn't work. L-39, F-5E, F/A-18C, MiG-15, F-86F, C-101, FC3 Yak-52, P-47, Spitfire UH-1H, Ka-50 III NTTR, PG, SY, Chnl, Norm2 Supercarrier, NS430, WWII VKB STECS+Gladiator/Kosmosima DCS Unscripted YouTube Link to comment Share on other sites More sharing options...
Red Yeti Posted December 28, 2023 Share Posted December 28, 2023 I'm sorry. I don't know how to implement this without additional software (AutoHotkey or similar). Link to comment Share on other sites More sharing options...
Recommended Posts