Class: SoftKeyHEventMap
Utility class for creating softkey H event mapping functions.
Constructors
constructor
• new SoftKeyHEventMap(): SoftKeyHEventMap
Returns
Methods
create
▸ create(prefix
, side
, isInSplitMode
): (hEvent
: string
) => undefined
| number
Creates a function which maps H events to softkey indexes for a PFD instrument. The function returns the index
of the softkey that was pressed for softkey press H events, and undefined
for all other H events.
Parameters
Name | Type | Description |
---|---|---|
prefix | string | The prefix of softkey press H events for the softkey bar's parent PFD instrument. |
side | "left" | "right" | The side on which the softkey bar is placed on the PFD in split mode. |
isInSplitMode | Subscribable <boolean > | Whether the softkey bar's parent PFD is in split mode. |
Returns
fn
A function which maps H events to softkey indexes for a PFD instrument.
▸ (hEvent
): undefined
| number
Parameters
Name | Type |
---|---|
hEvent | string |
Returns
undefined
| number
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/SoftKey/SoftKeyHEventMap.ts:18