Mouse

From MiniScript Wiki
Revision as of 14:40, 8 March 2020 by JoeStrout (talk | contribs) (Created page with "In Mini Micro, the <msinline>mouse</msinline> module is a small collection of functions related to detecting the mouse state, and controlling display of the mouse cursor....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In Mini Micro, the mouse module is a small collection of functions related to detecting the mouse state, and controlling display of the mouse cursor.

Method Purpose
mouse.button(which=0) detect whether a mouse button is pressed mouse.x get the current X position of the mouse, in screen coordinates mouse.y get the current Y position of the mouse, in screen coordinates mouse.visible get or set whether the mouse cursor is visible