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

◆ poll_device()

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

Definition at line 725 of file TabletBackend.cpp.

726{
727 const int bytes = hid_read_timeout(device.handle,
728 device.read_buffer.data(), device.read_buffer.size(),
730
731 if (bytes > 0) {
733 std::span<const uint8_t>(device.read_buffer.data(),
734 static_cast<size_t>(bytes)));
735 return;
736 }
737
738 if (bytes < 0) {
740 "Tablet read error on {}: {}", device.name,
741 hid_failure_reason(device.handle));
742 device.active.store(false);
743 }
744}
#define MF_WARN(comp, ctx,...)
vk::PhysicalDevice device
Definition VKDevice.cpp:121
void unpack_report(TabletDevice &device, std::span< const uint8_t > report)
@ InputBackend
Input device backend (HID, MIDI, OSC)
@ Core
Core engine, backend, subsystems.
int poll_timeout_ms
Timeout for hid_read_timeout.

References MayaFlux::Journal::Core, device, MayaFlux::Journal::InputBackend, m_config, MF_WARN, MayaFlux::Core::TabletBackend::Config::poll_timeout_ms, and unpack_report().

Referenced by poll_thread_func().

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