fg_mousepos()

Win32 DirectX Fastgraph/Light

Prototype

void fg_mousepos (int *ix, int *iy);

Sub fg_mousepos (ix As Long, iy As Long)

procedure fg_mousepos (var ix, iy : integer);

Description

The fg_mousepos() function returns the current mouse position. The position is automatically translated from client coordinates to the equivalent virtual buffer coordinates.

Parameters

ix receives the x coordinate of the mouse cursor position. If the cursor is outside the client area, ix will be set to -1.

iy receives the y coordinate of the mouse cursor position. If the cursor is outside the client area, iy will be set to -1.

Return value

none

Restrictions

none

See also

fg_mouseini(), fg_mousemov()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.