Part of StarfallEx namespace
๐ External
hook.add("XInputStick", "name", function(id, x, y, stick, when) end)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Called when a stick on the controller has moved. Client must have XInput Lua binary installed.
Parameters
| Name | Type | Description |
|---|---|---|
id | number | Controller number. Starts at 0 |
x | number | The X coordinate of the trigger. -32768 - 32767 inclusive |
y | number | The Y coordinate of the trigger. -32768 - 32767 inclusive |
stick | number | The stick that was moved. 0 is left |
when | number | The timer.realtime() at which this event occurred. |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.