WoW:API GetCursorPosition: Difference between revisions

m
m (sp)
Line 23: Line 23:


: Returns scale-independent coordinates similar to Cursor:GetCenter() if 'Cursor' was a valid frame. You can use this value relative to UIParent if you treat BOTTOMLEFT as 0,0. Remember to also apply scale.
: Returns scale-independent coordinates similar to Cursor:GetCenter() if 'Cursor' was a valid frame. You can use this value relative to UIParent if you treat BOTTOMLEFT as 0,0. Remember to also apply scale.
== Notes ==
: To apply scale, divide both x and y by the value returned by UIParent:GetScale()
Anonymous user