From: "Travis Smith" Newsgroups: comp.os.msdos.djgpp Subject: Re: Detecting Arrow Key Presses Date: Mon, 12 Oct 1998 22:30:34 -0400 Organization: Prodigy Services Corp Lines: 28 Message-ID: <6vue46$971a$1@newssvr04-int.news.prodigy.com> References: <5a92fc80 DOT 36229998 AT aol DOT com> NNTP-Posting-Host: clmbb103-39.splitrock.net X-Post-Time: 13 Oct 1998 02:32:38 GMT X-Auth-User: 002556771/0936d7f89bb5cfb7 X-Problems-To: abuse AT prodigy DOT net X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Download allegro, it has a keyboard lib for testing such things, the code would be like: allegro_init(); install_keyboard(); readkey(); if(key[KEY_LEFTARROW]) { this; }else if(key[KEY_RIGHTARROW]) { that; } I believe that would be like what the code is. Correct me if I'm wrong. DoctorXV AT aol DOT com wrote in message <5a92fc80 DOT 36229998 AT aol DOT com>... |How do I get C++ to detect when someone presses and arrow key. I want to make |something move when someone press the arrow key. Also...is it possible to load |an image into my program without using Allegro? I use Turbo C++ 3.0. | |- Brett