glennl@cit-vlsi.UUCP (07/01/88)
[] I'm working on a simple game on the Amiga in my spare time, and need to know how to check whether certain keys are down or up. I could do this one of two ways: Either receive one and only one KEYDOWN message, and one KEYUP message, or Not accept messages at all, but check the key directly each time within a loop. I would prefer the former method, but when I use: while (message = GetMsg(..)) { ... } and hold down a key, the timing within the WaitTOF() loop gets all messed up, and nothing appears on the screen until I let go of the key. So how to I check the status of a few keys, without messing up my animation loop? Thanks for your help. Please reply via e-mail, since this is probably not terribly useful for everybody else. -- Glenn Lewis glennl@vlsi.caltech.edu