Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!psuvax1!swatsun!jackiw From: jackiw@cs.swarthmore.edu (Nick Jackiw) Newsgroups: comp.sys.mac.programmer Subject: Re: How can I get Instantaneous Response from an Init that uses GNEfilter to look for keyboard events? Message-ID: <6RSPNQC@cs.swarthmore.edu> Date: 1 Sep 90 19:04:29 GMT References: <1896@mountn.dec.com> Reply-To: jackiw@cs.swarthmore.edu (Nick Jackiw) Organization: Visual Geometry Project, Swarthmore College, PA Lines: 20 domenikos@emass1.enet.dec.com (George Domenikos) writes: > HOW CAN I GET INSTANTANEOUS RESPONSE FROM THE GNE FILTER? You can't. GetNextEvent is called when the application wants another event. If the app's hard at work, it's not going to call it, being busy already. Thus your GNEFilter won't get called either. Your response rate is determined by the application; not by you. Instead of using the GNE filter, try applying a headpatch to PostEvent or PPostEvent. These calls are made by the operating system at the moment the event occurs; not at the moment the application choses to hear about it. -- --- jackiw@cs.swarthmore.edu | Smoggo: Can you prevent the detonation of jackiw@swarthmr.bitnet | the thermonuclear device? Applelink: D3717 | Jimbo: No ... I cannot.