|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: How to captue enter, up, down, left, right and Fx
I think they are in Qbasic manual. Or even simpler create small program which displays all of them ----- Original Message ----- From: Peter Peterssen <getoutnow@Hotmail.com> To: <gameprogrammer@gameprogrammer.com> Sent: Tuesday, September 07, 1999 2:03 PM Subject: RE: How to captue enter, up, down, left, right and Fx > Get an old Printer Manual. There are all the ASCII codes nice and Pretty. I > think so. Thats how i find the ASCII codes.. > > > >From: "Paul Robson" <probson@powerup.com.au> > >Reply-To: gameprogrammer@gameprogrammer.com > >To: <gameprogrammer@gameprogrammer.com> > >Subject: RE: How to captue enter, up, down, left, right and Fx > >Date: Sun, 5 Sep 1999 23:34:15 +1000 > > > >If you're going to be programming in windows, which I assume you are seeing > >as you are using open GL.. i think that you can't use getchar().. don't you > >have to prespond to the WM_KEYPRESSED message or something? I'm a kind of > >a > >beginner to game programming (meaning that i've dabbled for a long time but > >not done anything serious) and am very new to windows programming, but i > >understand that most of the dos stuff doesn't really work. > > > > > > > > > -----Original Message----- > > > From: gameprogrammer-owner@gameprogrammer.com > > > [mailto:gameprogrammer-owner@gameprogrammer.com]On Behalf Of justin > > > howard > > > Sent: Sunday, September 05, 1999 8:24 > > > To: gameprogrammer@gameprogrammer.com > > > Subject: Re: How to captue enter, up, down, left, right and Fx > > > > > > > > > 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> > > > >Reply-To: gameprogrammer@gameprogrammer.com > > > >To: <gameprogrammer@gameprogrammer.com> > > > >Subject: How to captue enter, up, down, left, right and Fx > > > >Date: Sat, 4 Sep 1999 19:40:14 -0000 > > > > > > > >Hello everyone! > > > > > > > > > > > >Ok, so far I´ve received a lot of suggestions for my queston about > >gaming > > > >programing and I´ve resolved to begin with C++ (of wich I already know > >a > > > >lot) and second, I´ll use OpenGL (its no-microsoft nature won the > >battle) > > > > > > > >Now, I´m having problems trying to capture the arrow keys from > > > the keyboard > > > >and the Enter and Fx strokes. A long time ago I readed how to > > > make this but > > > >in Pascal, so I need the code in C. I already did this code: > > > > > > > > clrscr(); > > > > flushall(); > > > > c = getchar(); > > > > > > > >with c as integer and as char but it just return the number 10 > > > when I press > > > >the Enter key and doesn´t works at all with the arrows. I know there is > > > >another numerical code I have to capture but I don´t get it right now. > > > > > > > >Thanks for your help > > > > > > > > > > > >PS: BTW it would be nice if somebody have the code necesary to > > > capture the > > > >Fx keys. Thanks again! > > > > > > > >================================================================= > > > >To SUBSCRIBE or UNSUBSCRIBE please visit > > > >http://gameprogrammer.com/mailinglist.html > > > > > > ______________________________________________________ > > > Get Your Private, Free Email at http://www.hotmail.com > > > ================================================================= > > > To SUBSCRIBE or UNSUBSCRIBE please visit > > > http://gameprogrammer.com/mailinglist.html > > > > > > >================================================================= > >To SUBSCRIBE or UNSUBSCRIBE please visit > >http://gameprogrammer.com/mailinglist.html > > > > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.com > ================================================================= > To SUBSCRIBE or UNSUBSCRIBE please visit > http://gameprogrammer.com/mailinglist.html ================================================================= To SUBSCRIBE or UNSUBSCRIBE please visit http://gameprogrammer.com/mailinglist.html
|
|