WoW:API GetCursorPosition: Difference between revisions
Jump to navigation
Jump to search
GetCursorPosition -Documentation by Kolth-
mNo edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
---- | ---- | ||
{{ | |||
{{template:WoW API}} |
Revision as of 19:40, 30 December 2005
Returns the cursor's position on the screen.
GetCursorPosition();
- Arguments
- none
- Returns
- x
- Number - The cursor's x-position on the screen.
- y
- Number - The cursor's y-position on the screen.
- Example
local x, y = GetCursorPosition();
- Result
x = 956.24999166082; y = 538.49999965651;
- Description
- Returns scale-independant coordinates similar to Cursor:GetCenter() if 'Cursor' was a valid frame.