General Workflow

Input Configuration Standard provides the storage of input elements' settings in a separate manager object, that is used by avatar's layout to load configuration. General workflow layout looks as follows:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/296b8f33-8d5f-4915-9d06-c5575f4a0a74/Untitled.png

ManagerInputController

ManagerInputController component is present in a single copy in the current game scene. It looks as follows:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8976d847-9727-4c81-bbae-401476b87b50/Untitled.png

This component has the Import from AvatarOverallInput button, pressing which opens import master of control configuration.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/91cf2db2-d698-47ae-949c-d898761fdac3/Untitled.png

Input parameter in configuration import master is a reference to AvatarOverallInput component with adjusted input elements. Player Index parameter defines the number of the player that the control configuration will be generated for.

Pressing Import button creates the control configuration objects for every input element from specified AvatarOverallInput component.

Internal hierarchy of the object, that ManagerInputController component has been added to, looks as follows:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0b239a0e-a16e-4a17-abd6-f21393486773/Untitled.png

Object that is being supplemented with ManagerInputController is generally named InputManager. InputManager holds objects named through the following format: Player<Player Index>. Each of these objects holds control configuration of the player under particular number. Player's control configuration consists of input elements, the names of which are the same as the names of the elements in the imported components of AvatarOverallInput. Every input element holds Keyboard, Mouse and Gamepad objects, which, in turn, hold control configuration of relevant input devices.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/90bad364-ef66-4c86-870e-402ab5f3b2cd/Untitled.png