Difference between revisions of "Mouse"
Jump to navigation
Jump to search
(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....") |
(+.locked) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
|- | |- | ||
| [[mouse.button]](''which=0'') || detect whether a mouse button is pressed | | [[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.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.y]] || get the current Y position of the mouse, in [[screen coordinates]] | ||
+ | |- | ||
| [[mouse.visible]] || get or set whether the mouse cursor is visible | | [[mouse.visible]] || get or set whether the mouse cursor is visible | ||
+ | |- | ||
+ | | mouse.locked || get or set whether the mouse cursor is locked | ||
|} | |} | ||
+ | |||
+ | == See also == | ||
+ | |||
+ | * [[How to detect single mouse clicks]] | ||
[[Category:Mini Micro]] | [[Category:Mini Micro]] | ||
+ | [[Category:Soda]] |
Latest revision as of 05:55, 1 November 2023
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 |
mouse.locked | get or set whether the mouse cursor is locked |