Skip to main content

Class: TMouseInputComponent

Defined in: input/mouse-input.ts:9

A component is a data structure that describes a property of an entity.

Extends​

Constructors​

Constructor​

new TMouseInputComponent(): TMouseInputComponent

Returns​

TMouseInputComponent

Inherited from​

TComponent.constructor

Properties​

mouseLocation?​

optional mouseLocation?: TMouseLocation

Defined in: input/mouse-input.ts:10


mouseMovement?​

optional mouseMovement?: TMouseMovement

Defined in: input/mouse-input.ts:11


previousState​

previousState: object

Defined in: input/mouse-input.ts:13

mouseLocation?​

optional mouseLocation?: TMouseLocation

mouseMovement?​

optional mouseMovement?: TMouseMovement


requiredComponents?​

readonly static optional requiredComponents?: TComponentConstructor<TComponent>[]

Defined in: core/component.ts:9

The components that are required by this component. If the entity doesn't have any of the components, they will be created with default values.

Inherited from​

TComponent.requiredComponents

Methods​

updatePreviousState()​

updatePreviousState(): void

Defined in: input/mouse-input.ts:21

Returns​

void