• 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: CGPostKeyboardEvent strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGPostKeyboardEvent strangeness


  • Subject: Re: CGPostKeyboardEvent strangeness
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Thu, 11 Nov 2004 19:23:56 +0100

At 9:14 Uhr -0600 11.11.2004, Jonathan 'Wolf' Rentzsch wrote:
long ignored;
while( AnyKeyDown() ) {
    Delay(6, &ignored); // tenth of a second
}

Personally, I'd suggest doing a usleep() instead of a Delay() here. That way other apps get some processing power and you won't be burning cycles needlessly when sitting in Delay().
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Re: CGPostKeyboardEvent strangeness (From: "Jonathan 'Wolf' Rentzsch" <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 1, Issue 262
  • Next by Date: Re: Registration Code
  • Previous by thread: Re: CGPostKeyboardEvent strangeness
  • Next by thread: Re: CGPostKeyboardEvent strangeness
  • Index(es):
    • Date
    • Thread