@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / applyRadialDeadZone
Function: applyRadialDeadZone() ​
ts
function applyRadialDeadZone(
x,
y,
inner?,
outer?): {
x: number;
y: number;
};Defined in: input/gamepad.ts:128
A radial dead zone with the outer edge rescaled, so a stick at rest reads exactly zero, a small push starts from zero instead of jumping, and the rim reaches 1 even on a worn pad.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
x | number | undefined |
y | number | undefined |
inner | number | 0.15 |
outer | number | 0.95 |
Returns ​
ts
{
x: number;
y: number;
}| Name | Type | Defined in |
|---|---|---|
x | number | input/gamepad.ts:133 |
y | number | input/gamepad.ts:133 |

