io:get-mouse-position

(io:get-mouse-position [canvas])


Description:

Return the mouse location as a coordinate of either (a) the current screen or (b) a [canvas] if supplied


Arguments:

         canvas -- optional canvas argument. if provided the mouse coordinate will be presented in relation to the canvas


Returns: boolean


Related: gfx:get-screen-size 


Examples:



Back to index