Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ucsd!sdcsvax!ucsdhub!sdsu!lindwall From: lindwall@sdsu.UUCP (John Lindwall) Newsgroups: comp.sys.amiga Subject: INACTIVEWINDOW help Message-ID: <2940@sdsu.UUCP> Date: 2 Mar 88 06:05:07 GMT Organization: San Diego State University, Math/Sciences Dept. Lines: 21 Keywords: Intuition INACTIVEWINDOW ACTIVEWINDOW help 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: