神岛 API 文档 - ArenaPro版
    Preparing search index...

    全局监听玩家的输入。

    Globally listens for player input.

    Index

    Properties

    onPointerDown: { sub: (handler: (e: { target: UiNode }) => void) => void }

    全局监听当玩家按下鼠标时产生的事件。

    Globally listens for events generated when the player presses the mouse button.

    pointerLockEvents: EventEmitter<PointerLockEvents>

    全局监听当玩家指针锁定状态变化或出错时产生的事件。

    Globally listens for events generated when the player's pointer lock state changes or an error occurs.

    全局监听玩家指针与UI元素交互时的产生的事件。

    Globally listens for events generated when the player's pointer interacts with UI elements.

    Methods

    • Returns void

      调用后解锁鼠标指针。

      Unlocks the mouse pointer after being called.