Difference between revisions of "Mouse.x"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>mouse.x</c> returns the current distance (in pixels) of the mouse cursor from the left edge of the screen. == Example == <ms>print mouse.x</ms> Category:Mini Micro")
 
(added bug note)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
<c>mouse.x</c> returns the current distance (in pixels) of the mouse cursor from the left edge of the screen.
 
<c>mouse.x</c> returns the current distance (in pixels) of the mouse cursor from the left edge of the screen.
 +
 +
See also: [[mouse.y]]; [[Screen coordinates]]
 +
 +
== Known Issue ==
 +
 +
In Mini Micro 1.0, when running as a WebGL build on an Apple Retina display, the mouse coordinates reported are incorrect (as if the mouse is twice as far from the top-left corner of the physical screen than it really is).
  
 
== Example ==
 
== Example ==

Latest revision as of 01:10, 28 September 2021

mouse.x returns the current distance (in pixels) of the mouse cursor from the left edge of the screen.

See also: mouse.y; Screen coordinates

Known Issue

In Mini Micro 1.0, when running as a WebGL build on an Apple Retina display, the mouse coordinates reported are incorrect (as if the mouse is twice as far from the top-left corner of the physical screen than it really is).

Example

print mouse.x