virgo47 Posted December 24, 2023 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-4E, F-5E, F-14, F/A-18C, MiG-15, F-86F, AJS-37, C-101, FC2024 Yak-52, P-47, Spitfire, CE2 UH-1H, Mi-8, Ka-50 III, SA342 NTTR, PG, SY, Chnl, Norm2, Kola, DE Supercarrier, NS430, WWII, CA VKB STECS+Gladiator/Kosmosima+TPR DCS Unscripted YouTube "Favourite" bugs: 1) Object local camera fast/slow inverted, 2) Yak-52 toggles not toggling, 3) all Caucasus ATC bugs
Red Yeti Posted December 27, 2023 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?
virgo47 Posted December 27, 2023 Author 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-4E, F-5E, F-14, F/A-18C, MiG-15, F-86F, AJS-37, C-101, FC2024 Yak-52, P-47, Spitfire, CE2 UH-1H, Mi-8, Ka-50 III, SA342 NTTR, PG, SY, Chnl, Norm2, Kola, DE Supercarrier, NS430, WWII, CA VKB STECS+Gladiator/Kosmosima+TPR DCS Unscripted YouTube "Favourite" bugs: 1) Object local camera fast/slow inverted, 2) Yak-52 toggles not toggling, 3) all Caucasus ATC bugs
Red Yeti Posted December 28, 2023 Posted December 28, 2023 I'm sorry. I don't know how to implement this without additional software (AutoHotkey or similar).
Recommended Posts