Skip to main content

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​

ParameterTypeDescription
deltanumberThe amount by which to change the raw lever position. The full lever range is expressed as -16384 to +16384.
index?numberThe index of the throttle lever to change. If undefined, the positions of all throttle levers will be changed.
keyEvent?stringThe 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​

ParameterTypeDescription
indexnumberThe 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​

ParameterTypeDescription
rawPositionnumberThe raw position to set, in the range -16384 to +16384.
index?numberThe index of the throttle lever to set. If undefined, the positions of all throttle levers will be set.
keyEvent?stringThe key event responsible for this change, or undefined if this change was not triggered by a key event.

Returns​

void