# beginMessage
function beginMessage(team)Initialize state for begin message.
| Parameter | Type | Default | Description |
|---|---|---|---|
team | dynamic | — | The team input consumed by `beginMessage`. |
src/miniquake/keys.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/cmd.ml as cmd → src/miniquake/cmd.mlminiquake/console.ml as console → src/miniquake/console.mlminiquake/cvar.ml as cvar → src/miniquake/cvar.mlminiquake/input.ml as input → src/miniquake/input.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/platform/win32.ml as win → src/miniquake/platform/win32.mlfunction beginMessage(team)Initialize state for begin message.
| Parameter | Type | Default | Description |
|---|---|---|---|
team | dynamic | — | The team input consumed by `beginMessage`. |
chatBufferTracks the module-level chat buffer state owned by `miniquake.keys`.
consoleKeysTracks the module-level console keys state owned by `miniquake.keys`.
inline function destination()Implements the `destination` operation for `miniquake.keys` (destination).
editLineTracks the module-level edit line state owned by `miniquake.keys`.
function hardwareKeyCodes()Implements the `hardwareKeyCodes` operation for `miniquake.keys` (hardware key codes).
historyLineTracks the module-level history line state owned by `miniquake.keys`.
function identityValues(count)Return identity values derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
count | dynamic | — | Number of entries or units to process. |
function initializeShiftTable()Initialize state for initialize shift table.
const K_ALT = 132Defines the k alt value used by `miniquake.keys`.
const K_AUX1 = 207Defines the k aux1 value used by `miniquake.keys`.
const K_BACKSPACE = 127Defines the k backspace value used by `miniquake.keys`.
const K_CTRL = 133Defines the k ctrl value used by `miniquake.keys`.
const K_DEL = 148Defines the k del value used by `miniquake.keys`.
const K_DOWNARROW = 129Defines the k downarrow value used by `miniquake.keys`.
const K_END = 152Defines the k end value used by `miniquake.keys`.
const K_ENTER = 13Defines the k enter value used by `miniquake.keys`.
const K_ESCAPE = 27Defines the k escape value used by `miniquake.keys`.
const K_F1 = 135Defines the k f1 value used by `miniquake.keys`.
const K_F12 = 146Defines the k f12 value used by `miniquake.keys`.
const K_HOME = 151Defines the k home value used by `miniquake.keys`.
const K_INS = 147Defines the k ins value used by `miniquake.keys`.
const K_JOY1 = 203Defines the k joy1 value used by `miniquake.keys`.
const K_LEFTARROW = 130Defines the k leftarrow value used by `miniquake.keys`.
const K_MOUSE1 = 200Defines the k mouse1 value used by `miniquake.keys`.
const K_MOUSE2 = 201Defines the k mouse2 value used by `miniquake.keys`.
const K_MOUSE3 = 202Defines the k mouse3 value used by `miniquake.keys`.
const K_MWHEELDOWN = 240Defines the k mwheeldown value used by `miniquake.keys`.
const K_MWHEELUP = 239Defines the k mwheelup value used by `miniquake.keys`.
const K_PAUSE = 255Defines the k pause value used by `miniquake.keys`.
const K_PGDN = 149Defines the k pgdn value used by `miniquake.keys`.
const K_PGUP = 150Defines the k pgup value used by `miniquake.keys`.
const K_RIGHTARROW = 131Defines the k rightarrow value used by `miniquake.keys`.
const K_SHIFT = 134Defines the k shift value used by `miniquake.keys`.
const K_SPACE = 32Defines the k space value used by `miniquake.keys`.
const K_TAB = 9Defines the k tab value used by `miniquake.keys`.
const K_UPARROW = 128Defines the k uparrow value used by `miniquake.keys`.
function Key_Bind_f(arguments)Mirror Quake's Key_Bind_f routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
arguments | dynamic | — | Command-line arguments to inspect or execute. |
function Key_Bindlist_f()Mirror Quake's Key_Bindlist_f routine and its observable state changes.
function Key_ClearStates()Mirror Quake's Key_ClearStates routine and its observable state changes.
const KEY_CONSOLE = 1Defines the key console value used by `miniquake.keys`.
function Key_Console(key, state, commandSystem, registry, visibleRows)Mirror Quake's Key_Console routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
state | dynamic | — | Mutable `miniquake.keys` state used by `Key_Console`. |
commandSystem | dynamic | — | The command system input consumed by `Key_Console`. |
registry | dynamic | — | The registry input consumed by `Key_Console`. |
visibleRows | dynamic | — | The visible rows input consumed by `Key_Console`. |
function Key_Event(key, down, consoleState, commandSystem, registry, forcedConsole, demoPlayback)Returns [commands-to-buffer, host-action, routed-key]. Host actions are intentionally small: menu policy stays in menu/host while key routing and binding semantics remain wholly owned here.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
down | dynamic | — | The down input consumed by `Key_Event`. |
consoleState | dynamic | — | Mutable state used by `Key_Event`. |
commandSystem | dynamic | — | The command system input consumed by `Key_Event`. |
registry | dynamic | — | The registry input consumed by `Key_Event`. |
forcedConsole | dynamic | — | The forced console input consumed by `Key_Event`. |
demoPlayback | dynamic | — | The demo playback input consumed by `Key_Event`. |
const KEY_GAME = 0Defines the key game value used by `miniquake.keys`.
function Key_Init()Mirror Quake's Key_Init routine and its observable state changes.
function Key_KeynumToString(keynum)Mirror Quake's Key_KeynumToString routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
keynum | dynamic | — | The keynum input consumed by `Key_KeynumToString`. |
const KEY_MENU = 3Defines the key menu value used by `miniquake.keys`.
const KEY_MESSAGE = 2Defines the key message value used by `miniquake.keys`.
function Key_Message(key)Mirror Quake's Key_Message routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function Key_QueueReleaseAllCommands()Mirror Quake's Key_QueueReleaseAllCommands routine and its observable state changes.
function Key_ReleaseAllCommands()gl_vidnt.c::ClearAllStates sends an up event for every Quake key before clearing the physical key table. The releases are deliberately generated for every + binding, not only keys that still appear down: this is how the original clears server-side button state after Alt-Tab and mode changes.
function Key_SetBinding(keynum, binding)Mirror Quake's Key_SetBinding routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
keynum | dynamic | — | The keynum input consumed by `Key_SetBinding`. |
binding | dynamic | — | The binding input consumed by `Key_SetBinding`. |
function Key_StringToKeynum(text)Mirror Quake's Key_StringToKeynum routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function Key_TakePendingCommands()Mirror Quake's Key_TakePendingCommands routine and its observable state changes.
function Key_Unbind_f(arguments)Mirror Quake's Key_Unbind_f routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
arguments | dynamic | — | Command-line arguments to inspect or execute. |
function Key_Unbindall_f()Mirror Quake's Key_Unbindall_f routine and its observable state changes.
function Key_WriteBindings()Mirror Quake's Key_WriteBindings routine and its observable state changes.
keyCountTracks the module-level key count state owned by `miniquake.keys`.
keyDestTracks the module-level key dest state owned by `miniquake.keys`.
keyDownStatesTracks the module-level key down states state owned by `miniquake.keys`.
keyLastPressTracks the module-level key last press state owned by `miniquake.keys`.
keyLinePosTracks the module-level key line pos state owned by `miniquake.keys`.
keyLinesTracks the module-level key lines state owned by `miniquake.keys`.
keyRepeatsTracks the module-level key repeats state owned by `miniquake.keys`.
keyShiftTracks the module-level key shift state owned by `miniquake.keys`.
const MAXCMDLINE = 256Defines the maxcmdline value used by `miniquake.keys`.
menuBoundTracks the module-level menu bound state owned by `miniquake.keys`.
pendingReleaseCommandsTracks the module-level pending release commands state owned by `miniquake.keys`.
function plusRelease(binding, key)Implements the `plusRelease` operation for `miniquake.keys` (plus release).
| Parameter | Type | Default | Description |
|---|---|---|---|
binding | dynamic | — | The binding input consumed by `plusRelease`. |
key | dynamic | — | Key used to identify the requested entry. |
function PollEvents()Consumes the ordered Win32 message queue. Packed native event types are: keyboard=1 (legacy raw VK), mouse button=2, wheel=3, focus=4, and keyboard=5 (MiniQuake hardware scan code).
registeredCommandNamesTracks the module-level registered command names state owned by `miniquake.keys`.
function setDestination(destination)Update module state for destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
destination | dynamic | — | Destination value or collection to update. |
shiftDownTracks the module-level shift down state owned by `miniquake.keys`.
teamMessageTracks the module-level team message state owned by `miniquake.keys`.
function zeroValues(count)Create the zero-initialized state for values.
| Parameter | Type | Default | Description |
|---|---|---|---|
count | dynamic | — | Number of entries or units to process. |