NodeWorld

DesktopPointerKey

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public sealed class DesktopPointerKey

Namespace NodeWorld.SDK.Client.XR.

Tab on desktop frees the mouse to point and click at things (client and Play mode): a short press toggles it, holding the key keeps it free while held. The key is read through the TypingGate, so a press made while typing in a text field does nothing.

Constants

ShortPress

csharp
public const float ShortPress = 0.3f

Longest press that toggles (s); the same as the menu of La Guinguette (LG_Menu.appuiBref).

Properties

Active

csharp
public bool Active { get; }

The mouse is free: toggled on, or the key is held.

Methods

Update

csharp
public bool Update(bool keyPressed)

Reads the key (as the game sees it) once per frame; returns Active.

Release

csharp
public void Release()

Back to the locked mouse (the player left the world).