Article View: comp.sys.amiga.tech
Article #13982Re: Reading the keyboard without a window.
From: asaph
Date: Fri, 02 Mar 1990 01:45
Date: Fri, 02 Mar 1990 01:45
34 lines
2465 bytes
2465 bytes
In article <9670@cbmvax.commodore.com> mks@cbmvax.cbm.commodore.com (Michael Sin
>half of intuition in a way) you can do the simple (and documented) thing
>of opening and reading from the keyboard.device. See the RKM on methods.
>There are even ways of finding the key matrix in a bit array which tells which
>keys are down and which are not. The matrix can even be used while intuition
>is running.
>
>Now, remember that this is not the system friendly way to do things. It should
Why not ? Whats wrong with opening the keyboard.device for an intuition
program ? I do this to get the currect state of a key via READMATRIX. Which
I want so I can know whether a key is pressed NOW as opposed to
when the message was sent. Otherwise I have to deal with the messages one
by one and if one takes longer to process then to key in, the next keys
will already be buffered/remebered events. These aren't events I always
want to process.
If you hold down a key it begins to repeat, I want to ignore the messages
sent to me by the autorepeat after you have lifted your finger from the
key. How do I do that if they come faster than I can process them ?
If there is a better, more supported way please tell me!
>/----------------------------------------------------------------------\
>| /// Michael Sinz -- CATS/Amiga Software Engineer |
>| /// PHONE 215-431-9422 UUCP ( uunet | rutgers ) !cbmvax!mks |
>| /// |
>|\\\/// When people are free to do as they please, |
>| \XX/ they usually imitate each other. |
>\----------------------------------------------------------------------/
Asaph.
asaph@taurus.bitnet asaph@math.tau.ac.il
Technical Details
Message-ID:
<1245@taurus.BITNET>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!TAURUS.BITNET!asaphReferences:
<6675@ucdavis.ucdavis.edu> <1990Feb9.150945.29787@santra.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!TAURUS.BITNET!asaph From: asaph@TAURUS.BITNET Newsgroups: comp.sys.amiga.tech Subject: Re: Reading the keyboard without a window. Summary: whats wrong with keyboard.device ? Keywords: keyboard,read,easy? Message-ID: <1245@taurus.BITNET> Date: 2 Mar 90 01:45:58 GMT References: <6675@ucdavis.ucdavis.edu> <1990Feb9.150945.29787@santra.uucp> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: <asaph%math.tau.ac.il@CUNYVM.CUNY.EDU> Organization: Tel-Aviv Univesity Math and CS school, Israel Lines: 34