Re: Key-press detection
- From: "Jim Langston" <tazmaster@xxxxxxxxxxxxxx>
- Date: Tue, 28 Aug 2007 09:59:00 -0700
"David Sweeney" <David.Sweeney8@xxxxxxxxxxxxxx> wrote in message
news:OYGdnUcGVZFJ00nbnZ2dnUVZ8tChnZ2d@xxxxxxxxx
I am using C++ (with the Visual C++ compiler) on Windows XP, and I am
hoping to develop a simple computer game. I would like to know if there is
a way to detect which key the user is pressing, eg, if the user is pressing
'a', can that be transferred into a character? Can you write:
char c = GetKeyPress();
or something similar?
Mny thanks for help on this!
Many ways, depending on your program and if you want to use window's
callback functions and what language you're using.
What langauge ARE you using?
.
- Follow-Ups:
- Re: Key-press detection
- From: Ben Bacarisse
- Re: Key-press detection
- References:
- Key-press detection
- From: David Sweeney
- Key-press detection
- Prev by Date: Key-press detection
- Next by Date: Re: Key-press detection
- Previous by thread: Key-press detection
- Next by thread: Re: Key-press detection
- Index(es):
Relevant Pages
|