From 41fefd32227886009586031a50d18cc6b70d7324 Mon Sep 17 00:00:00 2001 From: simon-wh Date: Tue, 9 Jan 2024 15:45:29 +0100 Subject: [PATCH] Initial support for 60HE+ --- wooting-analog-plugin/src/lib.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/wooting-analog-plugin/src/lib.rs b/wooting-analog-plugin/src/lib.rs index af0c619..05b7740 100644 --- a/wooting-analog-plugin/src/lib.rs +++ b/wooting-analog-plugin/src/lib.rs @@ -246,6 +246,21 @@ impl DeviceImplementation for Wooting60HEARM { } } +#[derive(Debug, Clone)] +struct Wooting60HEPlus(); + +impl DeviceImplementation for Wooting60HEPlus { + fn device_hardware_id(&self) -> DeviceHardwareID { + DeviceHardwareID { + vid: WOOTING_VID, + pid: 0x1320, + usage_page: 0xFF54, + has_modes: true, + } + } +} + + #[derive(Debug, Clone)] struct WootingUwU(); @@ -273,6 +288,7 @@ impl DeviceImplementation for WootingUwURgb { } } } + /// A fully contained device which uses `device_impl` to interface with the `device` struct Device { pub device_info: DeviceInfo, @@ -473,6 +489,7 @@ impl WootingPlugin { Box::new(WootingTwoHEARM()), Box::new(Wooting60HE()), Box::new(Wooting60HEARM()), + Box::new(Wooting60HEPlus()), Box::new(WootingUwU()), Box::new(WootingUwURgb()), ];