Hello,
I'm currently writing a directx program with C++, but it takes a while to
load the files necessary for the directx. When the directx window loads, it
can quit the program with the 'escape' key by using the keydown events
provided by directx libraries.
What I would like to do is be able to quit the program before it finishes
loading if the user presses the 'escape' key during the load. I will use a
boolean variable to determine whether the key is pressed, and will check at
regular intervals during the loading process. But my problem is how to
determine whether the escape key has been pressed using C++, ideally, is
there any way i can monitor the keyboard input outside the program to make
sure I can catch the 'escape' key? Or is there a different approach to my
problem?
Thanks a lot!
YiFai