-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.GetGamepadAxisMovement
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get axis movement vector for a gamepad
| Parameter | Default Value | Note |
|---|---|---|
| gamepad | 0 | |
| axis |
| Condition | Return Value |
|---|---|
| (always) | number |
// Read left stick horizontal axis on gamepad 0
lx = raylib.GetGamepadAxisMovement(0, raylib.GAMEPAD_AXIS_LEFT_X)
print "Left stick X: " + lx