Namespace NWH.VehiclePhysics2.Input
Classes
InputManagerVehicleInputProvider
Vehicle input provider for Unity's legacy Input Manager. Reads string-named axes and buttons, falling back to hardcoded KeyCodes when a binding is missing.
InputSystemVehicleInputProvider
Vehicle input provider backed by Unity's Input System package (com.unity.inputsystem), which must be installed. Covers keyboard, gamepad and optional mouse steering, plus H-pattern gear selection on the numeric keys 0-8 with minus for reverse.
MobileVehicleInputProvider
Mobile vehicle input provider for touch controls, on-screen buttons, steering wheels, and device accelerometer/gyroscope input.
VehicleInputActions
Provides programmatic access to UnityEngine.InputSystem.InputActionAsset, UnityEngine.InputSystem.InputActionMap, UnityEngine.InputSystem.InputAction and UnityEngine.InputSystem.InputControlScheme instances defined in asset "Packages/com.nwh.vehiclephysics/Runtime/VehicleController/Input/InputProviders/InputSystem/VehicleInputActions.inputactions".
VehicleInputHandler
Single point every vehicle system reads input from, whatever the source: Input Manager, Input System, mobile touch or a custom provider. Handles smoothing, the modification callbacks, and the manual override path used by AI and network code.
VehicleInputProviderBase
Base class defining vehicle input controls: throttle, steering, braking, and auxiliary functions.
Structs
VehicleInputActions.VehicleControlsActions
Provides access to input actions defined in input action map "Vehicle Controls".
VehicleInputStates
One frame of vehicle input as processed by VehicleInputHandler. Analog axes are normalized to [0, 1] or [-1, 1], digital inputs are bool flags, and each analog axis also keeps its pre-smoothing raw value. Copyable between vehicles, e.g. truck to trailer, and writable directly by AI and replay code.
Interfaces
VehicleInputActions.IVehicleControlsActions
Interface to implement callback methods for all input action callbacks associated with input actions defined by "Vehicle Controls" which allows adding and removing callbacks.
Enums
MobileVehicleInputProvider.HorizontalAxisType
Defines the input method used for horizontal steering control.
MobileVehicleInputProvider.VerticalAxisType
Defines the input method used for throttle and brake control.