Mouse input

[ Back ]

Sub routines

procedure set mouse value
procedure set mouse x, y
function mousex()
function mousey()
function mousebutton(id[, unflag])


procedure set mouse value

Turn on or off the visibility of the mouse pointer by setting value to on or off.


procedure set mouse x, y

Set position of mouse cursor to (x, y), where x and y are window coordinates.


function mousex()

Return x position of the mouse pointer in the window's coordinate system.


function mousey()

Return y position of the mouse pointer in the window's coordinate system.


function mousebutton(id[, unflag])

Return true if mouse button id is being pressed. If unflag is supplied and set to true, the mouse button must be released before this function returns true again.


[ Back ]