Interface: ThrottleKeyEventHandlerController
Defined in: src/sdk/fadec/ThrottleLeverManager.ts:12
A controller for virtual throttle lever position to be used by handlers of throttle key events.
Methods
changeRawThrottleLeverPosition()
changeRawThrottleLeverPosition(
delta
,index?
,keyEvent?
):void
Defined in: src/sdk/fadec/ThrottleLeverManager.ts:45
Changes a raw throttle lever position.
Parameters
Parameter | Type | Description |
---|---|---|
delta | number | The amount by which to change the raw lever position. The full lever range is expressed as -16384 to +16384. |
index? | number | The index of the throttle lever to change. If undefined, the positions of all throttle levers will be changed. |
keyEvent? | string | The key event responsible for this change, or undefined if this change was not triggered by a key event. |
Returns
void
getThrottleLeverPos()
getThrottleLeverPos(
index
):number
Defined in: src/sdk/fadec/ThrottleLeverManager.ts:18
Gets the position of a throttle lever.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the throttle lever to get, from 1 to 4, inclusive. |
Returns
number
The throttle lever position, in the range -1 to +1.
isVrGroupInteractionOn()
isVrGroupInteractionOn():
boolean
Defined in: src/sdk/fadec/ThrottleLeverManager.ts:24
Checks whether the VR group interaction flag is set to true.
Returns
boolean
Whether the VR group interaction flag is set to true.
setRawThrottleLeverPosition()
setRawThrottleLeverPosition(
rawPosition
,index?
,keyEvent?
):void
Defined in: src/sdk/fadec/ThrottleLeverManager.ts:34
Sets a raw throttle lever position.
Parameters
Parameter | Type | Description |
---|---|---|
rawPosition | number | The raw position to set, in the range -16384 to +16384. |
index? | number | The index of the throttle lever to set. If undefined, the positions of all throttle levers will be set. |
keyEvent? | string | The key event responsible for this change, or undefined if this change was not triggered by a key event. |
Returns
void