I was repeating the answer because the guy above asked the same question; I wasn't responding to you
About your problem:I think I should clarify what a Mode button is - it is a regular button and it's called a Mode button because it says under it, on the base, Mode. It is not the same with mode button in game x or in game y. Its function is to switch some buttons on the device (in this case all of them) to other inputs so the same joystick button could get assign twice in a game. There is actually no Mode function in VKBDevCfg, that button is programmed as Shift and any other button on the joystick could get programmed the same way.
When you are saying 'It doesn't change the mode button' what do you mean by that?
'The mode button remains a programmable button' - of course it does, all the buttons on the joystick could get programmed in different ways.
'When I change the variables to 64 (for Il2) and 1 ( to indicate two devices), the "green mode" becomes nothing.' - here you are right, I've just tested it and there's something that doesn't work in the 64 buttons virtual controller mode. Load it up in 32 buttons for now, it's working there, I've just tested it and seems fine.