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

◆ notify_tick()

void MayaFlux::Nodes::Input::TabletNode::notify_tick ( double  value)
overrideprotectedvirtual

Notify callbacks (minimal for InputNode)

InputNodes fire callbacks sparingly - the input event IS the notification. Override if you need per-sample callbacks (rare for input).

Reimplemented from MayaFlux::Nodes::Input::InputNode.

Definition at line 56 of file TabletNode.cpp.

57{
59
60 if (!m_frame_pending.exchange(false, std::memory_order_acq_rel)) {
61 return;
62 }
63
65
67 fire_edges();
68
69 m_previous_state = static_cast<uint32_t>(m_frame[Core::TabletFrame::STATE]);
70}
float value
void notify_tick(double value) override
Notify callbacks (minimal for InputNode)
std::vector< FrameCallback > m_frame_callbacks
std::array< double, Core::TabletFrame::SLOT_COUNT > m_frame
std::atomic< bool > m_frame_pending
void update_context(double value) override
Update context after processing.
void fire(const std::vector< FrameCallback > &callbacks)
@ STATE
TabletState bitmask.

References fire(), fire_edges(), m_frame, m_frame_callbacks, m_frame_pending, m_previous_state, MayaFlux::Nodes::Input::InputNode::notify_tick(), MayaFlux::Core::TabletFrame::STATE, update_context(), and value.

+ Here is the call graph for this function: