conditional

Description

Adds the conditional function to modify the behavior of keybindings based on a condition implemented as a function.

conditional takes three function pointers: condition, func_true, and func_false, along with arguments for the last two.

NULL can be passed as func_true or func_false, in which case it acts as a no-op.

Download

Author