Turning Keyboard Repeat Off in a Game
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.