Syntax
xBool PushButtonSetSBlock( PushButton *pushButton, PushButtonBlock sBlock );
Arguments
pushButton the push button.
sBlock a C function that receives the button on activation, or NULL to clear the callback.
Return value
T on success, or F if the object is NULL.
Description
The callback runs once per activation while the button is still in its pressed state. It receives a `PushButton *` so it can retrieve application data with `PushButtonGetCargo()`. The xBase block takes no implicit arguments.