Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetCursorDelta

Last wiki revision 2022-07-21

Returns the distance that the cursor has moved since the last frame. x, y = GetCursorDelta

  • x: - Distance along the X axis that the cursor has travelled.
  • y: - Distance along the Y axis that the cursor has travelled.
  • If the cursor hasn't moved between two frames, this function will return zeroes.
  • Values returned by this function are independent of UI scaling. The GetScaledCursorDelta utility function can be used to apply the effective scale of UIParent to the returned values.

Source

https://warcraft.wiki.gg/wiki/API_GetCursorDelta · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.