# Surfaces {{< callout context="caution" title="IMPORTANT!" icon="outline/alert-triangle" >}} Token Variables - along with the [Gauge API](../gauge-api/) - have been deprecated in Microsoft Flight Simulator 2024 in favour of the new [Vars API](../../vars-api/vars-api/) and [Event API](../../event-api/event-api/), which work with the more extensive and supported [Simulation Variables](../../../simvars/simulation-variables/) and [Key Events](../../../key-events/key-events/). {{< /callout >}} This page lists the available **control surface** [Token Variables](token-variables/) for use when creating gauges using {{< glossterm >}}wasm{{< /glossterm >}} / C++.     ### Ailerons {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---------------------------------------------------------------|----------------------|---------------------------------------------------------------------------------| | `AILERON_DEFLECTION` | `n` (FLOAT64) | Aileron deflection angle, in radians. | | `AILERON_TRIM` | `n` (FLOAT64) | Aileron trim angle, in radians. | | `AILERON_TRIM_DISABLE` | `b` (BOOL) | Whether the aileron trim has been disabled (TRUE, 1) or not (FALSE, 0). | | `AILERON_TRIM_PCT` | `n` (FLOAT64) | The aileron trim position, where 0 is fully retracted, and 1 is fully extended. | {{< /table-wrapper >}}     ### Elevators {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |-------------------------------------------------------------------|----------------------|--------------------------------------------------------------------------| | `ELEVATOR_DEFLECTION` | `n` (FLOAT64) | Elevator deflection angle, in radians. | | `ELEVATOR_TRIM` | `n` (FLOAT64) | Elevator trim angle, in radians. | | `ELEVATOR_TRIM_DISABLED` | `b` (BOOL) | Whether the elevator trim has been disabled (TRUE, 1) or not (FALSE, 0). | | `ELEVATOR_TRIM_NEUTRAL` | `n` (FLOAT64) | The elevator trim neutral position, in radians. | {{< /table-wrapper >}}     ### Elevons Parameters Universal Var Member Description `ELEVON_1_DEFLECTIONELEVON_2_DEFLECTIONELEVON_3_DEFLECTIONELEVON_4_DEFLECTIONELEVON_5_DEFLECTIONELEVON_6_DEFLECTIONELEVON_7_DEFLECTIONELEVON_8_DEFLECTIONn` (FLOAT64) The angle of deflection of the varios elevons, in radians. The elevon indices start at 1 at the far left and increase to the right.     ### Flaps {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---------------------------------------------------------------------------------------|----------------------|-------------------------------------------------------------------------------------------------------| | `FLAPS_HANDLE_POS` | `n` (FLOAT64) | The flaps handle position, where 65536 is fully down and 0 is fully up. | | `FLAPS_POS_LEFT` | `n` (FLOAT64) | The amount the left trailing edge flap is extended, where 65536 is fully extended and 0 is fully up. | | `FLAPS_POS_RIGHT` | `n` (FLOAT64) | The amount the right trailing edge flap is extended, where 65536 is fully extended and 0 is fully up. | | `TRAILING_EDGE_FLAPS0_LEFT_ANGLE` | `n` (FLOAT64) | The angle of the primary left trailing edge flaps, in degrees. | | `TRAILING_EDGE_FLAPS0_RIGHT_ANGLE` | `n` (FLOAT64) | The angle of the primary right trailing edge flaps, in degrees. | {{< /table-wrapper >}}   ### Rudder {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---------------------------------------------------------------|----------------------|--------------------------------------------------------------------------------| | `RUDDER_DEFLECTION` | `n` (FLOAT64) | Rudder deflection angle, in radians. | | `RUDDER_TRIM` | `n` (FLOAT64) | Rudder trim angle, in radians. | | `RUDDER_TRIM_DISABLED` | `b` (BOOL) | Whether the rudder trim has been disabled (TRUE, 1) or not (FALSE, 0). | | `RUDDER_TRIM_PCT` | `n` (FLOAT64) | The rudder trim position, where 0 is fully retracted, and 1 is fully extended. | {{< /table-wrapper >}}     ### Spoilers {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |-------------------------------------------------------------|----------------------|--------------------------------------------------------------------------------------------| | `SPOILERS_ARMED` | `b` (BOOL) | Whether the auto-spoilers are armed (TRUE, 1) or not (FALSE, 0). | | `SPOILERS_HANDLE_POS` | `n` (FLOAT64) | The position of the spoiler handle, where 65536 is fully up and 0 is fully down. | | `SPOILERS_POS_LEFT` | `n` (FLOAT64) | The amount the left spoiler is extended, where 65536 is fully extended and 0 is fully up. | | `SPOILERS_POS_RIGHT` | `n` (FLOAT64) | The amount the right spoiler is extended, where 65536 is fully extended and 0 is fully up. | {{< /table-wrapper >}}