From 5aba2854b06b5e737745c57d83855b44f97433bf Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Sat, 13 Dec 2025 13:45:55 +0100 Subject: [PATCH] Feat: add support for GU605C* models --- rog-slash/src/data.rs | 6 ++++++ rog-slash/src/usb.rs | 3 +++ 2 files changed, 9 insertions(+) diff --git a/rog-slash/src/data.rs b/rog-slash/src/data.rs index eb4c71bf..d173acc8 100644 --- a/rog-slash/src/data.rs +++ b/rog-slash/src/data.rs @@ -16,6 +16,7 @@ pub enum SlashType { GA403W, GA605, GU605, + GU605C, #[default] Unsupported, } @@ -27,6 +28,7 @@ impl SlashType { SlashType::GA403 => PROD_ID1, SlashType::GA605 => PROD_ID2, SlashType::GU605 => PROD_ID1, + SlashType::GU605C => PROD_ID2, SlashType::Unsupported => 0, } } @@ -37,6 +39,7 @@ impl SlashType { SlashType::GA403 => PROD_ID1_STR, SlashType::GA605 => PROD_ID2_STR, SlashType::GU605 => PROD_ID1_STR, + SlashType::GU605C => PROD_ID2_STR, SlashType::Unsupported => "", } } @@ -49,6 +52,8 @@ impl SlashType { SlashType::GA403 } else if board_name.contains("GA605") { SlashType::GA605 + } else if board_name.contains("GU605C") { + SlashType::GU605C } else if board_name.contains("GU605") { SlashType::GU605 } else { @@ -65,6 +70,7 @@ impl FromStr for SlashType { "GA403W" => Self::GA403W, "GA403" => Self::GA403, "GA605" => Self::GA605, + "GU605C" => Self::GU605C, "GU605" => Self::GU605, _ => Self::Unsupported, }) diff --git a/rog-slash/src/usb.rs b/rog-slash/src/usb.rs index bdca7bf0..db204d5c 100644 --- a/rog-slash/src/usb.rs +++ b/rog-slash/src/usb.rs @@ -44,6 +44,8 @@ pub fn get_slash_type() -> SlashType { SlashType::GA403 } else if board_name.contains("GA605") { SlashType::GA605 + } else if board_name.contains("GU605C") { + SlashType::GU605C } else if board_name.contains("GU605") { SlashType::GU605 } else { @@ -57,6 +59,7 @@ pub const fn report_id(slash_type: SlashType) -> u8 { SlashType::GA403 => REPORT_ID_193B, SlashType::GA605 => REPORT_ID_19B6, SlashType::GU605 => REPORT_ID_193B, + SlashType::GU605C => REPORT_ID_19B6, SlashType::Unsupported => REPORT_ID_19B6, } }