Skip to main content

onCursorLock

This event is triggered when the cursor is locked or unlocked.

Parameters

NameTypeDescription
statusbooleanThe lock status of the cursor (true if locked)

Example

engine.events.on('onCursorLock', status => {
console.log('Cursor lock status:', status);
});

Available on: Client