Re: A92: Re: Testing Keypresses


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

Re: A92: Re: Testing Keypresses




>Oh, I understand.  I have never heard of KEY_PRESSED_FLAG before.  I had
>thought it was something you were handling.  If you are only interested
>in a keypress and do not need to "process" anything, use flib::idle_loop.
>It returns the key code in D0 (look in the TI92 manual for key codes).
>But it is obvious that this KEY_PRESSED_FLAG is NOT being set.  Read up
>on it again.  Make sure you haven't forgot to call something.

KEY_PRESSED_FLAG is mentioned in the PlusShell documentation, but it seems
it's not properly defined (or I haven't yet found the .h file)...I replaced
it with its true meaning (tios::kb_globals+$1c or something)  and it all
works fine.  As for idle_loop, it hangs execution until a key is
pressed...I need to -keep- executing until a key is pressed.  But actually,
to fix the problem I went to the idle_loop source...:-)  It's all better now.
--Cliff Biffle




References: