Part of StarfallEx namespace
๐ External
hook.add("XInputPressed", "name", function(id, button, when) end)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Called when a controller button has been pressed. Client must have XInput Lua binary installed.
Parameters
| Name | Type | Description |
|---|---|---|
id | number | Controller number. Starts at 0 |
button | number | The button that was pushed. See https://github.com/mitterdoo/garrysmod-xinput#xinput_gamepad_ |
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.