Difference between revisions of "Mouse.y"

From MiniScript Wiki
Jump to navigation Jump to search
(added bug note)
 
Line 2: Line 2:
  
 
See also: [[mouse.x]]; [[Screen coordinates]]
 
See also: [[mouse.x]]; [[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:11, 28 September 2021

mouse.y returns the current distance (in pixels) of the mouse cursor from the bottom edge of the screen.

See also: mouse.x; 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.y