# absoluteValue
function absoluteValue(value)Return absolute value derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `absoluteValue`. |
src/miniquake/input.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/common.ml as common → src/miniquake/common.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/cvar.ml as cv → src/miniquake/cvar.mlminiquake/mathlib.ml as math → src/miniquake/mathlib.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/platform/win32.ml as win → src/miniquake/platform/win32.mlminiquake/types.ml as t → src/miniquake/types.mlfunction absoluteValue(value)Return absolute value derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `absoluteValue`. |
function actionDown(command)Implements the `actionDown` operation for `miniquake.input` (action down).
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function actionPressed(command)Implements the `actionPressed` operation for `miniquake.input` (action pressed).
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
alwaysMouseLookTracks the module-level always mouse look state owned by `miniquake.input`.
function applyModernMovementBindings()Install the modern movement layout once when upgrading an original Quake configuration. Key_StringToKeynum deliberately distinguishes one-character upper- and lower-case names, while live Win32 polling uses the lower-case slots installed by resetBindings. Clear stale upper-case aliases so one physical key cannot own two different kbutton commands.
function applyMouse(command, mouseSensitivity, yawScale, pitchScale, filterEnabled)Apply mouse to the active subsystem state.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
mouseSensitivity | dynamic | — | The mouse sensitivity input consumed by `applyMouse`. |
yawScale | dynamic | — | The yaw scale input consumed by `applyMouse`. |
pitchScale | dynamic | — | The pitch scale input consumed by `applyMouse`. |
filterEnabled | dynamic | — | The filter enabled input consumed by `applyMouse`. |
function applyMouseDelta(command, deltaX, deltaY, mouseSensitivity, yawScale, pitchScale)IN_MouseMove first multiplies raw cursor motion by sensitivity and then by m_yaw/m_pitch. The former port treated sensitivity itself as degrees per pixel, making the stock value 3 about 45 times too strong.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
deltaX | dynamic | — | The delta x input consumed by `applyMouseDelta`. |
deltaY | dynamic | — | The delta y input consumed by `applyMouseDelta`. |
mouseSensitivity | dynamic | — | The mouse sensitivity input consumed by `applyMouseDelta`. |
yawScale | dynamic | — | The yaw scale input consumed by `applyMouseDelta`. |
pitchScale | dynamic | — | The pitch scale input consumed by `applyMouseDelta`. |
const AXIS_FORWARD = 1Defines the axis forward value used by `miniquake.input`.
const AXIS_LOOK = 2Defines the axis look value used by `miniquake.input`.
const AXIS_NADA = 0Defines the axis nada value used by `miniquake.input`.
const AXIS_SIDE = 3Defines the axis side value used by `miniquake.input`.
const AXIS_TURN = 4Defines the axis turn value used by `miniquake.input`.
function bindingForCode(code)Implements the `bindingForCode` operation for `miniquake.input` (binding for code).
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `bindingForCode`. |
function bindingForCommand(command)Implements the `bindingForCommand` operation for `miniquake.input` (binding for command).
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function bindingHoldsKey(command, key)Implements the `bindingHoldsKey` operation for `miniquake.input` (binding holds key).
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
key | dynamic | — | Key used to identify the requested entry. |
bindingsTracks the module-level bindings state owned by `miniquake.input`.
function bindingsForCommand(command)Implements the `bindingsForCommand` operation for `miniquake.input` (bindings for command).
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function bindingText()Implements the `bindingText` operation for `miniquake.input` (binding text).
function bindKey(keyName, command)Implements the `bindKey` operation for `miniquake.input` (bind key).
| Parameter | Type | Default | Description |
|---|---|---|---|
keyName | dynamic | — | Name that identifies the requested value or resource. |
command | dynamic | — | Console or protocol command to execute. |
function buildOriginalMove(command, signon, frameMilliseconds, mouseSensitivity, yawScale, pitchScale, filterEnabled, forwardSpeed, backSpeed, sideSpeed, upSpeed, noclipAngleHack, pollButtonBindings, deviceActive, minimized)Create and initialize original move.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
signon | dynamic | — | The signon input consumed by `buildOriginalMove`. |
frameMilliseconds | dynamic | — | The frame milliseconds input consumed by `buildOriginalMove`. |
mouseSensitivity | dynamic | — | The mouse sensitivity input consumed by `buildOriginalMove`. |
yawScale | dynamic | — | The yaw scale input consumed by `buildOriginalMove`. |
pitchScale | dynamic | — | The pitch scale input consumed by `buildOriginalMove`. |
filterEnabled | dynamic | — | The filter enabled input consumed by `buildOriginalMove`. |
forwardSpeed | dynamic | — | The forward speed input consumed by `buildOriginalMove`. |
backSpeed | dynamic | — | The back speed input consumed by `buildOriginalMove`. |
sideSpeed | dynamic | — | The side speed input consumed by `buildOriginalMove`. |
upSpeed | dynamic | — | The up speed input consumed by `buildOriginalMove`. |
noclipAngleHack | dynamic | — | The noclip angle hack input consumed by `buildOriginalMove`. |
pollButtonBindings | dynamic | — | The poll button bindings input consumed by `buildOriginalMove`. |
deviceActive | dynamic | — | The device active input consumed by `buildOriginalMove`. |
minimized | dynamic | — | The minimized input consumed by `buildOriginalMove`. |
buttonCommandButtonsKeep the matching kbutton references beside the canonical names. The live poll visits every command once per frame, so resolving the same 17 constant strings through buttonForCommand would only allocate lowercase copies and repeat its linear comparison chain.
buttonCommandNamesKeep the stock kbutton command set in persistent storage. Constructing this array in buttonCommands used to allocate it multiple times in every gameplay frame while the live binding poll was active.
function buttonCommands()Implements the `buttonCommands` operation for `miniquake.input` (button commands).
function buttonForCommand(command)Resolve an arbitrary-case button command through its canonical name.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function buttonForNormalizedCommand(wanted)Implements the `buttonForNormalizedCommand` operation for `miniquake.input` (button for normalized command).
| Parameter | Type | Default | Description |
|---|---|---|---|
wanted | dynamic | — | The wanted input consumed by `buttonForNormalizedCommand`. |
function captureGameplayTransitionHeldCodes()Capture only the physical +command controls that were already held when the UI/map transition began. Inputs first pressed after loading are intentional gameplay and must never extend the suppression latch.
function CL_AdjustAngles(command, frameTime, yawSpeed, pitchSpeed, angleSpeedKey)Apply the Quake-compatible cl adjust angles behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
frameTime | dynamic | — | Time value used by the operation. |
yawSpeed | dynamic | — | The yaw speed input consumed by `CL_AdjustAngles`. |
pitchSpeed | dynamic | — | The pitch speed input consumed by `CL_AdjustAngles`. |
angleSpeedKey | dynamic | — | The angle speed key input consumed by `CL_AdjustAngles`. |
function CL_BaseMove(command, signon, frameTime, forwardSpeed, backSpeed, sideSpeed, upSpeed, moveSpeedKey, yawSpeed, pitchSpeed, angleSpeedKey)Apply the Quake-compatible cl base move behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
signon | dynamic | — | The signon input consumed by `CL_BaseMove`. |
frameTime | dynamic | — | Time value used by the operation. |
forwardSpeed | dynamic | — | The forward speed input consumed by `CL_BaseMove`. |
backSpeed | dynamic | — | The back speed input consumed by `CL_BaseMove`. |
sideSpeed | dynamic | — | The side speed input consumed by `CL_BaseMove`. |
upSpeed | dynamic | — | The up speed input consumed by `CL_BaseMove`. |
moveSpeedKey | dynamic | — | The move speed key input consumed by `CL_BaseMove`. |
yawSpeed | dynamic | — | The yaw speed input consumed by `CL_BaseMove`. |
pitchSpeed | dynamic | — | The pitch speed input consumed by `CL_BaseMove`. |
angleSpeedKey | dynamic | — | The angle speed key input consumed by `CL_BaseMove`. |
function CL_ButtonBits()Apply the Quake-compatible cl button bits behavior.
function CL_FinishMove(command)Apply the Quake-compatible cl finish move behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function CL_InitInput()CL_InitInput's command registrations are represented explicitly so both the host command layer and tests can dispatch exactly the stock command set.
function CL_KeyState(button)Apply the Quake-compatible cl key state behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
button | dynamic | — | The button input consumed by `CL_KeyState`. |
function CL_TakeImpulse()Apply the Quake-compatible cl take impulse behavior.
function clear(command)Implements the `clear` operation for `miniquake.input` (clear).
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function clearEventKeyStates()Clear all ordered keyboard levels after focus loss or input shutdown.
function clearJoystickSnapshot()Clears joystick snapshot for `miniquake.input`.
function collect(command, frameMilliseconds, mouseSensitivity)Implements the `collect` operation for `miniquake.input` (collect).
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
frameMilliseconds | dynamic | — | The frame milliseconds input consumed by `collect`. |
mouseSensitivity | dynamic | — | The mouse sensitivity input consumed by `collect`. |
function collectGame(command, frameMilliseconds, mouseSensitivity, yawScale, pitchScale, filterEnabled, forwardSpeed, backSpeed, sideSpeed, upSpeed)Implements the `collectGame` operation for `miniquake.input` (collect game).
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
frameMilliseconds | dynamic | — | The frame milliseconds input consumed by `collectGame`. |
mouseSensitivity | dynamic | — | The mouse sensitivity input consumed by `collectGame`. |
yawScale | dynamic | — | The yaw scale input consumed by `collectGame`. |
pitchScale | dynamic | — | The pitch scale input consumed by `collectGame`. |
filterEnabled | dynamic | — | The filter enabled input consumed by `collectGame`. |
forwardSpeed | dynamic | — | The forward speed input consumed by `collectGame`. |
backSpeed | dynamic | — | The back speed input consumed by `collectGame`. |
sideSpeed | dynamic | — | The side speed input consumed by `collectGame`. |
upSpeed | dynamic | — | The up speed input consumed by `collectGame`. |
function commandButton(command)Resolve an arbitrary-case signed input command to its shared kbutton.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function commandButtonNormalized(command)Implements the `commandButtonNormalized` operation for `miniquake.input` (command button normalized).
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function commandForKey(keyName)Implements the `commandForKey` operation for `miniquake.input` (command for key).
| Parameter | Type | Default | Description |
|---|---|---|---|
keyName | dynamic | — | Name that identifies the requested value or resource. |
function configurePlatform(registry, noMouse, noJoystick, useDirectInput)Update subsystem configuration for configure platform.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `configurePlatform`. |
noMouse | dynamic | — | The no mouse input consumed by `configurePlatform`. |
noJoystick | dynamic | — | The no joystick input consumed by `configurePlatform`. |
useDirectInput | dynamic | — | The use direct input input consumed by `configurePlatform`. |
function consumePitchDriftRequests()Consume pending state for consume pitch drift requests.
function createButton()Create and initialize button.
function createCommand()Create and initialize command.
function cvarValue(name, fallback)Return cvar value derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
fallback | dynamic | — | Value to use when the requested input is unavailable or invalid. |
const DEFAULT_ANGLE_SPEED_KEY = 1.5Defines the default angle speed key value used by `miniquake.input`.
const DEFAULT_M_FORWARD = 1.Defines the default m forward value used by `miniquake.input`.
const DEFAULT_M_PITCH = 2.2e-002Defines the default m pitch value used by `miniquake.input`.
const DEFAULT_M_SIDE = 0.8Defines the default m side value used by `miniquake.input`.
const DEFAULT_M_YAW = 2.2e-002Defines the default m yaw value used by `miniquake.input`.
const DEFAULT_MOVE_SPEED_KEY = 2.Defines the default move speed key value used by `miniquake.input`.
const DEFAULT_PITCH_SPEED = 150.Defines the default pitch speed value used by `miniquake.input`.
const DEFAULT_YAW_SPEED = 140.Defines the default yaw speed value used by `miniquake.input`.
directInputTracks the module-level direct input state owned by `miniquake.input`.
directInputRequestedTracks the module-level direct input requested state owned by `miniquake.input`.
function dispatchInputCommand(command, key, value)Execute input command.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
key | dynamic | — | Key used to identify the requested entry. |
value | dynamic | — | Value consumed by `dispatchInputCommand`. |
eventKeyDownStatesTracks the module-level event key down states state owned by `miniquake.input`.
function filteredMouseDelta(filterEnabled)Implements the `filteredMouseDelta` operation for `miniquake.input` (filtered mouse delta).
| Parameter | Type | Default | Description |
|---|---|---|---|
filterEnabled | dynamic | — | The filter enabled input consumed by `filteredMouseDelta`. |
function firstPressedKey()Return first pressed key for the active module state.
function Force_CenterView_f(command)Mirror Quake's Force_CenterView_f routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
gameplayTransitionBlockedTracks the module-level gameplay transition blocked state owned by `miniquake.input`.
function gameplayTransitionCodeDown(code)Query only the current physical device level for a control captured at a menu/map boundary. eventKeyDownStates intentionally is not consulted here: it describes the pre-transition message stream and can remain set when the renderer or a synchronous map load clears/recreates the native input queue.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `gameplayTransitionCodeDown`. |
gameplayTransitionHeldCodesTracks the module-level gameplay transition held codes state owned by `miniquake.input`.
function hasBindingCode(code)Report whether binding code.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `hasBindingCode`. |
function impulseForCommand(command)Parse the exact canonical impulse binding accepted by the original polling path. Non-impulse and non-canonical command strings return zero.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function IN_Accumulate()Mirror Quake's IN_Accumulate routine and its observable state changes.
function IN_ActivateMouse()Mirror Quake's IN_ActivateMouse routine and its observable state changes.
function IN_AttackDown(key)Mirror Quake's IN_AttackDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_AttackUp(key)Mirror Quake's IN_AttackUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_BackDown(key)Mirror Quake's IN_BackDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_BackUp(key)Mirror Quake's IN_BackUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_BlockGameplayTransition()Block live gameplay controls while a menu selection or a map transition is still physically held. Clearing kbutton_t alone is insufficient because IN_PollButtonCommands would reconstruct +attack/+jump from the held Win32 key or mouse button on the first playable frame.
function IN_ClearDeviceStates()in_win.c::IN_ClearStates only clears the active mouse device state. Keep this distinct from MiniQuake's full input reset, which is used at startup and by deterministic evidence runs to clear command buttons as well.
function IN_ClearStates()Mirror Quake's IN_ClearStates routine and its observable state changes.
function IN_Commands()Mirror Quake's IN_Commands routine and its observable state changes.
function IN_DeactivateMouse()Mirror Quake's IN_DeactivateMouse routine and its observable state changes.
function IN_DifferentialClearJoystickStartup()Mirror Quake's IN_DifferentialClearJoystickStartup routine and its observable state changes.
function IN_DifferentialSetJoystickStartup(buttonCount, hasPov)Mirror Quake's IN_DifferentialSetJoystickStartup routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buttonCount | dynamic | — | Number of entries or units to process. |
hasPov | dynamic | — | The has pov input consumed by `IN_DifferentialSetJoystickStartup`. |
function IN_DifferentialSetMouse(initialized, active, activateToggle, showToggle, useDirectInput, oldButtonState, accumulatedX, accumulatedY, previousX, previousY, filterReady)Mirror Quake's IN_DifferentialSetMouse routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
initialized | dynamic | — | The initialized input consumed by `IN_DifferentialSetMouse`. |
active | dynamic | — | The active input consumed by `IN_DifferentialSetMouse`. |
activateToggle | dynamic | — | The activate toggle input consumed by `IN_DifferentialSetMouse`. |
showToggle | dynamic | — | The show toggle input consumed by `IN_DifferentialSetMouse`. |
useDirectInput | dynamic | — | The use direct input input consumed by `IN_DifferentialSetMouse`. |
oldButtonState | dynamic | — | Mutable state used by `IN_DifferentialSetMouse`. |
accumulatedX | dynamic | — | The accumulated x input consumed by `IN_DifferentialSetMouse`. |
accumulatedY | dynamic | — | The accumulated y input consumed by `IN_DifferentialSetMouse`. |
previousX | dynamic | — | The previous x input consumed by `IN_DifferentialSetMouse`. |
previousY | dynamic | — | The previous y input consumed by `IN_DifferentialSetMouse`. |
filterReady | dynamic | — | The filter ready input consumed by `IN_DifferentialSetMouse`. |
function IN_DifferentialState()Mirror Quake's IN_DifferentialState routine and its observable state changes.
function IN_DiscardPolledKeyEdges()Consume native keyboard press edges while UI-to-game handoff is blocked.
function IN_DownDown(key)Mirror Quake's IN_DownDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_DownUp(key)Mirror Quake's IN_DownUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_ForwardDown(key)Mirror Quake's IN_ForwardDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_ForwardUp(key)Mirror Quake's IN_ForwardUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_GameplayTransitionBlocked()Report whether a menu/map handoff is still suppressing live controls.
function IN_GameplayTransitionControlHeld()Report whether a control captured at the transition boundary remains held.
function IN_HideMouse()Mirror Quake's IN_HideMouse routine and its observable state changes.
function IN_Impulse(value)Mirror Quake's IN_Impulse routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `IN_Impulse`. |
function IN_Init()Mirror Quake's IN_Init routine and its observable state changes.
function IN_InitDInput()Mirror Quake's IN_InitDInput routine and its observable state changes.
function IN_JoyMove(command, frameSeconds)Mirror Quake's IN_JoyMove routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
frameSeconds | dynamic | — | The frame seconds input consumed by `IN_JoyMove`. |
function IN_JumpDown(key)Mirror Quake's IN_JumpDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_JumpUp(key)Mirror Quake's IN_JumpUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_KLookDown(key)Mirror Quake's IN_KLookDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_KLookUp(key)Mirror Quake's IN_KLookUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_LeftDown(key)Mirror Quake's IN_LeftDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_LeftUp(key)Mirror Quake's IN_LeftUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_LookdownDown(key)Mirror Quake's IN_LookdownDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_LookdownUp(key)Mirror Quake's IN_LookdownUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_LookupDown(key)Mirror Quake's IN_LookupDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_LookupUp(key)Mirror Quake's IN_LookupUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_MLookDown(key)Mirror Quake's IN_MLookDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_MLookUp(key)Mirror Quake's IN_MLookUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_MouseEvent(mouseState)Mirror Quake's IN_MouseEvent routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
mouseState | dynamic | — | Mutable state used by `IN_MouseEvent`. |
function IN_MouseMove(command, mouseSensitivity, yawScale, pitchScale, filterEnabled, sideScale, forwardScale, lookStrafe, noclipAngleHack)Mirror Quake's IN_MouseMove routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
mouseSensitivity | dynamic | — | The mouse sensitivity input consumed by `IN_MouseMove`. |
yawScale | dynamic | — | The yaw scale input consumed by `IN_MouseMove`. |
pitchScale | dynamic | — | The pitch scale input consumed by `IN_MouseMove`. |
filterEnabled | dynamic | — | The filter enabled input consumed by `IN_MouseMove`. |
sideScale | dynamic | — | The side scale input consumed by `IN_MouseMove`. |
forwardScale | dynamic | — | The forward scale input consumed by `IN_MouseMove`. |
lookStrafe | dynamic | — | The look strafe input consumed by `IN_MouseMove`. |
noclipAngleHack | dynamic | — | The noclip angle hack input consumed by `IN_MouseMove`. |
function IN_Move(command, mouseSensitivity, yawScale, pitchScale, filterEnabled, sideScale, forwardScale, lookStrafe, noclipAngleHack, frameSeconds, active, minimized)Mirror Quake's IN_Move routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
mouseSensitivity | dynamic | — | The mouse sensitivity input consumed by `IN_Move`. |
yawScale | dynamic | — | The yaw scale input consumed by `IN_Move`. |
pitchScale | dynamic | — | The pitch scale input consumed by `IN_Move`. |
filterEnabled | dynamic | — | The filter enabled input consumed by `IN_Move`. |
sideScale | dynamic | — | The side scale input consumed by `IN_Move`. |
forwardScale | dynamic | — | The forward scale input consumed by `IN_Move`. |
lookStrafe | dynamic | — | The look strafe input consumed by `IN_Move`. |
noclipAngleHack | dynamic | — | The noclip angle hack input consumed by `IN_Move`. |
frameSeconds | dynamic | — | The frame seconds input consumed by `IN_Move`. |
active | dynamic | — | The active input consumed by `IN_Move`. |
minimized | dynamic | — | The minimized input consumed by `IN_Move`. |
function IN_MoveDelta(command, deltaX, deltaY, mouseSensitivity, yawScale, pitchScale, sideScale, forwardScale, lookStrafe, noclipAngleHack)Mirror Quake's IN_MoveDelta routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
deltaX | dynamic | — | The delta x input consumed by `IN_MoveDelta`. |
deltaY | dynamic | — | The delta y input consumed by `IN_MoveDelta`. |
mouseSensitivity | dynamic | — | The mouse sensitivity input consumed by `IN_MoveDelta`. |
yawScale | dynamic | — | The yaw scale input consumed by `IN_MoveDelta`. |
pitchScale | dynamic | — | The pitch scale input consumed by `IN_MoveDelta`. |
sideScale | dynamic | — | The side scale input consumed by `IN_MoveDelta`. |
forwardScale | dynamic | — | The forward scale input consumed by `IN_MoveDelta`. |
lookStrafe | dynamic | — | The look strafe input consumed by `IN_MoveDelta`. |
noclipAngleHack | dynamic | — | The noclip angle hack input consumed by `IN_MoveDelta`. |
function IN_MoveleftDown(key)Mirror Quake's IN_MoveleftDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_MoveleftUp(key)Mirror Quake's IN_MoveleftUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_MoverightDown(key)Mirror Quake's IN_MoverightDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_MoverightUp(key)Mirror Quake's IN_MoverightUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_PollButtonCommands()Mirror Quake's IN_PollButtonCommands routine and its observable state changes.
function IN_ReadJoystick()Mirror Quake's IN_ReadJoystick routine and its observable state changes.
function IN_ReleaseGameplayTransitionIfNeutral()Release the transition latch only after every gameplay control has returned to neutral. The caller deliberately suppresses the release-detecting frame as well, so queued native press edges cannot leak into the new level.
function IN_RestoreOriginalMouseState()Mirror Quake's IN_RestoreOriginalMouseState routine and its observable state changes.
function IN_RightDown(key)Mirror Quake's IN_RightDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_RightUp(key)Mirror Quake's IN_RightUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_SetFreeLook(enabled)Select modern persistent free-look without changing the original +mlook button state. Differential tests and compatibility callers retain stock Quake behavior until the production host explicitly enables this mode.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | dynamic | — | Whether the optional behavior is enabled. |
function IN_SetQuakeMouseState()Mirror Quake's IN_SetQuakeMouseState routine and its observable state changes.
function IN_ShowMouse()Mirror Quake's IN_ShowMouse routine and its observable state changes.
function IN_Shutdown()Mirror Quake's IN_Shutdown routine and its observable state changes.
function IN_SpeedDown(key)Mirror Quake's IN_SpeedDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_SpeedUp(key)Mirror Quake's IN_SpeedUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_StartupJoystick()Mirror Quake's IN_StartupJoystick routine and its observable state changes.
function IN_StartupMouse()Mirror Quake's IN_StartupMouse routine and its observable state changes.
function IN_StrafeDown(key)Mirror Quake's IN_StrafeDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_StrafeUp(key)Mirror Quake's IN_StrafeUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_UpdateClipCursor()Mirror Quake's IN_UpdateClipCursor routine and its observable state changes.
function IN_UpDown(key)Mirror Quake's IN_UpDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_UpUp(key)Mirror Quake's IN_UpUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_UseDown(key)Mirror Quake's IN_UseDown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
function IN_UseUp(key)Mirror Quake's IN_UseUp routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
key | dynamic | — | Key used to identify the requested entry. |
inAttackTracks the module-level in attack state owned by `miniquake.input`.
inBackTracks the module-level in back state owned by `miniquake.input`.
inDownTracks the module-level in down state owned by `miniquake.input`.
inForwardTracks the module-level in forward state owned by `miniquake.input`.
inImpulseTracks the module-level in impulse state owned by `miniquake.input`.
inJumpTracks the module-level in jump state owned by `miniquake.input`.
inKLookTracks the module-level in k look state owned by `miniquake.input`.
inLeftTracks the module-level in left state owned by `miniquake.input`.
inLookdownTracks the module-level in lookdown state owned by `miniquake.input`.
inLookupTracks the module-level in lookup state owned by `miniquake.input`.
inMLookcl_input.c's kbutton_t is deliberately represented as a three-element mutable value: two independently held key numbers followed by the original state bitfield (down=1, impulse-down=2, impulse-up=4).
inMoveleftTracks the module-level in moveleft state owned by `miniquake.input`.
inMoverightTracks the module-level in moveright state owned by `miniquake.input`.
inputRegistryTracks the module-level input registry state owned by `miniquake.input`.
inRightTracks the module-level in right state owned by `miniquake.input`.
inSpeedTracks the module-level in speed state owned by `miniquake.input`.
inStrafeTracks the module-level in strafe state owned by `miniquake.input`.
inUpTracks the module-level in up state owned by `miniquake.input`.
inUseTracks the module-level in use state owned by `miniquake.input`.
const JOY_ABSOLUTE_AXIS = 0Defines the joy absolute axis value used by `miniquake.input`.
function Joy_AdvancedUpdate_f()Mirror Quake's Joy_AdvancedUpdate_f routine and its observable state changes.
const JOY_MAX_AXES = 6Defines the joy max axes value used by `miniquake.input`.
const JOY_RELATIVE_AXIS = 16Defines the joy relative axis value used by `miniquake.input`.
joyAdvancedInitializedTracks the module-level joy advanced initialized state owned by `miniquake.input`.
joyAvailableTracks the module-level joy available state owned by `miniquake.input`.
joyAxesTracks the module-level joy axes state owned by `miniquake.input`.
joyAxisMapTracks the module-level joy axis map state owned by `miniquake.input`.
joyButtonCountTracks the module-level joy button count state owned by `miniquake.input`.
joyControlMapTracks the module-level joy control map state owned by `miniquake.input`.
joyHasPovTracks the module-level joy has pov state owned by `miniquake.input`.
joyOldButtonStateTracks the previous module-level joystick-button state owned by `miniquake.input`.
joyOldPovStateTracks the previous module-level joystick POV state owned by `miniquake.input`.
joyPovTracks the module-level joy pov state owned by `miniquake.input`.
joySnapshotButtonsTracks the module-level joy snapshot buttons state owned by `miniquake.input`.
joystickStartupOverrideTracks the module-level joystick startup override state owned by `miniquake.input`.
joystickTestSnapshotTracks the module-level joystick test snapshot state owned by `miniquake.input`.
function keyCodeForName(name)Return key code for name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
function KeyDown(button, key)KeyDown/KeyUp retain the original two-key ownership rule. A key number of -1 is the console's manual, continuously-held form; void on KeyUp is the original "unstick this action" command with no key-number argument.
| Parameter | Type | Default | Description |
|---|---|---|---|
button | dynamic | — | The button input consumed by `KeyDown`. |
key | dynamic | — | Key used to identify the requested entry. |
function keyIsDown(code)Implements the `keyIsDown` operation for `miniquake.input` (key is down).
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `keyIsDown`. |
function keyIsDownWithMouseSnapshot(code, mouseButtons)Test a physical key while reusing the mouse snapshot captured for this poll. Keyboard and joystick semantics deliberately remain identical to keyIsDown.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `keyIsDownWithMouseSnapshot`. |
mouseButtons | dynamic | — | The mouse buttons input consumed by `keyIsDownWithMouseSnapshot`. |
function keyNameForCode(code)Implements the `keyNameForCode` operation for `miniquake.input` (key name for code).
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `keyNameForCode`. |
function keyPressedForCode(code)Implements the `keyPressedForCode` operation for `miniquake.input` (key pressed for code).
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `keyPressedForCode`. |
function KeyUp(button, key)Implements the `KeyUp` operation for `miniquake.input` (key up).
| Parameter | Type | Default | Description |
|---|---|---|---|
button | dynamic | — | The button input consumed by `KeyUp`. |
key | dynamic | — | Key used to identify the requested entry. |
lookSpringEnabledTracks the module-level look spring enabled state owned by `miniquake.input`.
function lower(text)Convert data for lower.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
mouseAccumXTracks the module-level mouse accum x state owned by `miniquake.input`.
mouseAccumYTracks the module-level mouse accum y state owned by `miniquake.input`.
mouseActivateToggleTracks the module-level mouse activate toggle state owned by `miniquake.input`.
mouseActiveTracks the module-level mouse active state owned by `miniquake.input`.
mouseCapturedTracks the module-level mouse captured state owned by `miniquake.input`.
mouseDeltaScratchTracks the module-level mouse delta scratch state owned by `miniquake.input`.
mouseFilterReadyTracks the module-level mouse filter ready state owned by `miniquake.input`.
mouseInitializedTracks the module-level mouse initialized state owned by `miniquake.input`.
mouseOldButtonStateTracks the previous module-level mouse-button state owned by `miniquake.input`.
mouseShowToggleTracks the module-level mouse show toggle state owned by `miniquake.input`.
noJoystickRequestedTracks the module-level no joystick requested state owned by `miniquake.input`.
noMouseRequestedTracks the module-level no mouse requested state owned by `miniquake.input`.
oldMouseXTracks the module-level old mouse x state owned by `miniquake.input`.
oldMouseYTracks the module-level old mouse y state owned by `miniquake.input`.
pitchDriftStartRequestedTracks the module-level pitch drift start requested state owned by `miniquake.input`.
pitchDriftStopRequestedTracks the module-level pitch drift stop requested state owned by `miniquake.input`.
function polledBindingHoldsKey(command, key, mouseButtons)Check a held owner against the pre-normalized polling cache and current physical snapshot without allocating or rescanning unrelated bind commands.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
key | dynamic | — | Key used to identify the requested entry. |
mouseButtons | dynamic | — | The mouse buttons input consumed by `polledBindingHoldsKey`. |
polledBindingsTracks the module-level polled bindings state owned by `miniquake.input`.
function polledKeyDownAt(code, mouseButtons)Resolve a binding level from the frame-local bulk keyboard/mouse snapshot.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `polledKeyDownAt`. |
mouseButtons | dynamic | — | The mouse buttons input consumed by `polledKeyDownAt`. |
polledKeyDownSnapshotTracks the module-level polled key down snapshot state owned by `miniquake.input`.
function polledKeyPressedAt(code)Resolve a binding press edge from the frame-local bulk keyboard snapshot.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `polledKeyPressedAt`. |
polledKeyPressedSnapshotTracks the module-level polled key pressed snapshot state owned by `miniquake.input`.
polledKeyQueryMaskTracks the module-level polled key query mask state owned by `miniquake.input`.
function quakeKeyForScanCode(scanCode)gl_vidnt.c does not translate keyboard messages through virtual-key values. It uses bits 16..23 of lParam, i.e. the hardware scan code. Keeping that mapping here preserves keypad/navigation distinctions and makes keyboard input independent of the active Windows keyboard layout.
| Parameter | Type | Default | Description |
|---|---|---|---|
scanCode | dynamic | — | The scan code input consumed by `quakeKeyForScanCode`. |
function quakeKeyForVirtualKey(virtualKey)Implements the `quakeKeyForVirtualKey` operation for `miniquake.input` (quake key for virtual key).
| Parameter | Type | Default | Description |
|---|---|---|---|
virtualKey | dynamic | — | The virtual key input consumed by `quakeKeyForVirtualKey`. |
function quoteBinding(text)Convert data for quote binding.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function RawValuePointer(axis)Implements the `RawValuePointer` operation for `miniquake.input` (raw value pointer).
| Parameter | Type | Default | Description |
|---|---|---|---|
axis | dynamic | — | The axis input consumed by `RawValuePointer`. |
function rebuildPolledBindings()Rebuild the small, immutable-at-runtime subset needed by the live input poll. Bind commands that are handled solely by Key_Event are intentionally absent.
function requestStartPitchDrift()Implements the `requestStartPitchDrift` operation for `miniquake.input` (request start pitch drift).
function requestStopPitchDrift()Implements the `requestStopPitchDrift` operation for `miniquake.input` (request stop pitch drift).
function resetBindings()Update module state for bindings.
function resetButton(button)Update module state for button.
| Parameter | Type | Default | Description |
|---|---|---|---|
button | dynamic | — | The button input consumed by `resetButton`. |
function resetMouse()Clear both the MiniLang filter history and any native cursor displacement accumulated while the menu, console, or another application owned the mouse. WinQuake performs the equivalent reset whenever capture is reacquired.
function sampleFilteredMouseDelta(filterEnabled, output)Sample filtered mouse motion into caller-owned two-element storage.
| Parameter | Type | Default | Description |
|---|---|---|---|
filterEnabled | dynamic | — | The filter enabled input consumed by `sampleFilteredMouseDelta`. |
output | dynamic | — | Destination that receives the filtered mouse delta. |
function setBindingCode(code, command)Update module state for binding code.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `setBindingCode`. |
command | dynamic | — | Console or protocol command to execute. |
function setEventKeyState(code, down)Record the ordered Quake key level delivered by the Win32 event queue. Keeping this separate from kbutton ownership lets live polling repair a consumed command without trusting a transient asynchronous key sample.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `setEventKeyState`. |
down | dynamic | — | The down input consumed by `setEventKeyState`. |
function setJoystickSnapshot(axes, buttons, pov, buttonCount, hasPov)Sets joystick snapshot for `miniquake.input`.
| Parameter | Type | Default | Description |
|---|---|---|---|
axes | dynamic | — | The axes input consumed by `setJoystickSnapshot`. |
buttons | dynamic | — | The buttons input consumed by `setJoystickSnapshot`. |
pov | dynamic | — | The pov input consumed by `setJoystickSnapshot`. |
buttonCount | dynamic | — | Number of entries or units to process. |
hasPov | dynamic | — | The has pov input consumed by `setJoystickSnapshot`. |
function setLookSpring(enabled)Update module state for look spring.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | dynamic | — | Whether the optional behavior is enabled. |
function setMouseCapture(enabled)Keep the capture transition in one place. Calling this every host frame is intentional: it only touches Win32 when the desired state changes, while a focus loss/reacquire reliably resets both native and filtered deltas.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | dynamic | — | Whether the optional behavior is enabled. |
function synchronizeButton(command)Translate the native polling API into the same edge events Key_Event feeds into cl_input.c. This preserves ownership when two bound keys hold one action, and also preserves a press/release completed between two frames.
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function unbindAll()Implements the `unbindAll` operation for `miniquake.input` (unbind all).
function unbindCommand(command)Implements the `unbindCommand` operation for `miniquake.input` (unbind command).
| Parameter | Type | Default | Description |
|---|---|---|---|
command | dynamic | — | Console or protocol command to execute. |
function unbindKey(keyName)Implements the `unbindKey` operation for `miniquake.input` (unbind key).
| Parameter | Type | Default | Description |
|---|---|---|---|
keyName | dynamic | — | Name that identifies the requested value or resource. |
function updateJoystickSnapshot(axes, buttons, pov)Updates joystick snapshot for `miniquake.input`.
| Parameter | Type | Default | Description |
|---|---|---|---|
axes | dynamic | — | The axes input consumed by `updateJoystickSnapshot`. |
buttons | dynamic | — | The buttons input consumed by `updateJoystickSnapshot`. |
pov | dynamic | — | The pov input consumed by `updateJoystickSnapshot`. |
function virtualKeyForCode(code)Implements the `virtualKeyForCode` operation for `miniquake.input` (virtual key for code).
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `virtualKeyForCode`. |