Class: Epic2DuController
Defined in: workingtitle-instruments-epic2/shared/Misc/Epic2DuController.ts:39
Handles the DU bezel buttons interface.
Constructors
Constructor
new Epic2DuController(
bus
,duIndex
,hEventPublisher
):Epic2DuController
Defined in: workingtitle-instruments-epic2/shared/Misc/Epic2DuController.ts:51
Constructs a new MFD controller.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | An instance of the EventBus. |
duIndex | DisplayUnitIndices | The display unit index for this MFD. |
hEventPublisher | HEventPublisher | The HEventPublisher. |
Returns
Epic2DuController
Methods
mapHEventToSoftKeyEvent()
mapHEventToSoftKeyEvent(
hEvent
):boolean
Defined in: workingtitle-instruments-epic2/shared/Misc/Epic2DuController.ts:74
Maps an H event to an FmcEvent
Parameters
Parameter | Type | Description |
---|---|---|
hEvent | string | the raw H event string |
Returns
boolean
Whether the HEvent is sucessfully matched to a Epic2BezelButtonEvents.
Throws
if the event is invalid or unmapped
getSoftKeyIndexFromSoftKeyHEvent()
static
getSoftKeyIndexFromSoftKeyHEvent(hEvent
):number
Defined in: workingtitle-instruments-epic2/shared/Misc/Epic2DuController.ts:64
Gets the soft key index number from the soft key HEvent.
Parameters
Parameter | Type | Description |
---|---|---|
hEvent | string | The soft key HEvent. |
Returns
number
a number.