• 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
Turning Keyboard Repeat Off in a Game
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Turning Keyboard Repeat Off in a Game


  • Subject: Turning Keyboard Repeat Off in a Game
  • From: Jamie Hodkinson <email@hidden>
  • Date: Wed, 19 Mar 2003 02:26:57 -0800 (PST)

Hi,

I'm currently using keyDown and KeyUp methods in
NSOpenGLView to keep track of user key presses in a
game.
I've noticed that when one key is held down, the
keyDown method fires regularly, taking its cues from
the OS keyboard repeat settings.

Is there a way to turn off/bypass key repeat while the
game is running (for the sake of efficiency), so only
one keyDown method occurs each time a key is held
down? I've seen some strange code snippet in the
Omnigroup porting presentation, but I can't figure out
what's going on.

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.

  • Follow-Ups:
    • Re: Turning Keyboard Repeat Off in a Game
      • From: Angela Brett <email@hidden>
  • Prev by Date: Re: Screen saver with shared contexts
  • Next by Date: Jan Dev Docs
  • Previous by thread: Re: Loading a TIFF image
  • Next by thread: Re: Turning Keyboard Repeat Off in a Game
  • Index(es):
    • Date
    • Thread