Re: Turning Keyboard Repeat Off in a Game
Re: Turning Keyboard Repeat Off in a Game
- Subject: Re: Turning Keyboard Repeat Off in a Game
- From: Jamie Hodkinson <email@hidden>
- Date: Wed, 19 Mar 2003 06:16:42 -0800 (PST)
--- Angela Brett <email@hidden> wrote:
>
You could check if the key event is a repeat by
>
using NSEvent's
>
-isARepeat method, and ignore it if it is a repeat.
That would be fine, but events are still being
propagated down the responder chain, just to be
discarded by my keyDown method. If the user is holding
down 3-4 keys, there will be a constant stream of
keyDown events, which I'm concerned will have an
impact on performance.
Is there a way to stop the events from being generated
in the first place, or should I just accept the
overhead?
Thanks
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.