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

◆ write()

virtual int MayaFlux::Core::IInputBackend::write ( uint32_t ,
std::span< const uint8_t >  )
inlinevirtual

Send an output report to an open device, for rumble, LEDs or commands.

Parameters
device_idTarget device
dataReport bytes, the first being the report id when the device uses report ids
Returns
Bytes sent, or -1 when the device is not open or the backend cannot write

Reimplemented in MayaFlux::Core::HIDBackend, and MayaFlux::Core::SerialInputBackend.

Definition at line 154 of file InputBackend.hpp.

154{ return -1; }