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

◆ wire_backend_to_manager()

void MayaFlux::Core::InputSubsystem::wire_backend_to_manager ( IInputBackend backend)
private

Definition at line 285 of file InputSubsystem.cpp.

286{
287 backend->set_input_callback([this](const InputValue& value) {
289 });
290
291 backend->set_device_callback([](const InputDeviceInfo& info, bool connected) {
293 "Device {}: {} ({})",
294 connected ? "connected" : "disconnected",
295 info.name, static_cast<int>(info.backend_type));
296 });
297}
#define MF_INFO(comp, ctx,...)
void enqueue_input(const InputValue &value)
enqueue input value to InputManager
SubsystemProcessingHandle * m_handle
@ InputSubsystem
Input subsystem operations (device management, event dispatch)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Core::InputDeviceInfo::backend_type, MayaFlux::Journal::Core, MayaFlux::Core::InputManagerHandle::enqueue_input(), MayaFlux::Core::SubsystemProcessingHandle::inputs, MayaFlux::Journal::InputSubsystem, m_handle, MF_INFO, MayaFlux::Core::InputDeviceInfo::name, MayaFlux::Core::IInputBackend::set_device_callback(), and MayaFlux::Core::IInputBackend::set_input_callback().

Referenced by add_backend().

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