Yes, but I was believing at least scancodes were unique for each key on a specific keyboard.Rescator wrote:storing scan codes make no sense as someone with two keyboards that hit the same key may generate different scancodes
I discovered it's not so. For example on some keyboards the digits on the keypad have the same scancodes as the first row of digits from left to right. On others, like mine, the scancodes of the keypad's home, end, pgup, pgdn are the same as in the brown group just left of the keypad and so on.
I though scancode could have been useful in some cases, for example because they remain constant for the keypad independently from the num/lock status, while the virtual codes generated are depending from it.
But even if used in mapping mode (the user press the key it want to be associated to a function) the fact they are not guaranteed to be unique inside a single keyboard limit they usefulness.
What once was a standard (the XT keyboard from DOS times) it's not so standard anymore and scancode assignments have taken a wild turn.
Maybe I'll support them anyway, since it's not a burden, and in the worst scenario the user can simply not use them.