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

◆ emit_frame()

void MayaFlux::Core::TabletBackend::emit_frame ( TabletDevice &  device)
private

Definition at line 850 of file TabletBackend.cpp.

851{
852 if (!m_running.load())
853 return;
854
855 InputValue value;
857 value.data = std::vector<double>(device.slots.begin(), device.slots.end());
858 value.timestamp_ns = static_cast<uint64_t>(
859 std::chrono::steady_clock::now().time_since_epoch().count());
860 value.device_id = device.inverted ? device.eraser_id : device.pen_id;
861 value.source_type = InputType::TABLET;
862
864
865 device.slots[TabletFrame::WHEEL] = 0.0;
867}
glm::vec3 value
vk::PhysicalDevice device
Definition VKDevice.cpp:121
void notify_input(const InputValue &value)
@ TABLET
Digitizers and styluses (pressure, tilt, rotation)
@ VECTOR
Multiple float values (e.g., accelerometer xyz)
@ WHEEL_CLICKS
Integral detents this sample.
@ WHEEL
Degrees of wheel rotation this sample.

References device, m_running, notify_input(), MayaFlux::Core::TABLET, MayaFlux::Core::InputValue::type, value, MayaFlux::Core::InputValue::VECTOR, MayaFlux::Core::TabletFrame::WHEEL, and MayaFlux::Core::TabletFrame::WHEEL_CLICKS.

Referenced by unpack_report().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: