Advertisement

Key press

Started by February 01, 2003 05:20 AM
1 comment, last by OSN 21 years, 9 months ago
how can i make an action on pressing one key? not saying "case"s what i''m saying is only pressing without pressing the "enter"
in C++ try GetAsyncKeyState(VK_*);
where VK_* is the key you want to check for ie

VK_ESC is the escape key, VK_RIGHT is the right arrow key, "A" is the A Key, and so on

Neil

WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!
WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!
Advertisement
you just want something to happen upon any key being pressed? (same concept as the "Press any key to continue..." message?)

there''s always getch() in that case

This topic is closed to new replies.

Advertisement