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

◆ on_tick()

void MayaFlux::Nodes::Input::InputNode::on_tick ( const TypedHook< InputContext > &  callback)

Register callback for any input received.

Parameters
callbackFunction to call on every tick

The callback receives an InputContext with the current value and input details. Fires on every process_input() call, after smoothing is applied.

Definition at line 137 of file InputNode.cpp.

138{
139 m_callbacks.emplace_back([callback](NodeContext& ctx) {
140 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-static-cast-downcast)
141 callback(static_cast<InputContext&>(ctx));
142 });
143}
std::vector< NodeHook > m_callbacks
Collection of standard callback functions.
Definition Node.hpp:434

References MayaFlux::Nodes::Node::m_callbacks.