Thank you guys, interesting points.
I guess I should also link this site, which allows to upload your own code and type it as an exercize.
http://www.speedcoder.net/lessons/
A couple of days ago I finally got my first mechanical keyboard, but I have a problem in my message handling code.
Basically, when I keep a button held, I get totally different messages now:
before, with the basic dome keyboard, I was getting something like:
| key down
key down
key down
key down
key down
key down
key down
key up
|
and that' obviously what I want, but now with the new keyboard, I get:
| key down
key up
key down
key up
key down
key up
key down
key up
key down
key up
|
But of course the button is being released just a single time... I would like to ignore, if possible, those repeated keyup messages, but on MSDN I've read that for a wm_keyup message the repeat count is always 0...
Is that a problem with my specific keyboard, or is that a behaviour of all mechanical keyboards?
Should I use another way of getting keyboard input?