MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nodes::Input::TabletContext Class Reference

Node context carrying a full tablet frame alongside the scalar. More...

#include <TabletNode.hpp>

+ Inheritance diagram for MayaFlux::Nodes::Input::TabletContext:
+ Collaboration diagram for MayaFlux::Nodes::Input::TabletContext:

Public Member Functions

bool button (uint32_t bit) const
 Test a tool button by bit index.
 
bool in_contact () const
 Whether the tool is touching the surface.
 
bool in_proximity () const
 Whether the tool is within sensing range.
 
double slot (size_t index) const
 Read one slot of the frame.
 
 TabletContext (double value, double raw_value, Core::InputType source, uint32_t device_id)
 
- Public Member Functions inherited from MayaFlux::Nodes::Input::InputContext
 InputContext (double value, double raw_value, Core::InputType source, uint32_t device_id)
 
- Public Member Functions inherited from MayaFlux::Nodes::NodeContext
template<typename T >
T * as ()
 Safely cast to a derived context type.
 
template<typename T >
const T * as () const
 
virtual ~NodeContext ()=default
 

Public Attributes

std::array< double, Core::TabletFrame::SLOT_COUNTframe {}
 
- Public Attributes inherited from MayaFlux::Nodes::Input::InputContext
uint32_t device_id
 Source device ID.
 
double raw_value
 Unsmoothed input value.
 
Core::InputType source_type
 Backend that produced this input.
 
- Public Attributes inherited from MayaFlux::Nodes::NodeContext
double value
 Current sample value.
 

Additional Inherited Members

- Protected Member Functions inherited from MayaFlux::Nodes::NodeContext
 NodeContext (double value)
 Protected constructor for NodeContext.
 

Detailed Description

Node context carrying a full tablet frame alongside the scalar.

Every callback registered on a TabletNode receives this, so a threshold or range callback firing on one axis can read every other axis of the same hardware sample.

The frame is a copy rather than a view. The InputValue it came from does not outlive the dispatch call, so a span would dangle.

Definition at line 20 of file TabletNode.hpp.


The documentation for this class was generated from the following file: