Joystick Gremlin Plugin to control LEDs? Yes there is!! Updated Version
Posted: Sun Feb 19, 2023 22:35
Has anyone created a Joystick Gremlin Plugin to control VKB LEDs?
There is a nice plugin for Virpil controllers that could be used as a template, but the key component is an executable file "VPC_LED_Control.exe" that you pass LED information to and then it makes the changes. Is there a similar program for VKB devices?
There is a python package (pyvkb) that holds the basic modules for controlling LEDs on VKB devices. However, in the examples I've seen, you can't import packages within a JG plugin. There might be a way to integrate the necessary pyvkb modules directly into a plugin, but I think there are a number of package dependences that make this difficult.
There is a project on github that utilizes pyvkb to control VKB LEDs while playing MSFS. I think this program runs parallel to MSFS and polls for aircraft states and modifies the VKB device accordingly. The games I play are old (Mig Alley, CFS) so I don't think that information is available, even if I wanted to have a separate process running in parallel, which I don't.
Like many (some, a few?) people, I have a Gladiator NXT and a TWCS throttle. I use VKBDevCfg-C.exe to configure the LEDs and JG to integrate my stick and throttle. I like to have a LED toggle on/off for certain states, but because the LEDs are setup separately from the button mapping, the process can easily get out of sync. In addition, I would love to have the VKB rgb LED tied to throttle functions as well.
Has anyone attempted a plugin like this?
The Virpil JG plugin can be found here: https://forum.virpil.com/index.php?/topic/5832-upgrade-to-vpc_ledspy-to-be-a-lot-faster/
The pyvkb package can be found here: https://github.com/ventorvar/pyvkb
The project code using pyvkb in MSFS can be found here: https://github.com/tiberiusteng/vkb-msfs-led
I found an article on JG plugins here: https://25.wf/posts/2020-11-03-joystick-gremlin.html
Any other sources for me to explore?
There is a nice plugin for Virpil controllers that could be used as a template, but the key component is an executable file "VPC_LED_Control.exe" that you pass LED information to and then it makes the changes. Is there a similar program for VKB devices?
There is a python package (pyvkb) that holds the basic modules for controlling LEDs on VKB devices. However, in the examples I've seen, you can't import packages within a JG plugin. There might be a way to integrate the necessary pyvkb modules directly into a plugin, but I think there are a number of package dependences that make this difficult.
There is a project on github that utilizes pyvkb to control VKB LEDs while playing MSFS. I think this program runs parallel to MSFS and polls for aircraft states and modifies the VKB device accordingly. The games I play are old (Mig Alley, CFS) so I don't think that information is available, even if I wanted to have a separate process running in parallel, which I don't.
Like many (some, a few?) people, I have a Gladiator NXT and a TWCS throttle. I use VKBDevCfg-C.exe to configure the LEDs and JG to integrate my stick and throttle. I like to have a LED toggle on/off for certain states, but because the LEDs are setup separately from the button mapping, the process can easily get out of sync. In addition, I would love to have the VKB rgb LED tied to throttle functions as well.
Has anyone attempted a plugin like this?
The Virpil JG plugin can be found here: https://forum.virpil.com/index.php?/topic/5832-upgrade-to-vpc_ledspy-to-be-a-lot-faster/
The pyvkb package can be found here: https://github.com/ventorvar/pyvkb
The project code using pyvkb in MSFS can be found here: https://github.com/tiberiusteng/vkb-msfs-led
I found an article on JG plugins here: https://25.wf/posts/2020-11-03-joystick-gremlin.html
Any other sources for me to explore?