I made an account to get help here. I'm new to programming (in c++).
I was wondering if there is a way to make a program wait for a specific key press, while ignoring all other key presses until the key I have selected is pressed.
For example, I'm doing a countdown timer program that counts from 30 down to 0, and I would like for it to reset automatically when I press the "v" key. So it would ignore other random key presses until "v" is pressed. Also, it must be doable without having to hit enter as well preferably.
You might be better asking in the windows programming section about this, because what you want to accomplish cant be done with just C++ alone, you need to use the windows API to get keyboard key press input.