Struct VehicleInputActions.VehicleControlsActions
Provides access to input actions defined in input action map "Vehicle Controls".
Namespace: NWH.VehiclePhysics2.Input
Assembly: NWH.VehiclePhysics2.dll
Syntax
public struct VehicleInputActions.VehicleControlsActions
Constructors
VehicleControlsActions(VehicleInputActions)
Construct a new instance of the input action map wrapper class.
Declaration
public VehicleControlsActions(VehicleInputActions wrapper)
Parameters
| Type | Name | Description |
|---|---|---|
| VehicleInputActions | wrapper |
Properties
Boost
Provides access to the underlying input action "VehicleControls/Boost".
Declaration
public InputAction Boost { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Brakes
Provides access to the underlying input action "VehicleControls/Brakes".
Declaration
public InputAction Brakes { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Clutch
Provides access to the underlying input action "VehicleControls/Clutch".
Declaration
public InputAction Clutch { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
CruiseControl
Provides access to the underlying input action "VehicleControls/CruiseControl".
Declaration
public InputAction CruiseControl { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
EngineStartStop
Provides access to the underlying input action "VehicleControls/EngineStartStop".
Declaration
public InputAction EngineStartStop { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ExtraLights
Provides access to the underlying input action "VehicleControls/ExtraLights".
Declaration
public InputAction ExtraLights { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
FlipOver
Provides access to the underlying input action "VehicleControls/FlipOver".
Declaration
public InputAction FlipOver { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Handbrake
Provides access to the underlying input action "VehicleControls/Handbrake".
Declaration
public InputAction Handbrake { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
HazardLights
Provides access to the underlying input action "VehicleControls/HazardLights".
Declaration
public InputAction HazardLights { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
HighBeamLights
Provides access to the underlying input action "VehicleControls/HighBeamLights".
Declaration
public InputAction HighBeamLights { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Horn
Provides access to the underlying input action "VehicleControls/Horn".
Declaration
public InputAction Horn { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
LeftBlinker
Provides access to the underlying input action "VehicleControls/LeftBlinker".
Declaration
public InputAction LeftBlinker { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
LowBeamLights
Provides access to the underlying input action "VehicleControls/LowBeamLights".
Declaration
public InputAction LowBeamLights { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
RightBlinker
Provides access to the underlying input action "VehicleControls/RightBlinker".
Declaration
public InputAction RightBlinker { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftDown
Provides access to the underlying input action "VehicleControls/ShiftDown".
Declaration
public InputAction ShiftDown { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftInto0
Provides access to the underlying input action "VehicleControls/ShiftInto0".
Declaration
public InputAction ShiftInto0 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftInto1
Provides access to the underlying input action "VehicleControls/ShiftInto1".
Declaration
public InputAction ShiftInto1 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftInto2
Provides access to the underlying input action "VehicleControls/ShiftInto2".
Declaration
public InputAction ShiftInto2 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftInto3
Provides access to the underlying input action "VehicleControls/ShiftInto3".
Declaration
public InputAction ShiftInto3 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftInto4
Provides access to the underlying input action "VehicleControls/ShiftInto4".
Declaration
public InputAction ShiftInto4 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftInto5
Provides access to the underlying input action "VehicleControls/ShiftInto5".
Declaration
public InputAction ShiftInto5 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftInto6
Provides access to the underlying input action "VehicleControls/ShiftInto6".
Declaration
public InputAction ShiftInto6 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftInto7
Provides access to the underlying input action "VehicleControls/ShiftInto7".
Declaration
public InputAction ShiftInto7 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftInto8
Provides access to the underlying input action "VehicleControls/ShiftInto8".
Declaration
public InputAction ShiftInto8 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftIntoR1
Provides access to the underlying input action "VehicleControls/ShiftIntoR1".
Declaration
public InputAction ShiftIntoR1 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ShiftUp
Provides access to the underlying input action "VehicleControls/ShiftUp".
Declaration
public InputAction ShiftUp { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Steering
Provides access to the underlying input action "VehicleControls/Steering".
Declaration
public InputAction Steering { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Throttle
Provides access to the underlying input action "VehicleControls/Throttle".
Declaration
public InputAction Throttle { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
TrailerAttachDetach
Provides access to the underlying input action "VehicleControls/TrailerAttachDetach".
Declaration
public InputAction TrailerAttachDetach { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
enabled
Declaration
public bool enabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
AddCallbacks(IVehicleControlsActions)
Adds UnityEngine.InputSystem.InputAction.started, UnityEngine.InputSystem.InputAction.performed and UnityEngine.InputSystem.InputAction.canceled callbacks provided via on all input actions contained in this map.
Declaration
public void AddCallbacks(VehicleInputActions.IVehicleControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| VehicleInputActions.IVehicleControlsActions | instance | Callback instance. |
Remarks
If instance is null or instance have already been added this method does nothing.
See Also
Disable()
Declaration
public void Disable()
Enable()
Declaration
public void Enable()
Get()
Provides access to the underlying input action map instance.
Declaration
public InputActionMap Get()
Returns
| Type | Description |
|---|---|
| InputActionMap |
RemoveCallbacks(IVehicleControlsActions)
Unregisters and unregisters all input action callbacks via UnregisterCallbacks(IVehicleControlsActions).
Declaration
public void RemoveCallbacks(VehicleInputActions.IVehicleControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| VehicleInputActions.IVehicleControlsActions | instance |
See Also
SetCallbacks(IVehicleControlsActions)
Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via .
Declaration
public void SetCallbacks(VehicleInputActions.IVehicleControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| VehicleInputActions.IVehicleControlsActions | instance |
Remarks
If instance is null, calling this method will only unregister all existing callbacks but not register any new callbacks.
See Also
Operators
implicit operator InputActionMap(VehicleControlsActions)
Implicitly converts an
Declaration
public static implicit operator InputActionMap(VehicleInputActions.VehicleControlsActions set)
Parameters
| Type | Name | Description |
|---|---|---|
| VehicleInputActions.VehicleControlsActions | set |
Returns
| Type | Description |
|---|---|
| InputActionMap |