Skip to main content

DeadzoneChecker

class DeadzoneChecker

Deadzone checker for deadzone-based controls

Properties
Methods

constructor

new DeadzoneChecker(options, options.size)

Create new DeadzoneChecker

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
optionsDeadzoneCheckerOptions✔️{}Options
options.sizenumber✔️0.1Size of the deadzone circle.

Properties

size

Size of the deadzone.

Type: number

inDeadzone

Whether the input is in the deadzone

Type: boolean

Methods

setAspect

Set screen aspect(height / width)

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
aspectnumberScreen aspect value