MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ on_button_press()

void MayaFlux::Nodes::Input::InputNode::on_button_press ( const NodeHook callback)

Register callback for button press (0.0 → 1.0 transition)

Parameters
callbackFunction to call on button press

Specialized for button inputs - fires once on press

Definition at line 162 of file InputNode.cpp.

163{
165}
void add_input_callback(const NodeHook &callback, InputEventType event_type, std::optional< double > threshold={}, std::optional< std::pair< double, double > > range={}, std::optional< NodeCondition > condition={})
@ BUTTON_PRESS
Button went from 0.0 to 1.0.

References add_input_callback(), and MayaFlux::Nodes::Input::BUTTON_PRESS.

+ Here is the call graph for this function: