Function _IrrGetAbsoluteMousePosition

au3Irr2

au3Irr2 Function Reference

_IrrGetAbsoluteMousePosition

Get the absolute mouse X and Y position

#Include <au3Irrlicht2.au3>
_IrrGetAbsoluteMousePosition()

 

Parameters

None.

 

Return Value

success: 1D Array containing absolute mouse position.
    $Array[0] = X position of the mouse
    $Array[1] = Y position of the mouse
failure: Empty 1D Array and Set @error 1

 

Remarks

None.

 

Related

 

Example


#include <au3Irrlicht2.au3>

Global $aGAMP

_IrrStart()

While _IrrRunning()

    $aGAMP = _IrrGetAbsoluteMousePosition()
    _IrrSetWindowCaption("Absolute Mouse Poition - X: " & $aGAMP[0] & " Y: " & $aGAMP[1])

WEnd

_IrrStop()