< Previous PageNext Page > Hide TOC

Legacy Documentclose button

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.

Deprecated Event Manager Legacy Reference (Legacy) Functions

A function identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in Mac OS X v10.5

GetMouse

Obtains the current mouse location. (Deprecated in Mac OS X v10.5.)

Not recommended

void GetMouse (
   Point * mouseLoc
);

Parameters
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.

Return Value
Availability
Carbon Porting Notes

You should adopt Carbon events and take action on mouse-moved events rather than poll the mouse position directly.

Declared In
Events.h

< Previous PageNext Page > Hide TOC


© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-05-03)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.