lindwall@sdsu.UUCP (John Lindwall) (03/02/88)
I am working on an arcade game for our favorite computer. After playing with the amiga animation/gels systems I have found them to be nice but too slow for my purposes. Following the advice of John Schultz I have implemented my own stripped down but fast animation system. On to my problem... I am collecting keyboard input through Intuition via RAWKEY messages. This means that the key repeat/delay valuesspecified by the user via Preferences determine the rate at which keyboard events are generated. The game requires faster key repreat/delay values than a typical user finds comfortable. What I do is use SetPrefs() to reset these values to acceptable values. I expected to be able to look for IDCMP messages INACTIVEWINDOW and ACTIVEWINDOW so that when the user activates some other window (like a CLI) I can restore the user's keyboard parameters so that their text output does not look like tttttttttttthhhhhhhhhhhhhiiiiiiiiiiiiiissssssssssss. This is not working. I get the message and then call a function which uses SetPrefs() to change the keyboard rates. Can anyone give me some help? Is my approach workable? Thanks. JOHN: