Struct CarInputActions.CarControlsActions
Provides access to input actions defined in input action map "CarControls".
Namespace: NWH.WheelController3D
Assembly: NWH.WheelController.dll
Syntax
public struct CarInputActions.CarControlsActions
Constructors
| Edit this page View SourceCarControlsActions(CarInputActions)
Construct a new instance of the input action map wrapper class.
Declaration
public CarControlsActions(CarInputActions wrapper)
Parameters
| Type | Name | Description |
|---|---|---|
| CarInputActions | wrapper |
Properties
| Edit this page View SourceHandbrake
Provides access to the underlying input action "CarControls/Handbrake".
Declaration
public InputAction Handbrake { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Steering
Provides access to the underlying input action "CarControls/Steering".
Declaration
public InputAction Steering { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Throttle
Provides access to the underlying input action "CarControls/Throttle".
Declaration
public InputAction Throttle { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
enabled
Declaration
public bool enabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceAddCallbacks(ICarControlsActions)
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(CarInputActions.ICarControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| CarInputActions.ICarControlsActions | instance | Callback instance. |
Remarks
If instance is null or instance have already been added this method does nothing.
See Also
| Edit this page View SourceDisable()
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(ICarControlsActions)
Unregisters and unregisters all input action callbacks via UnregisterCallbacks(ICarControlsActions).
Declaration
public void RemoveCallbacks(CarInputActions.ICarControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| CarInputActions.ICarControlsActions | instance |
See Also
| Edit this page View SourceSetCallbacks(ICarControlsActions)
Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via .
Declaration
public void SetCallbacks(CarInputActions.ICarControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| CarInputActions.ICarControlsActions | instance |
Remarks
If instance is null, calling this method will only unregister all existing callbacks but not register any new callbacks.
See Also
Operators
| Edit this page View Sourceimplicit operator InputActionMap(CarControlsActions)
Implicitly converts an
Declaration
public static implicit operator InputActionMap(CarInputActions.CarControlsActions set)
Parameters
| Type | Name | Description |
|---|---|---|
| CarInputActions.CarControlsActions | set |
Returns
| Type | Description |
|---|---|
| InputActionMap |