www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/19/09:03:28

From: Xavier DUBOZ <xduboz AT nordnet DOT fr>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019