Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!rutgers!psuvax1!burdvax!sdcrdcf!trwrb!scgvaxd!stb!michael
From: michael@stb.UUCP (Michael)
Newsgroups: comp.sys.amiga
Subject: Re: Repeating multiple keys
Message-ID: <10005@stb.UUCP>
Date: 12 Dec 87 02:22:39 GMT
References: <209@dalcsug.UUCP> <22036@ucbvax.BERKELEY.EDU>
Reply-To: michael@stb.UUCP (Michael)
Organization: STB BBS, La, Ca, USA, 90402
Lines: 19
Keywords: How do I detect this?

In article <22036@ucbvax.BERKELEY.EDU> bryce@hoser.berkeley.edu (Bryce Nesbitt) writes:
>In article <209@dalcsug.UUCP> peter@dalcsug.UUCP (Peter Philip) writes:
>>Can anyone tell me where I could find an example of detecting which keys
>>are being held down?  I need this for a game I would like to write, so it has
> 
>You need to tell Intution to send your program events of class RAWKEY.
>you if the key was pressed or released.  Keep track of this and you
>will know at any one moment what keys are down.

WRONG!. RAWKEY only tells you what was pressed while you were active. If
another window was active, is intuition going to tell you about every
key stroke? Of course not--if it did, any program that used this would
trigger on everything. You need another way to get the present "Keys pressed"
state.
				Michael
-- 
: Michael Gersten		ihnp4!hermix!ucla-an!remsit!stb!michael
:				sdcrdcf!trwrb!scgvaxd!stb!michael
: "Copy Protection? Just say 'Off site backup'. "