From: Xavier DUBOZ Newsgroups: comp.os.msdos.djgpp Subject: how can I moove a square ? Date: Wed, 19 Aug 1998 14:34:53 +0200 Organization: NordNet, l'Internet des gens du Nord Lines: 10 Message-ID: <35DAC66D.CFF22DDF@nordnet.fr> NNTP-Posting-Host: gate7-146.nordnet.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I drawn a square and I would like to move it by using Arrow Key (or any key). I try to do that with "getch" and it works but it's as speed as my scargol....... Then I try tu use "if (inportb(0x??)==1) do something " but it seems not to be the good solution because it doesn't work: Once I hit the corresponding Key, then "inportb(0x??)"=1 (that's what I want) but after, I would like that it became equal to 0 Thanks for help and excuse my english