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
| Parameter | Type | Description |
|---|---|---|
instrumentIndex | number | The 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
| Parameter | Type | Description |
|---|---|---|
hEvent | string | The 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.