Path: utzoo!mnetor!uunet!nuchat!sugar!peter From: peter@sugar.UUCP (Peter da Silva) Newsgroups: comp.sys.amiga Subject: Re: Repeating multiple keys Message-ID: <1271@sugar.UUCP> Date: 16 Dec 87 11:56:23 GMT References: <209@dalcsug.UUCP> <22036@ucbvax.BERKELEY.EDU> <10005@stb.UUCP> Organization: Sugar Land UNIX - Houston, TX Lines: 19 [ peter@dalcsug.UUCP (Peter Philip) wants to know how to tell what keys are pressed in a game he's writing] [ bryce@hoser.berkeley.edu (Bryce Nesbitt) says to use RAWKEY and track it] michael@stb.UUCP (Michael) writes: > 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. The copy protection bandit strikes again. In practical terms RAWKEY is fine for telling what keys are held down in a game. If you need more than that, your best bet is an input handler. I don't think Mr. Phillip needs go that far. -- -- Peter da Silva `-_-' ...!hoptoad!academ!uhnix1!sugar!peter -- Disclaimer: These U aren't mere opinions... these are *values*.