melonJS
    Preparing search index...

    Function emit

    • emit (trigger) the specified event.

      Type Parameters

      • E extends keyof Events

      Parameters

      • eventName: E

        The event name.

      • ...args: Parameters<Events[E]>

        arguments to be passed to the listener functions.

      Returns void

      me.event.emit("event-name", arg1, arg2);