Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Repeating multiple keys Message-ID: <8712132331.AA24540@cory.Berkeley.EDU> Date: 13 Dec 87 23:31:24 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 25 :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 Don't be dense Michael. The context was "in an application", not "I want to see every key pressed no matter which window is active". Not only that, but this context was directly refered to by Bryce when he said "RAWKEY", which is an Intuition Device. Not only that, but the second half of your reply CONTRADICTS the first half. Try to understand an article before replying with a flame. -Matt