Ok, i compiled wxWidgets again, its code is a little different it doesn't have 
ctrl variable,
 i added the same prinfts except 
ctrl var, and i got the same numbers, 
A is 1792 on ENG layout when Serbian is on top of it in the settings, but everything works unlike in CB.
1. KEY: 308  
2. KEY: 308  
4. KEY: 0  RV: 0 
1. KEY: 1729  
2. KEY: 1729  
4. KEY: 1729  RV: 0 
It doesn't make sense why would position in the layout list change anything other but the actual position?
So I think this is mostly bug in the OS, but because CB handles ctrl differently it shows up only in there.
p.s i just saw that we are actually neighbors, haha