| Home
| Previous
| Next
| Up

MS_getPos

Returns the current mouse cursor location.

Declaration

void MGLAPI MS_getPos(
int *x,
int *y)

Prototype In

mgraph.h

Parameters

x | Place to store value for mouse x coordinate (screen coordinates)
y | Place to store value for mouse y coordinate (screen coordinates)

Description

Obtains the current mouse cursor position in screen coordinates. Normally the mouse cursor location is tracked using the mouse movement events that are posted to the event queue when the mouse moves, however this routine provides an alternative method of polling the mouse cursor location.

See Also

MS_moveTo

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com