mwg API
    Preparing search index...

    Function dispatchAction

    • Fires onAction for one named action - the programmatic counterpart of a physical key press, without holding anything: an on-screen keyboard's Enter key feeds the confirm action down the same signal a real key travels, so a prompt or menu cannot tell the two apart. Deliberately no held/pressedThisFrame bookkeeping, because nothing is held.

      Parameters

      • action: string

      Returns void