If the user keeps pushing the key down, I would expect the message "A PRESSED DOWN" to appear once, and then, nothing should come until the A key is relesed.
Instead, I get:
A PRESSED DOWN
A RELEASED
A PRESSED DOWN
A RELEASED
...
until I release the key. Is this really wanted or is it a bug I made?
Key-repeat is actually wanted. But I suppose this could still be improved some day by adding either a parameter to suppress repeat events or maybe add another flag to the events to mark them as repeats. You can add that to the feature-wish-tracker if you want. I guess it would be useful.
A PRESSED DOWN
A PRESSED DOWN
A PRESSED DOWN
...
A RELEASED
In this case you can detect the repeats if you want to (ie, for text input in your GUI) but also ignore multiple pressed down events if you're controlling a character.
A PRESSED DOWN
A PRESSED DOWN
A PRESSED DOWN
...
A RELEASED
In this case you can detect the repeats if you want to (ie, for text input in your GUI) but also ignore multiple pressed down events if you're controlling a character.
So I could be wrong, but this may be a bug.
Yes, you are right. At least on Linux that's what you get - should be the same on Windows.