From: moshe Newsgroups: comp.os.msdos.djgpp Subject: Re: ALLEGRO KEY[] Date: Mon, 26 Apr 1999 22:40:49 +0300 Organization: NetVision Israel Lines: 28 Message-ID: <3724C141.8FA86420@netvision.net.il> References: <8D53104ECD0CD211AF4000A0C9D60AE30134174B AT probe-2 DOT acclaim-euro DOT net> NNTP-Posting-Host: ras4-p3.jlm.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netvision.net.il 925242196 20136 62.0.162.131 (27 Apr 1999 19:43:16 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 27 Apr 1999 19:43:16 GMT X-Mailer: Mozilla 4.05 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Shawn Hargreaves wrote: > moshe writes: > > while (!key[1]){ > > if (key[72] && (Yi > Please don't hardcode those key numbers. Not only does this make your > code less readable than using the KEY_* defines, but it is a certain > way to make sure that your program won't work with any future versions > of Allegro. > > > when i'm compile it its oll ok but in run time allegro kick my > > program off does some1 know the problem? > > It is impossible to say just from the fragment of code that you > posted. Please give a complete (but small) program that we can > actually compile and run. > thenx it's ok now i cut the sentence into: if (key[72]){ if (Yi