Key-press detection
- From: "David Sweeney" <David.Sweeney8@xxxxxxxxxxxxxx>
- Date: Tue, 28 Aug 2007 17:35:30 +0100
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!
.
- Follow-Ups:
- Re: Key-press detection
- From: user923005
- Re: Key-press detection
- From: CBFalconer
- Re: Key-press detection
- From: Justin.SpahrSummers@xxxxxxxxx
- Re: Key-press detection
- From: Richard Heathfield
- Re: Key-press detection
- From: Jim Langston
- Re: Key-press detection
- Prev by Date: Re: efficient comparison
- Next by Date: Re: Key-press detection
- Previous by thread: efficient comparison
- Next by thread: Re: Key-press detection
- Index(es):
Relevant Pages
|