468,140 Members | 1,466 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,140 developers. It's quick & easy.

Trapping the "escape" key before my directx window loads.

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
Nov 17 '05 #1
0 880

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Lyn | last post: by
4 posts views Thread by Peter | last post: by
5 posts views Thread by Prince Kumar | last post: by
2 posts views Thread by Tim Marshall | last post: by
reply views Thread by Jeff Groves | last post: by
3 posts views Thread by Aaron | last post: by
27 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.