Class: UiInteractionUtils
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/UiInteractionUtils.ts:7
A utility class for working with UI interaction events.
Constructors
Constructor
new UiInteractionUtils():
UiInteractionUtils
Returns
UiInteractionUtils
Properties
KNOB_EVENT_TO_KNOB_ID
readonlystaticKNOB_EVENT_TO_KNOB_ID:object
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/UiInteractionUtils.ts:8
LeftKnobInnerDec
readonlyLeftKnobInnerDec:LeftInner=UiKnobId.LeftInner
LeftKnobInnerInc
readonlyLeftKnobInnerInc:LeftInner=UiKnobId.LeftInner
LeftKnobOuterDec
readonlyLeftKnobOuterDec:LeftOuter=UiKnobId.LeftOuter
LeftKnobOuterInc
readonlyLeftKnobOuterInc:LeftOuter=UiKnobId.LeftOuter
LeftKnobPress
readonlyLeftKnobPress:LeftInnerPush=UiKnobId.LeftInnerPush
LeftKnobPressLong
readonlyLeftKnobPressLong:LeftInnerPush=UiKnobId.LeftInnerPush
RightKnobInnerDec
readonlyRightKnobInnerDec:RightInner=UiKnobId.RightInner
RightKnobInnerInc
readonlyRightKnobInnerInc:RightInner=UiKnobId.RightInner
RightKnobOuterDec
readonlyRightKnobOuterDec:RightOuter=UiKnobId.RightOuter
RightKnobOuterInc
readonlyRightKnobOuterInc:RightOuter=UiKnobId.RightOuter
RightKnobPress
readonlyRightKnobPress:RightInnerPush=UiKnobId.RightInnerPush
RightKnobPressLong
readonlyRightKnobPressLong:RightInnerPush=UiKnobId.RightInnerPush
SingleKnobInnerDec
readonlySingleKnobInnerDec:SingleInner=UiKnobId.SingleInner
SingleKnobInnerInc
readonlySingleKnobInnerInc:SingleInner=UiKnobId.SingleInner
SingleKnobOuterDec
readonlySingleKnobOuterDec:SingleOuter=UiKnobId.SingleOuter
SingleKnobOuterInc
readonlySingleKnobOuterInc:SingleOuter=UiKnobId.SingleOuter
SingleKnobPress
readonlySingleKnobPress:SingleInnerPush=UiKnobId.SingleInnerPush
SingleKnobPressLong
readonlySingleKnobPressLong:SingleInnerPush=UiKnobId.SingleInnerPush
Methods
getKnobTurnDirection()
staticgetKnobTurnDirection(event):-1|1
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/UiInteractionUtils.ts:51
Gets the turn direction for a bezel rotary knob turn event.
Parameters
| Parameter | 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.
isKnobEvent()
staticisKnobEvent(event):event is UiKnobInteractionEvent
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/UiInteractionUtils.ts:42
Checks if an interaction event originated from a bezel rotary knob.
Parameters
| Parameter | Type | Description |
|---|---|---|
event | UiInteractionEvent | The event to check. |
Returns
event is UiKnobInteractionEvent
Whether the specified event originated from a bezel rotary knob.