Configure virtual weapon selector HAT
Posted: Sun May 16, 2021 15:38
Hi everyone,
I was reading the manual for VKBDevCfg and I stumbled upon a section 4.3.3. RadioButton. In the provided example in this section it is explained how to use the radio buttons as weapon selector, basically selecting what weapon should the trigger fire. I am not sure whether this functionality is supposed to be supported by the VKB firmware alone or whether this functionality relies on the game supporting toggling weapons.
What I am trying to configure:
I am flying IL-2 Great Battles sim and in it, I fly a plane that has both bombs and rockets loaded. The sim only provides button mappings for bomb release and rocket release and no controls like toggle select bombs or toggle select rockets (even though some of the planes had such switches in real life). Basically, I would like to configure a RadioButton group to let's say a thumb HAT on MCG grip and depending on which weapon I select by this HAT switch, the trigger would then send a different logical button press to the game to release that weapon.
Just to provide a concrete example of what I want: I push the thumb HAT to the left, nothing happens, but in the joystick firmware, bombs were selected and prepared for the trigger. Afterwards, I press the trigger and a bomb is released. Next, I push the thumb HAT to the right. Again, nothing happens, but internally, rockets were selected and prepared for the trigger. Now, when I press the trigger, a rocket is fired.
Is it possible to configure such simulated weapon selector HAT in the VKBDevCfg without the sim/game supporting mappings for weapon toggle? I haven't found a way how to modify the logical output of a button (trigger) based on the state of some other other (radio) buttons.
Thanks!
I was reading the manual for VKBDevCfg and I stumbled upon a section 4.3.3. RadioButton. In the provided example in this section it is explained how to use the radio buttons as weapon selector, basically selecting what weapon should the trigger fire. I am not sure whether this functionality is supposed to be supported by the VKB firmware alone or whether this functionality relies on the game supporting toggling weapons.
What I am trying to configure:
I am flying IL-2 Great Battles sim and in it, I fly a plane that has both bombs and rockets loaded. The sim only provides button mappings for bomb release and rocket release and no controls like toggle select bombs or toggle select rockets (even though some of the planes had such switches in real life). Basically, I would like to configure a RadioButton group to let's say a thumb HAT on MCG grip and depending on which weapon I select by this HAT switch, the trigger would then send a different logical button press to the game to release that weapon.
Just to provide a concrete example of what I want: I push the thumb HAT to the left, nothing happens, but in the joystick firmware, bombs were selected and prepared for the trigger. Afterwards, I press the trigger and a bomb is released. Next, I push the thumb HAT to the right. Again, nothing happens, but internally, rockets were selected and prepared for the trigger. Now, when I press the trigger, a rocket is fired.
Is it possible to configure such simulated weapon selector HAT in the VKBDevCfg without the sim/game supporting mappings for weapon toggle? I haven't found a way how to modify the logical output of a button (trigger) based on the state of some other other (radio) buttons.
Thanks!