Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

UIHANDLER OnGamePadStick

Last wiki revision 2023-08-18

Fires when a gamepad stick is moved. OnGamePadStick: self, stick, x, y, len

  • stick: - The name of the stick that was moved.
  • x: - The X coordinate of the stick, constrained between -1 and 1.
  • y: - The Y coordinate of the stick, constrained between -1 and 1.
  • len: - Represents the distance of the stick from its center point, constrained between 0 and 1.
  • Requires that the widget enable receipt of gamepad stick inputs. See.
  • This handler will only be dispatched for the top-most frame that has enabled gamepad stick inputs.
  • A single stick may have multiple names, for example the left stick may dispatch two handlers for each movement with the names "LeftStick" and "Movement".
  • The deadzone configured for a stick is handled internally by the client; small movements from the resting position of the stick will not trigger this script handler until the deadzone has been exceeded.
  • The constraints applied to the payload coordinates are relative to the deadzone, such that any coordinate of 0 indicates the stick is within the deadzone for that axis.
  • GitHub

Source

https://warcraft.wiki.gg/wiki/UIHANDLER_OnGamePadStick · 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.