Skip to main content

Module: dropins/player/controls

Functions

createVirtualJoystick

โ–ธ createVirtualJoystick(element, player): void

Creates a virtual joystick which can be used to control a Player's movement on a touch device.

Parameters

NameTypeDescription
elementHTMLElementThe element to append the joystick to
playerPlayerThe player to control

Returns

void

Defined in

src/dropins/player/controls.ts:11