Skip to content

cf_binding_sign

Category: binding
GitHub: cute_binding.h


Returns the sign of the binding value, dispatching by handle type.

#define cf_binding_sign(x) _Generic((x), \
Parameters Description
x A CF_ButtonBinding, CF_AxisBinding, or CF_StickBinding handle.

Remarks

This is a C11 _Generic macro. Returns float (-1/0/1) for button/axis, CF_V2 for stick. In C++ use the overloaded binding_sign() functions in namespace Cute.

cf_button_binding_sign
cf_axis_binding_sign
cf_stick_binding_sign
cf_binding_pressed
cf_binding_released
cf_binding_value