Skip to main content

Function: addInputsComponent()

addInputsComponent(world, entity, options): InputsEcsComponent

Defined in: input/components/inputs-component.ts:22

Attaches a InputsEcsComponent to entity.

Parameters

world

EcsWorld

The ECS world entity belongs to.

entity

number

The entity to attach the component to.

options

InputsEcsComponent

Options for configuring the inputs. inputManager has no sensible default and must always be provided.

Returns

InputsEcsComponent

The attached component, for further tuning or runtime changes.