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

◆ button()

static TabletConfig MayaFlux::Nodes::Input::TabletConfig::button ( uint32_t  bit)
inlinestatic

A tool button as 0.0 or 1.0, smoothing disabled.

Parameters
bitBit 0 barrel, bit 1 secondary barrel, bit 2 eraser.

Definition at line 167 of file TabletNode.hpp.

168 {
169 TabletConfig cfg;
171 cfg.button_bit = bit;
172 cfg.smoothing = SmoothingMode::NONE;
173 return cfg;
174 }
@ NONE
No smoothing - immediate value changes (buttons)
@ BUTTONS
Bit 0 barrel, bit 1 secondary barrel, bit 2 eraser.

References button_bit, MayaFlux::Core::TabletFrame::BUTTONS, MayaFlux::Nodes::Input::NONE, slot, and MayaFlux::Nodes::Input::InputConfig::smoothing.