Skip to main content

Class: UiInteractionMapper

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/UiInteractionMapper.ts:6

A mapper of H events to UiInteractionEvents.

Constructors

Constructor

new UiInteractionMapper(instrumentIndex): UiInteractionMapper

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/UiInteractionMapper.ts:32

Creates a new instance of UiInteractionMapper.

Parameters

ParameterTypeDescription
instrumentIndexnumberThe index of the instrument for which this mapper maps events.

Returns

UiInteractionMapper

Methods

mapEvent()

mapEvent(hEvent): undefined | UiInteractionEvent

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/UiInteractionMapper.ts:46

Maps an H event to its corresponding UiInteractionEvent.

Parameters

ParameterTypeDescription
hEventstringThe H event to map.

Returns

undefined | UiInteractionEvent

The UiInteractionEvent corresponding to the specified H event, or undefined if the H event could not be mapped.