Difference between revisions of "Legacy:GetMouseY"

From Spherical
Jump to: navigation, search
(Created page with " Returns the Y coordinate of the pixel the mouse is currently over in the game window or (in fullscreen) screen. __TOC__ ==Usage== {{Usage|returns=number|func=GetMouseY}} ...")
 
m (Fixed link to GetMouseX in "See Also")
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
+
[[Category:Functions]]
  
 
Returns the Y coordinate of the pixel the mouse is currently over in the game window or (in fullscreen) screen.
 
Returns the Y coordinate of the pixel the mouse is currently over in the game window or (in fullscreen) screen.
Line 21: Line 21:
 
==See also==
 
==See also==
  
* [[API:GetMouseY|GetMouseX]]()
+
* [[API:GetMouseX|GetMouseX]]()
 
* [[API:SetMousePosition|SetMousePosition]](x, y)
 
* [[API:SetMousePosition|SetMousePosition]](x, y)

Latest revision as of 12:30, 8 September 2013


Returns the Y coordinate of the pixel the mouse is currently over in the game window or (in fullscreen) screen.

Usage

number GetMouseY();


Examples

Color the pixel on the screen that the mouse is currently on:

var Red = CreateColor(255, 0, 0, 255);
Point(GetMouseX(), GetMouseY(), Red);

Notes

Mouse coordinates will not be tracked when the mouse is out of the window.

See also