Class: UiInteractionUtils
A utility class for working with UI interaction events.
Constructors
constructor
• new UiInteractionUtils(): UiInteractionUtils
Returns
Properties
KNOB_EVENT_TO_KNOB_ID
▪ Static
Readonly
KNOB_EVENT_TO_KNOB_ID: Object
Type declaration
Name | Type |
---|---|
LeftKnobInnerDec | LeftInner |
LeftKnobInnerInc | LeftInner |
LeftKnobOuterDec | LeftOuter |
LeftKnobOuterInc | LeftOuter |
LeftKnobPress | LeftInnerPush |
LeftKnobPressLong | LeftInnerPush |
RightKnobInnerDec | RightInner |
RightKnobInnerInc | RightInner |
RightKnobOuterDec | RightOuter |
RightKnobOuterInc | RightOuter |
RightKnobPress | RightInnerPush |
RightKnobPressLong | RightInnerPush |
SingleKnobInnerDec | SingleInner |
SingleKnobInnerInc | SingleInner |
SingleKnobOuterDec | SingleOuter |
SingleKnobOuterInc | SingleOuter |
SingleKnobPress | SingleInnerPush |
SingleKnobPressLong | SingleInnerPush |
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/UiSystem/UiInteractionUtils.ts:8
Methods
getKnobTurnDirection
▸ getKnobTurnDirection(event
): 1
| -1
Gets the turn direction for a bezel rotary knob turn event.
Parameters
Name | Type | Description |
---|---|---|
event | UiKnobTurnInteractionEvent | The event for which to get the turn direction. |
Returns
1
| -1
The turn direction for the specified bezel rotary knob turn event.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/UiSystem/UiInteractionUtils.ts:51
isKnobEvent
▸ isKnobEvent(event
): event is UiKnobInteractionEvent
Checks if an interaction event originated from a bezel rotary knob.
Parameters
Name | Type | Description |
---|---|---|
event | UiInteractionEvent | The event to check. |
Returns
event is UiKnobInteractionEvent
Whether the specified event originated from a bezel rotary knob.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/UiSystem/UiInteractionUtils.ts:42