hl.dsp.event

hl.dsp.event(name: string)

Create a dispatcher.

Signature

hl.dsp.event(name: string): HL.Dispatcher

Parameters

namestring

Event string.

Returns

dispatcherHL.Dispatcher

Dispatcher object returned by this function.

Examples

hl.dispatch(hl.dsp.event("custom-event"))

See also

HL.Dispatcher

Dispatcher object returned by this function.

hl.bind()

Bind a dispatcher to a key.

hl.dispatch()

Execute a dispatcher immediately.