|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
Slot indices into the double vector carried by a tablet InputValue. More...
#include <TabletFrame.hpp>
Collaboration diagram for MayaFlux::Core::TabletFrame:Public Types | |
| enum | Slot : size_t { X = 0 , Y = 1 , PRESSURE = 2 , DISTANCE = 3 , TILT_X = 4 , TILT_Y = 5 , ROTATION = 6 , SLIDER = 7 , WHEEL = 8 , WHEEL_CLICKS = 9 , BUTTONS = 10 , STATE = 11 } |
Static Public Member Functions | |
| static bool | in_state (std::span< const double > frame, TabletState bit) noexcept |
| Test a state bit on a frame. | |
| static TabletState | state_of (std::span< const double > frame) noexcept |
| Decode the state slot of a frame. | |
Static Public Attributes | |
| static constexpr size_t | SLOT_COUNT = 12 |
Slot indices into the double vector carried by a tablet InputValue.
A tablet source emits one InputValue of Type::VECTOR per hardware sample, sized SLOT_COUNT. Every slot is always present. Absent axes read zero and the tool's TabletAxes mask says which those are.
Position, pressure and distance are normalised 0..1. Tilt is -90..90 degrees and rotation -180..180 degrees. Slider is -1..1. Buttons and state are integral values stored as doubles and recovered by casting.
Slot layout is a public contract. Appending slots is permitted, reordering or reinterpreting existing slots is not.
Definition at line 74 of file TabletFrame.hpp.