🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11376

Re: RAWKEYS question

#11376
From: Aaron Avery
Date: Wed, 08 Feb 1989 09:23
21 lines
1692 bytes
Intuition gets its RAWKEY events from the input.device. The input.device is
responsible for key repeat. Therefore, you will receive messages at your
IDCMP port for auto-repeated keystrokes (with the REPEAT qualifier set).
For your needs, I'd suggest using the keyboard.device directly. However,
if the input.device is still in use, the key repeat overhead will still
probably slow you down a bit, minus the extra message passing overhead for
getting it to your IDCMP port.
Another thing you can do is to mess with the input.devices key repeat
timeouts. You can set up the key repeat delay and speed ala Preferences by
sending a couple of messages to it. These changes are global, but you can
always put them back when you're through. I'd suggest a key repeat delay
of -1 seconds. I suppose this could be better, since you can still handle
all of your input related events from the one IDCMP port, but be sure to
put things back to normal whenever other things could be getting input from
the keyboard.

-- 
Aaron Avery, ASDG Inc.         "A mime is a terrible thing to waste."
                                                             -- Robin Williams
ARPA: madnix!aaron@cs.wisc.edu   {uunet|ncoast}!marque!
UUCP:   {harvard|rutgers|ucbvax}!uwvax!astroatc!nicmad!madnix!aaron
Technical Details
Message-ID: <472@madnix.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!uwvax!astroatc!nicmad!madnix!aaron
References: <685@cord.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!uwvax!astroatc!nicmad!madnix!aaron
From: aaron@madnix.UUCP (Aaron Avery)
Newsgroups: comp.sys.amiga.tech
Subject: Re: RAWKEYS question
Message-ID: <472@madnix.UUCP>
Date: 8 Feb 89 09:23:09 GMT
References: <685@cord.UUCP>
Reply-To: aaron@madnix.UUCP (Aaron Avery)
Distribution: na
Organization: ASDG Incorporated
Lines: 21