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

◆ on_button_press()

void MayaFlux::Nodes::Input::InputNode::on_button_press ( const TypedHook< InputContext > &  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 179 of file InputNode.cpp.

180{
182}
void add_input_callback(const TypedHook< InputContext > &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: