Skip to content

applyRadialDeadzone

applyRadialDeadzone(x, y, deadzone): Vec2

Defined in: deadzone.ts:13

Radial dead-zone with magnitude rescale: inside deadzone the result is Vec2.ZERO; outside, direction is preserved and the magnitude ramps from 0 at the dead-zone edge to 1 at full deflection (clamped). This is the response curve getStick applies to pad hardware — exported so synthetic stick sources (virtual/touch controls) can shape their own values with the exact same curve instead of re-deriving it.

deadzone must be in [0, 1).

number

number

number

Vec2

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/input.md.