<no subject>
<no subject>
- Subject: <no subject>
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 05 Jan 2008 16:10:03 -0500
According to the Quartz Event Services Reference document, this code should
return the count of user input events since startup:
CGEventSourceCounterForEventType(CGEventSourceGetSourceStateID(eventSourceRe
f), kCGAnyInputEventType)
... where the first parameter is returning
kCGEventSourceStateCombinedSessionState.
In Tiger, this code always returned 0. In Leopard, it returns what looks
like a reasonable number (in the hundreds of thousands after my computer has
been up for a while), but it doesn't update every time I call it. That is,
even though I've been moving the mouse around or clicking or typing, if I
call this code again after a few seconds it still returns the earlier
number. Then, if I call it a few seconds later, the return value jumps by
about 29, even though I have not yet generated 29 more input events.
The code works correctly if I pass a specific event type, such as
kCGEventScrollWheel, instead of kCGAnyInputEventType.
Is this a known bug in Leopard?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden