# create
function create(enabled)Creates create for the miniquake2 client ui gamepad module.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | dynamic | — | enabled value consumed by this operation. |
src/miniquake2/client/ui/gamepad.mlProvides miniquake2 client ui gamepad facilities for this project.
miniquake2/native.ml as gamepadnative → src/miniquake2/native.mlfunction create(enabled)Creates create for the miniquake2 client ui gamepad module.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | dynamic | — | enabled value consumed by this operation. |
miniquake2.client.ui.gamepad.GamepadSample struct
miniquake2.client.ui.gamepad.GamepadState struct
inline function normalizeAxis(raw, deadZone)Normalize axis.
| Parameter | Type | Default | Description |
|---|---|---|---|
raw | dynamic | — | raw value consumed by this operation. |
deadZone | dynamic | — | deadZone value consumed by this operation. |
function poll(state)Performs the poll operation for the miniquake2 client ui gamepad module.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function sampleRaw(state, axes, buttons, pov)Sample raw.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
axes | dynamic | — | axes value consumed by this operation. |
buttons | dynamic | — | buttons value consumed by this operation. |
pov | dynamic | — | pov value consumed by this operation. |