Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
CGEventSourceCounterForEventType() issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGEventSourceCounterForEventType() issue



According to the Quartz Event Services Reference document, this code should
return the number of user input events of all types (keyboard, mouse, or
tablet) since the window server started:

 CGEventSourceCounterForEventType(CGEventSourceGetSourceStateID(eventSourceR
ef), kCGAnyInputEventType)

But it always returns 0.

If I specify a specific event, such as kCGKeyDown, I get a reasonable
result.

Is this a known bug? Or is the documentation wrong?

--

Bill Cheeseman


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.