Rotary encoders on QMK powered keyboard unreliable input - why?

I just received a miniMacro5c keypad but installed it with 5 rotary encoders. I’ve reflashed it with modified firmware and the outputs mapped to the same keyboard keys I use for things like AP heading and altitude adjust, trim, and COM1 adjust. If I use the knobs to enter data into Notepad++ it works perfect, every detent on turning any knob in both directions produces the right character.

But when I try it in FS2020 and I’m flying I see that the sim is hardly receiving anything from the keypad. For example, if I twist the knob that should send a series of '5’s to the sim then it might register 1 in 10 or so, very random. If I press the ‘5’ on the main keyboard it registers every one. On the other hand, if I’m in a text entry field in FS2020, like a search box, and I twist a knob then every character is registered again properly.

Can anyone guess what could be wrong, please?

Many thanks

did you solve it?

Yes, I did eventually, but I haven’t used it for ages and can’t remember what I did. It was a combination of playing around with FSUIPC and the software I had to load to the encoder. I think I had to add a delay between successive characters sent from the encoder plus make sure each was sent for a suitable duration. But in the end, it was too unreliable and now I make do with the standard keyboard.