Hey, I'm looking for a way to detect a keystroke and then set a boolean to true. How would I do this?
I dont mean typing something then pressing enter, Just when a key is held down, turn a boolean true, and when its not held down, make it false.
You'll need to get into OS specific code, or use an external library for this.
If you're on windows, you can use GetASyncKeystate (search for it on MSDN).
What do you need this for?
Thanks for the reply.
I am trying to make a little keyboard program in C++, I'm just learning and I'm experimenting with different things.