Function: bind_to_dik()
Call Signature
ts
function bind_to_dik(this: void, action: number): number;Get the primary DIK key bound to a game action.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | void | - |
action | number | Game action id. |
Returns
number
DIK or mouse/gamepad key code.
Remarks
Returns the first binding slot for the action.
Call Signature
ts
function bind_to_dik(
this: void,
action: number,
index: number): number;Get a DIK key bound to a game action by binding slot.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | void | - |
action | number | Game action id. |
index | number | Binding slot index. |
Returns
number
DIK or mouse/gamepad key code.
Remarks
index selects the action binding slot used by the engine input configuration.