Re: Can 2 or more keys fire keydown simultaneously?
- From: "jmev7" <jmev7@xxxxxxxxxx>
- Date: Fri, 14 Jul 2006 08:49:29 -0500
Actually, they do press them at the same time, and hold them down
continuously. It's the old "pong" game, and it allows users to move their
paddles simultaneously.
Thanks.
"Michael C" <nospam@xxxxxxxxxx> wrote in message
news:Oe9C0oupGHA.148@xxxxxxxxxxxxxxxxxxxxxxx
"jmev7" <jmev7@xxxxxxxxxx> wrote in message
news:e96prk$fgq$1@xxxxxxxxxxxxxxxxxxxxx
I want to create a game, allowing two players to control their characters
simultaneously. I tried using the keypress function, but only one key can
trigger this even at a time, resulting in a lack of control of player's
characters. I wasn't sure how to word this for a usenet search, so I'm
sorry if the question has been asked and answered already.
Can anyone assist me with this? Is there perhaps an API I should be using
instead?
Only one key will ever fire the keydown or keypress at one time. This is
not a problem though and your game should work fine like that anyway
(surely the users don't actually push the key at the exact same momento).
Thanks.
.
- Follow-Ups:
- Re: Can 2 or more keys fire keydown simultaneously?
- From: Michael C
- Re: Can 2 or more keys fire keydown simultaneously?
- References:
- Can 2 or more keys fire keydown simultaneously?
- From: jmev7
- Re: Can 2 or more keys fire keydown simultaneously?
- From: Michael C
- Can 2 or more keys fire keydown simultaneously?
- Prev by Date: Re: Classes and subclassing??
- Next by Date: Re: RichTextBox Font problem
- Previous by thread: Re: Can 2 or more keys fire keydown simultaneously?
- Next by thread: Re: Can 2 or more keys fire keydown simultaneously?
- Index(es):
Relevant Pages
|