⚲
Class:
GamePad
Lua
C++
Edit
GamePad::GetAxisPosition
This method gets the current position of a thumbstick or trigger.
Syntax
Vec2
GetAxisPosition
(const GamePadAxis axis)
Parameter
Description
axis
gamepad axis, can be GAMEPADAXIS_RTRIGGER, GAMEPADAXIS_LTRIGGER, GAMEPADAXIS_RSTICK, or GAMEPADAXIS_LSTICK
Returns
Returns the gamepad axis position.
Copyright © 2025 Ultra Software.
All rights reserved.