Skip to content

cf_binding_set_deadzone

Category: binding
GitHub: cute_binding.h


Sets the global deadzone threshold for analog stick inputs.

void cf_binding_set_deadzone(float deadzone);
Parameters Description
deadzone The deadzone value (roughly 0.1 to 0.2). Default is 0.15f.

Remarks

Inputs from controllers below this threshold are zeroed out. Setting too low causes stick drift, too high reduces sensitivity. Individual bindings can override this with cf_button_binding_set_deadzone or cf_axis_binding_set_deadzone.

cf_binding_get_deadzone
cf_axis_binding_set_deadzone
cf_button_binding_set_deadzone