# actionNames
function actionNames()Return the action names value.
src/miniquake2/client/ui/keys.mlProvides miniquake2 client ui keys facilities for this project.
miniquake2/client/ui/constants.ml as cuic → src/miniquake2/client/ui/constants.mlminiquake2/client/ui/types.ml as cuitypes → src/miniquake2/client/ui/types.mlminiquake2/platform/window.ml as pwindow → src/miniquake2/platform/window.mlfunction actionNames()Return the action names value.
function beginBindingCapture(state, command)Begin binding capture.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
command | dynamic | — | command value consumed by this operation. |
function bind(state, key, command)Bind state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
key | dynamic | — | key value consumed by this operation. |
command | dynamic | — | command value consumed by this operation. |
function bindDefaultGame(state)Product defaults retain the classic Quake II weapon keys and add the mouse wheel convention expected by modern players. Keeping these in the input package makes the real product bindings independently regression-testable.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function bindingFor(state, key)Return the binding for the requested input.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
key | dynamic | — | key value consumed by this operation. |
function cancelBindingCapture(state)Cancel binding capture.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function captureBindingEvent(state, key)Capture binding event.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
key | dynamic | — | key value consumed by this operation. |
function commandAction(command)Return the command action value.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | command value consumed by this operation. |
function createInputState()Create input state.
function defaultConfig()Return the default config value.
inline function drainCommands(state)Performs the drainCommands operation for the miniquake2 client ui keys module.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function eventKey(event)Return the event key value.
| Parameter | Type | Default | Description |
|---|---|---|---|
event | dynamic | — | event value consumed by this operation. |
function findAction(state, name)Find action.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
name | dynamic | — | Name of the affected item. |
function findBinding(state, key)Find binding.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
key | dynamic | — | key value consumed by this operation. |
function handleEvent(state, event, time)Handle event.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
event | dynamic | — | event value consumed by this operation. |
time | dynamic | — | time value consumed by this operation. |
function keyName(key)Return the compact key label used by the controls and inventory overlays.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | key value consumed by this operation. |
function queueBinding(state, key, down, time)Queue binding.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
key | dynamic | — | key value consumed by this operation. |
down | dynamic | — | down value consumed by this operation. |
time | dynamic | — | time value consumed by this operation. |
inline function queueDiscreteCommand(state, command)Queue discrete command.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
command | dynamic | — | command value consumed by this operation. |
function scanKey(scan)Scan key.
| Parameter | Type | Default | Description |
|---|---|---|---|
scan | dynamic | — | scan value consumed by this operation. |
function setAction(state, name, down)Set action.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
name | dynamic | — | Name of the affected item. |
down | dynamic | — | down value consumed by this operation. |
function setActionAtTime(state, name, down, time)Set action at an input timestamp for Quake II's time-weighted KeyState.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
name | dynamic | — | Name of the affected item. |
down | dynamic | — | down value consumed by this operation. |
time | dynamic | — | time value consumed by this operation. |
function setDestination(state, destination)Set destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
destination | dynamic | — | destination value consumed by this operation. |
function unbind(state, key)Unbind state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
key | dynamic | — | key value consumed by this operation. |
function unbindCommand(state, command)Unbind command.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
command | dynamic | — | command value consumed by this operation. |