Re: CGPostKeyboardEvent stops my Cocoa GUI...
Re: CGPostKeyboardEvent stops my Cocoa GUI...
- Subject: Re: CGPostKeyboardEvent stops my Cocoa GUI...
- From: Matt Budd (Madentec) <email@hidden>
- Date: Mon, 25 Oct 2004 08:49:57 -0600
Perhaps look at the following APIs in CGRemoteOperation.h
CG_EXTERN CGError CGSetLocalEventsSuppressionInterval(CFTimeInterval
seconds);
CG_EXTERN CGError CGInhibitLocalEvents( boolean_t doInhibit);
It sounds like Local Event Suppression is on when you really don't want
it to be?
- Matt
On Oct 25, 2004, at 8:24 AM, Jérome Foucher wrote:
Hi all,
I'm designing an onscreen keyboard for a kiosk machine with a
touch-screen.
As you might guess, I'm using CGPostKeyboardEvent to simulate the key
press.
But a strange thing happens : my GUI seems to be halted for a short
time just after the CGPostKeyboardEvent call.
For instance, I cannot make a fast double-click on a key from my
onscreen keyboard. The second click is completely lost !
I need to leave at least half a second between my first click and my
second click, which makes my keyboard feels very sluggish....
I tried to enqueue keycodes and dequeue them in a separate thread that
itself calls CGPosteKeyboardEvent, but no luck : I have the same
result.
Is this a known issue ? Is there any workaround ?
Thanks
Jérome
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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