/ HALion Developer Resource / HALion Script / Reference /

onUnhandledEvent

onUnhandledEvent(event)

Description

This callback function is called when the script module receives an event that is not handled by the specific event callback functions, e.g., onNote, onRelease, onRetrigger, onController and onNoteExpression. If none of the specific callback functions are defined, onUnhandledEvent will receive all incoming events.

Available in: Processor.

Arguments

ArgumentDescriptionValue Type
eventThe Event object.Event

Example

-- Print unhandled events.

function onUnhandledEvent(event)
    print(event)
    postEvent(event)
end

See also: onNote, onRelease, onRetrigger, onController, onNoteExpression