Greetings -
I figured out a good way to use any MIDI controller as an input to DCS including MIDI rotary encoders, which wasn't all that easy to do.
Using open source VJoy and FreePIE, I've found this setup to work really well. A MIDI keyboard is probably not an ideal control panel, but I've have one on my desk for years next to the throttle. I use it in VR to control things like cockpit lighting, NV googles, flaps, etc. It's pretty easy to add stuff to it.
FreePIE uses python scripting to map controllers like MIDI, mouse, keyboard, joysticks and even trackIR and many other things together. It supports VJoy, which provides a virtual joystick that appears in DCS. For example, you can set up FreePIE to push a button on the virtual joystick if you press a button on the MIDI controller. You can then map it in DCS easily.
I also replaced my keyboard emulator (JoyToKey) with it, so I have everything pulled together into one script file. For example, I set up the dial on the left of the throttle to act as a rotary switch to toggle through 8 different views based on the position of the dial.
I attached the script that I use which has some examples. Unless you have the same MIDI keyboard (PMIDIKPD50) and the TM16000M, you'll need to heavily modify the script. However, hopefully the examples are helpful. The timing configuration in the script for the rotary encoders is my main contribution. I could not find any other solutions for that, so this is what I came up with.
Would like to know if anyone is doing something similar or if there are good midi controllers worth looking at.
- dcs_pie.zip