• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Turning Keyboard Repeat Off in a Game
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Turning Keyboard Repeat Off in a Game (From: Angela Brett <email@hidden>)

  • Prev by Date: Re: Jan Dev Docs
  • Next by Date: Re: State of Cocoa adoption
  • Previous by thread: Re: Turning Keyboard Repeat Off in a Game
  • Next by thread: Trapping window close event
  • Index(es):
    • Date
    • Thread