The API is no longer being updated here until further notice.
Fires when a gamepad stick is moved.
OnGamePadStick: self, stick, x, y, len
Payload[]
stick
string - The name of the stick that was moved.
x
number - The X coordinate of the stick, constrained between -1 and 1.
y
number - The Y coordinate of the stick, constrained between -1 and 1.
len
number - Represents the distance of the stick from its center point, constrained between 0 and 1.
Details[]
Requires that the widget enable receipt of gamepad stick inputs. See Frame:EnableGamePadStick(enabled).
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.
GamePadEnableGamePadEnable Default: 0 Whether GamePad input should be enabled
GamePadAbbreviatedBindingReverseGamePadAbbreviatedBindingReverse Default: 1 Display main binding button first so it's visible even if truncated on action bar
GamePadSingleActiveIDGamePadSingleActiveID Default: 0 ID of single GamePad device to use. 0 = Use all devices' combined input
GamePadFactionColorGamePadFactionColor Default: 1 Enable setting GamePad's led color to match current faction
Camera
GamePadCameraLookMaxPitchGamePadCameraLookMaxPitch Default: 0 Max pitch 'Look' stick can adjust camera angle
GamePadCameraLookMaxYawGamePadCameraLookMaxYaw Default: 0 Max yaw 'Look' stick can adjust camera angle
GamePadCameraPitchSpeedGamePadCameraPitchSpeed Default: 1 Pitch speed of GamePad camera moving up/down
GamePadCameraYawSpeedGamePadCameraYawSpeed Default: 1 Yaw speed of GamePad camera turning left/right
GamePadTurnWithCameraGamePadTurnWithCamera Default: 1 Turn character to match when camera facing is changed (1=in-combat, 2=always)
CameraFollowGamepadAdjustDelayCameraFollowGamepadAdjustDelay Default: 1.0, Scope: Account Delay before follow resuming after manually adjusting the camera with Gamepad input
CameraFollowGamepadAdjustEaseInCameraFollowGamepadAdjustEaseIn Default: 1.0, Scope: Account Ease-in time for follow resuming after manually adjusting the camera with Gamepad input
Cursor
GamePadCursorAutoDisableJumpGamePadCursorAutoDisableJump Default: 1 GamePad cursor control will auto-disable when you jump
GamePadCursorAutoDisableSticksGamePadCursorAutoDisableSticks Default: 2 GamePad cursor control will auto-disable on stick input (0=none, 1=movement, 2=movement+cursor)
GamePadCursorAutoEnableGamePadCursorAutoEnable Default: 1 Auto enable GamePad cursor control when opening UIs that may need it
GamePadCursorCenteredEmulationGamePadCursorCenteredEmulation Default: 1 When cursor is centered for GamePad movement, also emulate mouse clicks
GamePadCursorCenteringGamePadCursorCentering Default: 0 When using GamePad, center the cursor
GamePadCursorLeftClickGamePadCursorLeftClick Default: PADRTRIGGER GamePad button that should emulate mouse Left Click while controlling the mouse cursor
GamePadCursorOnLoginGamePadCursorOnLogin Default: 1 Enable GamePad cursor control on login and character screens
GamePadCursorPushCameraGamePadCursorPushCamera Default: 1 Rate for GamePad controlled cursor to push/turn camera when at edge of window
GamePadCursorRightClickGamePadCursorRightClick Default: PADRSHOULDER GamePad button that should emulate mouse Right Click while controlling the mouse cursor
GamePadCursorSpeedAccelGamePadCursorSpeedAccel Default: 2 Acceleration of GamePad cursor per second as it continues to move
GamePadCursorSpeedMaxGamePadCursorSpeedMax Default: 1 Top speed of GamePad cursor movement
GamePadCursorSpeedStartGamePadCursorSpeedStart Default: 0.1 Speed of GamePad cursor when it starts moving
GamePadTouchCursorEnableGamePadTouchCursorEnable Default: 1 Enable cursor control with GamePad's touch pad
Emulate
GamePadEmulateCtrlGamePadEmulateCtrl Default: PADLSHOULDER GamePad button that should emulate the Ctrl key
GamePadEmulateShiftGamePadEmulateShift Default: PADLTRIGGER GamePad button that should emulate the Shift key
GamePadEmulateAltGamePadEmulateAlt Default: none GamePad button that should emulate the Alt key
GamePadEmulateEscGamePadEmulateEsc Default: PADBACK GamePad button that should emulate the Esc key
Movement
GamePadAnalogMovementGamePadAnalogMovement Default: 1 Enable analog movement in any direction, rather than just the 8 cardinal directions
GamePadFaceMovementMaxAngleGamePadFaceMovementMaxAngle Default: 0 Max movement to camera angle to face movement direction instead of camera direction. 0 = always, 180 = never (115 allows using strafe with quick turn around)
GamePadFaceMovementMaxAngleCombatGamePadFaceMovementMaxAngleCombat Default: 180 Max movement to camera angle to face movement direction instead of camera direction, in combat. 0 = always, 180 = never (115 allows using strafe with quick turn around)
GamePadStickAxisButtonsGamePadStickAxisButtons Default: 0 Enables virtual buttons for the GamePad stick cardinal directions
GamePadTankTurnSpeedGamePadTankTurnSpeed Default: 0 If non-zero, character turns like a tank from GamePad movement