Re: accessibility-dev digest, Vol 1 #71 - 3 msgs
Re: accessibility-dev digest, Vol 1 #71 - 3 msgs
- Subject: Re: accessibility-dev digest, Vol 1 #71 - 3 msgs
- From: John Louch <email@hidden>
- Date: Fri, 14 Feb 2003 07:12:22 -0800
>
I wrote:
>
> So, how does one best detect that a mouse move event has been
>
> processed? I can think of several:
>
>
>
> - registering a mouse moved handler for the entire screen
>
> - polling to see whether mouse position changed
>
> - querying the event queue
>
>
John Louch <email@hidden> replied:
>
>
> If you call CGPostMouseEvent it will be processed. Some other
>
> application might move the mouse somewhere else, or use the mouse
>
> to do so. Depending on your application, I think you can just
>
> assume that where you moved the mouse (CGPostMouseEvent) is where
>
> the mouse is.
>
>
Let me explain a bit: if I want to move the mouse smoothly across the
>
screen without calling CGPostMouseEvent more often than it can be
>
processed, I would like to do something like (in pseudo-code):
>
>
do
>
{
>
const Point p = computeNewMousePosition( currentTime());
>
CGPostMouseEvent(...);
>
waitForMouseToMove();
>
} while( not mouseAtTarget());
>
>
My question is how best to implement "waitForMouseToMove"
>
>
Reinder
>
Instead of doing that, why not just sleep so you are moving the mouse at a
constant rate. I.e. Move the mouse on a timer.
Thanks,
jl
---------------------------------------------
John Louch Internet #: email@hidden
(805) 546 0216
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.