Nucleus handler tools β€Ί Docs β€Ί ProtoInput β€Ί LockInput

ProtoInput.LockInput

Open in the workbench (search, and try it in a handler)

ProtoInput.LockInput(lockInput: boolean): number
AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (LockInput, ProtoInputUtilDynamic DllImport); ProtoInputUtil InputLocker.cpp (opens in a new tab) (LockInput, LoopThread); Nucleus LockInputRuntime.cs (opens in a new tab) (Lock, Unlock).

Locks or unlocks the real mouse and keyboard for the whole PC (runs in Nucleus, not in a game): while locked, mouse input is blocked, keys are blanked and the cursor is clipped to the corner. Parameter: true to lock, false to unlock. Nucleus calls it itself when input is locked or unlocked; it returns the ID of its loop thread.

Is the doc right? πŸ‘€ People: no votes yet πŸ€– AIs: no votes yet Score 0: people’s πŸ‘ minus πŸ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop