function OnMouseMove(x, y) ... end function
This is an event function you can overload in you prodram to react on mouse actions. (x, y) - are the coordinates of a point, over which user is moving a mouse. This event is not suitable for all devices. For example there is no mouse cursor on many touchscreen devices. Though it has sense on Windows and can be used, for example, to change mouse cursor, when it is moved over some sensitive area of the screen. Example:
function OnMouseMove(x, y)
if x>10 and x<190 and y>10 and y<30
SetCursor ("hand")
else
SetCursor ("arrow")
end if
end function
See also: