little commands as I have started to learn,mmm there
is lot more in C.May be I have to change my game to
window mode.Is it possible to check the number of keys
pressed while my game is running in dos.
--- Jim Kindley <[email protected]> wrote:
> If your game is running on "Windows" and is not in a__________________________________________________
> dos mode, there
> is a WM_KEYDOWN message sent to your program when
> any key is pressed.
> Then when the key is released a WM_KEYUP is sent to
> your program. By
> trapping these two commands you can check as a or 20
> keys are pressed.
> Jim
>
> --- In Lasertank@y..., yogesh yogesh
> <streatcat99@y...> wrote:
> > ...hi,
> > it's long time since i have sent mail.
> > I thought I could make a samll game in C.I have a
> > small doubt in it,here it is...If the player1 and
> > player2 simultaneously presses one button each
> then I
> > want two functions for player1 and player2 to be
> > performed simoltaneously,but using a kbhit() WE
> COULD
> > check whether a single key is pressed or
> not.consider
> > if player1 want to move to the right and player2
> want
> > to move to the left and both presses the required
> keys
> > simoultaneously.Then it is possible to fullfill
> the
> > request of both the player but HOW ???
> > I tried a method,I don't know to explain but
> this
> > method could be made succesfull if I could check
> the
> > number of keys pressed in the keyboard.Can we
> check
> > number of keys pressed in the keyboard,Is there
> any
> > other command.
> >
> > Sorry,I could not upload my program since I am
> > browsing outside.plz help me....
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Find a job, post your resume.
> > http://careers.yahoo.com
>
>
> ------------------------ Yahoo! Groups Sponsor
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com