added the access_hid_wrapper feature
This commit is contained in:
4 files changed
+10
-3
No files matched your search
@@ -9,3 +9,6 @@ edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
hidapi = "2.6.5"
|
||||
|
||||
[features]
|
||||
access_hid_wrapper = []
|
||||
@@ -0,0 +1 @@
|
||||
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0c45", ATTRS{idProduct}=="8006", MODE="0666"
|
||||
+5
-2
@@ -1,9 +1,12 @@
|
||||
mod hid_wrapper;
|
||||
mod color;
|
||||
mod hid_wrapper;
|
||||
mod rgb_controller;
|
||||
|
||||
pub use hid_wrapper::HidWrapperError;
|
||||
pub use color::Color;
|
||||
pub use hid_wrapper::HidWrapperError;
|
||||
pub use rgb_controller::controller::RGBController;
|
||||
pub use rgb_controller::effects::Effects;
|
||||
pub use rgb_controller::keymap::{Keymap, KeymapKeys};
|
||||
|
||||
#[cfg(feature = "access_hid_wrapper")]
|
||||
pub use hid_wrapper::HidWrapper;
|
||||
@@ -1,7 +1,7 @@
|
||||
use crate::Color;
|
||||
use crate::Effects;
|
||||
use crate::HidWrapperError;
|
||||
use crate::Keymap;
|
||||
use crate::Color;
|
||||
use crate::hid_wrapper::HidWrapper;
|
||||
|
||||
pub struct RGBController {
|
||||
|
||||
Reference in new issue
Block a user