Skip to reading
GDScript Programming & Godot

SetMouseClicksEnabled()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Enable Mouse Clicks

Enable or disable the extension's mouse-click interaction switch.

Source table from SetMouseClicksEnabled(), page 195
Option key / fieldMeaning and inputDefault
Enabled enabledExplicit on/off state for the feature or response.true

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SetMouseClicksEnabled({"enabled": true})

In use. Disable scene clicks while a special control sequence owns the pointer. It is a different switch from hiding the cursor. Restore it on every completion and cancellation path.

SetMousePointingEnabled()#

Enable Mouse Pointing

Enable or disable mouse pointing/hover behavior through the extension.

Source table from SetMouseClicksEnabled(), page 195
Option key / fieldMeaning and inputDefault
Enabled enabledExplicit on/off state for the feature or response.true

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SetMousePointingEnabled({"enabled": true})

In use. Disable hover targeting during a locked cinematic view. This does not necessarily remove every GUI interaction or keyboard route; use the appropriate broader input lock when needed.

Page 195 of 378Permalink
Go to page