Class InputSystemAircraftInputProvider
Handles aircraft input through Unity's Input System package.
Inheritance
Inherited Members
Namespace: NWH.Aerodynamics.AircraftController.Input
Assembly: NWH.Aerodynamics.dll
Syntax
public class InputSystemAircraftInputProvider : AircraftInputProviderBase
Fields
| Edit this page View SourceaircraftInputActions
Declaration
public static AircraftInputActions aircraftInputActions
Field Value
| Type | Description |
|---|---|
| AircraftInputActions |
Methods
| Edit this page View SourceAilerons()
Returns aileron input value ranging from -1 (full left) to +1 (full right).
Declaration
public override float Ailerons()
Returns
| Type | Description |
|---|---|
| float | Aileron deflection value |
Overrides
| Edit this page View SourceAileronsTrimLeft()
Returns true when left aileron trim adjustment is requested.
Declaration
public override bool AileronsTrimLeft()
Returns
| Type | Description |
|---|---|
| bool | True if trim left is active |
Overrides
| Edit this page View SourceAileronsTrimRight()
Returns true when right aileron trim adjustment is requested.
Declaration
public override bool AileronsTrimRight()
Returns
| Type | Description |
|---|---|
| bool | True if trim right is active |
Overrides
| Edit this page View SourceAwake()
Declaration
public void Awake()
Brakes()
Returns true when common braking is requested for all wheels.
Declaration
public override bool Brakes()
Returns
| Type | Description |
|---|---|
| bool | True if brakes should engage |
Overrides
| Edit this page View SourceBrakesLeft()
Returns true when left brake is requested for differential braking.
Declaration
public override bool BrakesLeft()
Returns
| Type | Description |
|---|---|
| bool | True if left brake should engage |
Overrides
| Edit this page View SourceBrakesRight()
Returns true when right brake is requested for differential braking.
Declaration
public override bool BrakesRight()
Returns
| Type | Description |
|---|---|
| bool | True if right brake should engage |
Overrides
| Edit this page View SourceElevator()
Returns elevator input value ranging from -1 (full down) to +1 (full up).
Declaration
public override float Elevator()
Returns
| Type | Description |
|---|---|
| float | Elevator deflection value |
Overrides
| Edit this page View SourceElevatorTrimDown()
Returns true when downward elevator trim adjustment is requested.
Declaration
public override bool ElevatorTrimDown()
Returns
| Type | Description |
|---|---|
| bool | True if trim down is active |
Overrides
| Edit this page View SourceElevatorTrimUp()
Returns true when upward elevator trim adjustment is requested.
Declaration
public override bool ElevatorTrimUp()
Returns
| Type | Description |
|---|---|
| bool | True if trim up is active |
Overrides
| Edit this page View SourceEngineStartCommon()
Returns true when engine start is requested for all engines.
Declaration
public override bool EngineStartCommon()
Returns
| Type | Description |
|---|---|
| bool | True if engines should start |
Overrides
| Edit this page View SourceEngineStopCommon()
Returns true when engine shutdown is requested for all engines.
Declaration
public override bool EngineStopCommon()
Returns
| Type | Description |
|---|---|
| bool | True if engines should stop |
Overrides
| Edit this page View SourceFlapsExtend()
Returns true when incremental flap extension is requested.
Declaration
public override bool FlapsExtend()
Returns
| Type | Description |
|---|---|
| bool | True if flaps should extend one notch |
Overrides
| Edit this page View SourceFlapsExtendFully()
Returns true when full flap extension is requested.
Declaration
public override bool FlapsExtendFully()
Returns
| Type | Description |
|---|---|
| bool | True if flaps should extend to maximum |
Overrides
| Edit this page View SourceFlapsRetract()
Returns true when incremental flap retraction is requested.
Declaration
public override bool FlapsRetract()
Returns
| Type | Description |
|---|---|
| bool | True if flaps should retract one notch |
Overrides
| Edit this page View SourceFlapsRetractFully()
Returns true when full flap retraction is requested.
Declaration
public override bool FlapsRetractFully()
Returns
| Type | Description |
|---|---|
| bool | True if flaps should retract to minimum |
Overrides
| Edit this page View SourceLandingGear()
Returns true when landing gear toggle is requested.
Declaration
public override bool LandingGear()
Returns
| Type | Description |
|---|---|
| bool | True if landing gear should extend or retract |
Overrides
| Edit this page View SourceLandingLights()
Returns true when landing lights toggle is requested.
Declaration
public override bool LandingLights()
Returns
| Type | Description |
|---|---|
| bool | True if landing lights should toggle |
Overrides
| Edit this page View SourceNavigationLights()
Returns true when navigation lights toggle is requested.
Declaration
public override bool NavigationLights()
Returns
| Type | Description |
|---|---|
| bool | True if navigation lights should toggle |
Overrides
| Edit this page View SourceOnDisable()
Declaration
public void OnDisable()
OnEnable()
Declaration
public void OnEnable()
ParkingBrake()
Returns true when parking brake toggle is requested.
Declaration
public override bool ParkingBrake()
Returns
| Type | Description |
|---|---|
| bool | True if parking brake should toggle |
Overrides
| Edit this page View SourcePropPitch()
Returns propeller pitch input value for variable-pitch propellers.
Declaration
public override float PropPitch()
Returns
| Type | Description |
|---|---|
| float | Propeller pitch value |
Overrides
| Edit this page View SourcePropPitchDecrease()
Returns true when incremental propeller pitch decrease is requested.
Declaration
public override bool PropPitchDecrease()
Returns
| Type | Description |
|---|---|
| bool | True if prop pitch should decrease |
Overrides
| Edit this page View SourcePropPitchIncrease()
Returns true when incremental propeller pitch increase is requested.
Declaration
public override bool PropPitchIncrease()
Returns
| Type | Description |
|---|---|
| bool | True if prop pitch should increase |
Overrides
| Edit this page View SourceRudder()
Returns rudder input value ranging from -1 (full left) to +1 (full right).
Declaration
public override float Rudder()
Returns
| Type | Description |
|---|---|
| float | Rudder deflection value |
Overrides
| Edit this page View SourceRudderTrimLeft()
Returns true when left rudder trim adjustment is requested.
Declaration
public override bool RudderTrimLeft()
Returns
| Type | Description |
|---|---|
| bool | True if trim left is active |
Overrides
| Edit this page View SourceRudderTrimRight()
Returns true when right rudder trim adjustment is requested.
Declaration
public override bool RudderTrimRight()
Returns
| Type | Description |
|---|---|
| bool | True if trim right is active |
Overrides
| Edit this page View SourceSmokeSystem()
Returns true when smoke system toggle is requested.
Declaration
public override bool SmokeSystem()
Returns
| Type | Description |
|---|---|
| bool | True if smoke system should toggle |
Overrides
| Edit this page View SourceSpoilers()
Returns true when spoiler deployment is requested.
Declaration
public override bool Spoilers()
Returns
| Type | Description |
|---|---|
| bool | True if spoilers should deploy |
Overrides
| Edit this page View SourceThrottleCommon()
Returns common throttle input value ranging from 0 (idle) to 1 (full power).
Declaration
public override float ThrottleCommon()
Returns
| Type | Description |
|---|---|
| float | Throttle position value |
Overrides
| Edit this page View SourceThrottleDecrease()
Returns true when incremental throttle decrease is requested.
Declaration
public override bool ThrottleDecrease()
Returns
| Type | Description |
|---|---|
| bool | True if throttle should decrease |
Overrides
| Edit this page View SourceThrottleFull()
Returns true when full throttle position is requested.
Declaration
public override bool ThrottleFull()
Returns
| Type | Description |
|---|---|
| bool | True if throttle should move to maximum |
Overrides
| Edit this page View SourceThrottleIdle()
Returns true when throttle idle position is requested.
Declaration
public override bool ThrottleIdle()
Returns
| Type | Description |
|---|---|
| bool | True if throttle should move to idle |
Overrides
| Edit this page View SourceThrottleIncrease()
Returns true when incremental throttle increase is requested.
Declaration
public override bool ThrottleIncrease()
Returns
| Type | Description |
|---|---|
| bool | True if throttle should increase |
Overrides
| Edit this page View SourceUpdate()
Declaration
public void Update()