Skip to content

cf_button_binding_add_trigger

Category: binding
GitHub: cute_binding.h


Binds a joypad axis (as a trigger/threshold) to this button binding.

void cf_button_binding_add_trigger(CF_ButtonBinding b, CF_JoypadAxis axis, float threshold, bool positive);
Parameters Description
b The button binding handle.
axis The joypad axis to use.
threshold The threshold value (0..1) at which the axis counts as pressed.
positive True to trigger on positive axis values, false for negative.

CF_ButtonBinding
cf_button_binding_add_key
cf_button_binding_add_mouse_button
cf_button_binding_add_joypad_button