Nucleus handler tools › Docs › ProtoInput › LockInput

ProtoInput.LockInput

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

ProtoInput.LockInput(lockInput: boolean): number

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.

✎ AI-written, based on Nucleus ProtoInput.cs (LockInput, ProtoInputUtilDynamic DllImport), ProtoInputUtil InputLocker.cpp (LockInput, LoopThread), Nucleus LockInputRuntime.cs (Lock, Unlock). Not from the official docs. Is it wrong? Tell us

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop