DeadzoneChecker
class DeadzoneChecker
Deadzone checker for deadzone-based controls
Properties
Methods
constructor
new DeadzoneChecker(options, options.size)
Create new DeadzoneChecker
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION | 
|---|---|---|---|---|
| options | DeadzoneCheckerOptions | ✔️ | {} | Options | 
| options.size | number | ✔️ | 0.1 | Size 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)
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION | 
|---|---|---|---|---|
| aspect | number | Screen aspect value |