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

◆ state_of()

static TabletState MayaFlux::Core::TabletFrame::state_of ( std::span< const double >  frame)
inlinestaticnoexcept

Decode the state slot of a frame.

Definition at line 93 of file TabletFrame.hpp.

94 {
95 if (frame.size() <= STATE)
96 return TabletState::NONE;
97 return static_cast<TabletState>(static_cast<uint32_t>(frame[STATE]));
98 }
TabletState
State bits packed into the STATE slot.
@ STATE
TabletState bitmask.