Re: A89: What's wrong with _rowread???


[Prev][Next][Index][Thread]

Re: A89: What's wrong with _rowread???




In a message dated 12/14/2000 11:16:33 PM Eastern Standard Time, 
lilpjd@yahoo.com writes:

<< I have this function, but every time I run it, and then hold down a key, 
for example, like "+", it will quickly (after a second or two) boot out of 
it.  What am I doing wrong here???  It's supposed to be checking the first 
row (arrows and stat keys), and it reads these other keys as well???  How do 
I fix this?
 
 int keywait()
 {
  int key;
 keyloop:
  key=_rowread(0xfffe);
  if(16&key) return key;
  if(32&key) return key;
  if(64&key) return key;
  if(128&key) return key;
  if(2&key) return key;
  if(1&key) return key;
  if(4&key) return key;
 goto keyloop; 
 } >>

It works, but there isn't anyway for the program to stop and pause from this 
code so it runs right throught it.



Follow-Ups: