Mouse cursor movement with events?
Mouse cursor movement with events?
- Subject: Mouse cursor movement with events?
- From: Rowan <email@hidden>
- Date: Wed, 12 Feb 2003 10:27:35 +0000 (GMT)
Hey there,
I'm working on a little program to let people with bluetooth and t68
phones to use them as remote controls, and one of the options is using it
as a mouse. Unfortunately, I keep running into problems with it.
Mouse movement itself is easy, using CGWarpMouseCursorPosition. However
this has a problem in that it doesn't register mouse events - so things
like the Dock and widgets don't respond to the cursor at all.
I've tried using CGPostMouseEvent, but while that generates events it
seems more targeted at mouse clicks - using CGPostMouseEvent(newLoc, TRUE,
1, FALSE) uses crazy amounts of processing power when it's called every
cursor move, so that moving the cursor over the dock actually slows cursor
speed significantly. To get round this I'm calling it only every few
mouse position updates, but this is in no way elegant and causes the dock
to look jerky when moving over it.
So is there anything I can use instead, apart from writing a form of mouse
driver? I would far prefer to just keep it all in one little app...
On a related note, using CGWarpMouseCursorPosition and CGPostMouseEvent
while zoomed in using the vision-impaired mode causes all kind of odd
behaviour, but I suppose that's expected.
Cheers,
--Rowan
[ps: is this the right list for this?]
_______________________________________________
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.