Skip to content

TouchControls

Defined in: plugins/input/touch/TouchControls.ts:11

Extends

Constructors

new TouchControls()

new TouchControls(): TouchControls

Defined in: plugins/input/touch/TouchControls.ts:24

Returns

TouchControls

Overrides

WithSignals(AbstractControls).constructor

Properties

signalConnections

signalConnections: SignalConnections

Defined in: mixins/signals.ts:9

Inherited from

WithSignals(AbstractControls).signalConnections

Accessors

app

Get Signature

get app(): Application

Defined in: plugins/input/touch/TouchControls.ts:39

Returns

Application

Overrides

WithSignals(AbstractControls).app


joystick

Get Signature

get joystick(): IJoystick

Defined in: plugins/input/touch/TouchControls.ts:31

Returns

IJoystick

Set Signature

set joystick(value): void

Defined in: plugins/input/touch/TouchControls.ts:35

Parameters
value

IJoystick

Returns

void

Methods

addButton()

addButton(button): void

Defined in: plugins/input/touch/TouchControls.ts:43

Parameters

button

IButton

Returns

void


addSignalConnection()

addSignalConnection(…args): void

Defined in: mixins/signals.ts:13

Parameters

args

SignalConnection[]

Returns

void

Inherited from

WithSignals(AbstractControls).addSignalConnection


connect()

connect(): void

Defined in: plugins/input/touch/TouchControls.ts:76

Returns

void


connectAction()

connectAction(…args): void

Defined in: mixins/signals.ts:15

Parameters

args

SignalConnection[]

Returns

void

Inherited from

WithSignals(AbstractControls).connectAction


connectSignal()

connectSignal(…args): void

Defined in: mixins/signals.ts:14

Parameters

args

SignalConnection[]

Returns

void

Inherited from

WithSignals(AbstractControls).connectSignal


destroy()

destroy(options?): void

Defined in: mixins/signals.ts:11

Parameters

options?

DestroyOptions

Returns

void

Inherited from

WithSignals(AbstractControls).destroy


initialize()

initialize(scheme): void

Defined in: plugins/input/touch/TouchControls.ts:67

Parameters

scheme

Partial<TouchControlsMap>

Returns

void

Overrides

WithSignals(AbstractControls).initialize


isActionActive()

isActionActive(action): boolean

Defined in: plugins/input/touch/TouchControls.ts:80

Parameters

action

Action

Returns

boolean


removeButton()

removeButton(button): void

Defined in: plugins/input/touch/TouchControls.ts:56

Parameters

button

IButton

Returns

void