Skip to content

cf_stick_binding_set_circular_deadzone

Category: binding
GitHub: cute_binding.h


Sets a circular deadzone on the stick, applied to the combined x/y magnitude.

void cf_stick_binding_set_circular_deadzone(CF_StickBinding s, float deadzone);
Parameters Description
s The stick binding handle.
deadzone The circular deadzone radius (0..1). Set to -1 to disable.

Remarks

When active, both underlying axis deadzones are set to 0 so analog values pass through for the circular calculation. Digital inputs (keys, dpad) override the analog value when active.

CF_StickBinding
cf_stick_binding_value
cf_binding_set_deadzone