CyberM.input

Runs inside the game process. Reads and presentation are local; anything that changes shared state has to go through the server.

client runtime2 functionsMarkdown

CyberM.input.isCaptured()

Whether another WebUI currently owns keyboard input.

Contextual actions should become inert while this is true so chat and menu typing cannot activate gameplay.

Returns

  • boolean
  • reason when permission is refused

Registered in ResourceHost.cpp as LuaInputCaptured (line 6758).

isDown

GAME

CyberM.input.isDown(key)

Whether an allowlisted contextual action key is currently held.

Requires input.actions. Supported keys are A-Z, 0-9, SPACE, ENTER/RETURN, and arrows. Prefer a press edge or hold timer over firing every frame.

Parameters

  • keystringrequired

Returns

  • boolean
  • reason when the key or permission is refused

Registered in ResourceHost.cpp as LuaInputKeyDown (line 6757).

For agents and LLMs: this page as Markdown · llms.txt · llms-full.txt