Important: The Event Manager is a legacy System 7 technology. You should use the Mac OS X Carbon Event Manager instead. See Carbon Event Manager Programming Guide.
A function identified as deprecated has been superseded and may become unsupported in the future.
Obtains the current mouse location. (Deprecated in Mac OS X v10.5.)
Not recommended
void GetMouse ( Point * mouseLoc );
Returns a pointer to a point describing the current mouse location in local coordinates of the current graphics port (for example, the active window). Note that this value differs from the value of the where
field of the event structure, which specifies the mouse location in global coordinates.
You should adopt Carbon events and take action on mouse-moved events rather than poll the mouse position directly.
Events.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-05-03)