http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

R: How to captue enter, up, down, left, right and Fx



Yeas, sure.....the getchar() function get char value without enter the
return key....but it display it on the screen.....:)
so, use getch() instead of getchar(), because it don't print the char on the
screen....

----- Original Message -----
From: Eudoxus3 <Eudoxus@freeuk.com>
To: Game programmer <gameprogrammer@gameprogrammer.com>
Sent: Sunday, September 05, 1999 12:45 PM
Subject: Re: How to captue enter, up, down, left, right and Fx


> On Sun 05 Sep, justin howard wrote:
> > The number ten being returned is the ASCII code for it I believe.
> > Check an ascii table.
> > I think ENTER is equivalent to 0x10 or &H10 or Hexadecial 10 in
otherwords.
> > Hope that helps
> > >From: "AcidNaught" <luisfertv@geocities.com>
> > >Subject: How to captue enter, up, down, left, right and Fx
> > >  clrscr();
> > >  flushall();
> > >  c = getchar();
>
> Yes, the `getchar()` function returns the value of the character entered.
> Some functions are annoying (like scanf()`) because they only give a value
> once return has been pressed.
>
> The arrow keys won't give a value via `getchar()` because they don't have
> any ASCII values associated with them.
>
> Btw: ASCII stands for American Standard Character Information Interchange.
> Just thought u might like 2 no.
>
>
> Regards,
>
> Matt. W.
> --
> ***  eudoxus@freeuk.com  ***  http://members.xoom.com/eudoxusM/
>                  mwebster@apsoft.co.uk
>
> =================================================================
> To SUBSCRIBE or UNSUBSCRIBE please visit
> http://gameprogrammer.com/mailinglist.html
>
>

=================================================================
To SUBSCRIBE or UNSUBSCRIBE please visit
http://gameprogrammer.com/mailinglist.html