Skip to main content

Function: addInputs()

addInputs(world): Entity

Defined in: input/utilities/add-inputs.ts:11

Adds an InputsComponent to the world and initializes the input system.

Parameters

world

World

The world to which the inputs component will be added.

Returns

Entity

The entity that contains the InputsComponent.