I am setting up a physical G1000 panel from Simkits/TRC, which doesn't explicitly support X-Plane. However, they have a piece of software that maps any interaction with the physical buttons & knobs to a keyboard command. Using this, I have a 1:1 mapping of buttons/knobs to keyboard shortcuts which X-Plane has been configured to recognize.
This works for everything except heading selector, course selector and barometer. For these, X-Plane 11 recognizes the commands in the settings menu where keyboard commands can be mapped (rotating the knob causes X-Plane to register the corresponding keyboard shortcut), but when flying, rotating the same knob does not trigger the intended changes - there is still a knob turning sound generated by X-Plane indicating the keystrokes are making it through, but the heading selector value (as an example) remains unchanged. Even more confusingly, tapping the same keyboard shortcut using the keyboard changes the heading selector. This issue does not affect all knobs either - the range knob and the comms/nav radio freq. selector knobs work perfectly. I even tried programming one of those knobs which work correctly to instead change the heading, but even that failed.
What could be going on here? I have tried multiple keyboard shortcuts including ones with just a single key, and this issue persists. Clearly X-Plane is getting the virtual keyboard command, else it wouldn't register when in the settings menu, but somehow it's losing the ability to react to that same set of virtual keystrokes when they happen while flying.
Any help/ideas would be deeply appreciated.