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
Name | Type | Description |
---|---|---|
element | HTMLElement | The element to append the joystick to |
player | Player | The player to control |
Returns
void
Defined in
src/dropins/player/controls.ts:11