From c234070707de8eb0eafacabe97a539ec5643e0aa Mon Sep 17 00:00:00 2001 From: vextrixes <113197359+vextrixes@users.noreply.github.com> Date: Sat, 4 Jul 2026 10:02:42 +0200 Subject: [PATCH] small comment changes --- src/keymap.rs | 4 ++-- src/rgb_controller/controller.rs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/keymap.rs b/src/keymap.rs index f6b67ae..b2fc45d 100644 --- a/src/keymap.rs +++ b/src/keymap.rs @@ -113,8 +113,8 @@ pub enum KeymapKeys { } impl KeymapKeys { - /// returns the id of a key - fn to_usize(&self) -> usize { + /// returns the id of a key (where to put it in the keymap) + pub fn to_usize(&self) -> usize { match self { KeymapKeys::Escape => 1, KeymapKeys::F1 => 2, diff --git a/src/rgb_controller/controller.rs b/src/rgb_controller/controller.rs index 3107e6c..30351a1 100644 --- a/src/rgb_controller/controller.rs +++ b/src/rgb_controller/controller.rs @@ -44,6 +44,8 @@ impl RGBController { self.hid_wrapper.get_report()?; } + // Some random bytes (Random when using the offical app) + //idk how to replicate the randomness so i just use a constant self.hid_wrapper.send_report(&[ 0x26, 0x36, 0xf2, 0x27, 0xb7, 0x2a, 0x56, 0x77, 0x98, 0x59, 0x9c, 0x6d, 0x9f, 0xc6, 0xb, 0x44, 0xec, 0xa8, 0x47, 0x21, 0xe2, 0x65, 0x76, 0xa3, 0x70, 0xbe, 0xa2, 0xbb,