From f50c195d6a2dff5c8a487d587be8078ca2ea4a20 Mon Sep 17 00:00:00 2001 From: Fl1tzi Date: Mon, 22 May 2023 22:38:36 +0200 Subject: [PATCH] rework the button update receiver --- src/device.rs | 74 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 51 insertions(+), 23 deletions(-) diff --git a/src/device.rs b/src/device.rs index f8ab534..373351f 100644 --- a/src/device.rs +++ b/src/device.rs @@ -1,7 +1,7 @@ use crate::{ config::ConfigError, modules::{retrieve_module_from_name, start_module, HostEvent}, - skip_if_none, unwrap_or_error, Button, DeviceConfig, + unwrap_or_error, Button, DeviceConfig, }; use deck_driver as streamdeck; use hidapi::HidApi; @@ -18,7 +18,8 @@ use tokio::{ }; use tracing::{debug, error, info_span, trace}; -pub type ModuleController = (Arc