Re: Supressing mouse-position-events
Re: Supressing mouse-position-events
- Subject: Re: Supressing mouse-position-events
- From: Rowan <email@hidden>
- Date: Sun, 4 Jul 2004 22:14:56 +0100
An idea I just came up with would be an extension that would
suppress
mouse-move events while a key was down: often, I want to use the
keyboard to navigate to a submenu, then use the mouse to select an item
from it. But as soon as I move the mouse (since it's not on the menu),
the menu closes. This is similar to the "pop the mouse cursor to the
location of the default button" extensions that have been floating
around since the beginning of time, and are available for OSX at least
in commercial form (anyone know of an OSS one?)
Is this doable from Cocoa (via InputManager perhaps), or is it more
appropriate to be done from the kernal layer by hacking with mouse
events?
(Apologies if there've been replies already; I'm on digest mode...)
If you take a look at CGRemoteOperation.h in the CoreGraphics framework
(linked from ApplicationServices framework), it contains a few
functions that might be able to do what you want. It looks like
setting CGAssociateMouseAndMouseCursorPosition to false will prevent
menus and drag updates, although I haven't tried it...
Cheers,
--Rowan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.