What you need is a 3-stage design.
DeviceLink form IL-2 will be used to send/receive data via UDP.
The available data depends.
Stock IL-2 has a limited set available only, and when playing online, it's even more limited.
So you'd need a customized DeviceLink mod to suit your needs.
That's usually not available off the shelf because it has to match the game version and it has to meet your very personal requirements.
Read: You'll have to do this yourself.
2nd Stage is an app to tranlate the UDP data from DeviceLink to commands for you MMJoy2 device.
You need an app that can send/receive data to/from DeviceLink on one and, and establish a connection to your MMJoy2 device via DirectInput in order to read joytick/button inputs and send back commands to control the LEDs.
This app is highly dependent on the DeviceLink data provided (which comes from your custom DeviceLink mod) and the MMJoy2 setup you choose, i.e. the number and assignment of buttons, axis, LEDs and such.
The LED commands are being sent by using the "LEDControl" tool which ships with MMJoy2, using command line parameters to send the predefined commands available to it.
There is no general setup for this.
You'd need to do this part yourself as well, because it will only suit your very personal needs and no one's else.
3rd Stage is MMJoy2, a suitable board (see
https://github.com/MMjoy/mmjoy_en/wiki/Controllers-(compatible-base-boards) ), an LED controller (IMHO WS2811 is what MMJoy2 supports) and the matching MMJoy Setup.
Again, this is a very special thing tied to your needs only.
Nothing "off the shelf" available.
Design, purchase, build, test... it's all your task.
![Cheers ]cheers[](https://www.sas1946.com/main/Smileys/akyhne/occasion14.gif)
Mike