IrrGetCursorRelativePosition

section index

## NAME

IrrGetCursorRelativePosition - Get position of the Cursor

## SYNOPSIS

IrrGetCursorRelativePosition(*pos.IRR_POS2DF)

## INPUTS

*pos.IRR_POS2D | - | Pointer to a IRR_POS2D Structure

## FUNCTION

Returns the current position of the mouse cursor.

## RESULT

Returns the current position of the cursor. The returned position is a value between (0.0f, 0.0f) and (1.0f, 1.0f), where (0.0f, 0.0f) is the top left corner and (1.0f, 1.0f) is the bottom right corner of the render window.

## EXAMPLE

        Define mypos.IRR_POS2DF
        IrrGetCursorRelativePosition(@mypos)
        Debug("Current Cursor-Position="+StrF(mypos\x)+","+StrF(mypos\y))

## NOTES

SEE ALSO IRR_POS2DF