Input

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Setup:Input [2020/07/17 12:23]
Aron Rescec
Setup:Input [2020/08/24 11:09] (current)
Aron Rescec
Line 1: Line 1:
 +~~Title: Vehicle and Scene Input System~~
 +
 +<wrap round important>​Make sure to use //Project Settings => Player => Input Handling => Both// or multiple errors will pop up.</​wrap>​
 +
   * Vehicles retrieve user input through ''​Input''​ class which retrieves input from active ''​InputProvider''​ and fills the ''​InputStates''​ struct with the retrieved data.\\   * Vehicles retrieve user input through ''​Input''​ class which retrieves input from active ''​InputProvider''​ and fills the ''​InputStates''​ struct with the retrieved data.\\
   * ''​InputProvider''​s are split into //​VehicleInputProviders//​ and //​SceneInputProviders//​. //​VehicleInputProviders//​ relay vehicle input (throttle, brakes, etc.) while //​SceneInputProviders//​ take care of scene input (vehicle changing, camera changing, camera movement and the rest of the inputs not directly related to vehicle. One of each needs to be present (e.g. ''​InputSystemVehicleProvider''​ and ''​InputSystemSceneInputProvider''​).   * ''​InputProvider''​s are split into //​VehicleInputProviders//​ and //​SceneInputProviders//​. //​VehicleInputProviders//​ relay vehicle input (throttle, brakes, etc.) while //​SceneInputProviders//​ take care of scene input (vehicle changing, camera changing, camera movement and the rest of the inputs not directly related to vehicle. One of each needs to be present (e.g. ''​InputSystemVehicleProvider''​ and ''​InputSystemSceneInputProvider''​).