OK this will require a little reflection. I've been working on my terminal emulation for quite some time and am getting in the polishing phase. I've prepared code for handling key repeating if a key is held. But, here's the issue:
I get my keys from GetKey(). This works really well for 99.9% of my needs. But, as soon as I wanted to figure out if a key is held down, from the GetKey() back to a KeyDown(), I stumbled upon a big issue.
GetKey() returns ascii values and in that regards, it doesn't have any idea where the key is placed on the keyboard. On the other hand, KeyDown() is exactly the location of the key on the keyboard. As we all know, keyboards come in all shapes and form, from various countries around the world. A Russian, french, English, north american, etc. keyboard is all unique to each other, which GetKey() doesn't care about. Yet, when you want to code something about key auto repeat, you can't place the ascii code to the key instantly, as scancodes vary from each keyboard layout.
If anyone has answers as to how I could read the auto repeat from the keyboard controller, or if I could get that from a win api, that would be of great help!
Cheers.
I get my keys from GetKey(). This works really well for 99.9% of my needs. But, as soon as I wanted to figure out if a key is held down, from the GetKey() back to a KeyDown(), I stumbled upon a big issue.
GetKey() returns ascii values and in that regards, it doesn't have any idea where the key is placed on the keyboard. On the other hand, KeyDown() is exactly the location of the key on the keyboard. As we all know, keyboards come in all shapes and form, from various countries around the world. A Russian, french, English, north american, etc. keyboard is all unique to each other, which GetKey() doesn't care about. Yet, when you want to code something about key auto repeat, you can't place the ascii code to the key instantly, as scancodes vary from each keyboard layout.
If anyone has answers as to how I could read the auto repeat from the keyboard controller, or if I could get that from a win api, that would be of great help!
Cheers.