Skip to content

Commit

Permalink
Add support for Wooting UwU and Wooting UwU RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-wh committed Oct 10, 2023
1 parent fb02c39 commit c694034
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions wooting-analog-plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,34 @@ impl DeviceImplementation for Wooting60HEARM {
}
}
}

#[derive(Debug, Clone)]
struct WootingUwU();

impl DeviceImplementation for WootingUwU {
fn device_hardware_id(&self) -> DeviceHardwareID {
DeviceHardwareID {
vid: WOOTING_VID,
pid: 0x1500,
usage_page: 0xFF54,
has_modes: true,
}
}
}

#[derive(Debug, Clone)]
struct WootingUwURgb();

impl DeviceImplementation for WootingUwURgb {
fn device_hardware_id(&self) -> DeviceHardwareID {
DeviceHardwareID {
vid: WOOTING_VID,
pid: 0x1510,
usage_page: 0xFF54,
has_modes: true,
}
}
}
/// A fully contained device which uses `device_impl` to interface with the `device`
struct Device {
pub device_info: DeviceInfo,
Expand Down Expand Up @@ -445,6 +473,8 @@ impl WootingPlugin {
Box::new(WootingTwoHEARM()),
Box::new(Wooting60HE()),
Box::new(Wooting60HEARM()),
Box::new(WootingUwU()),
Box::new(WootingUwURgb()),
];
let mut hid = match HidApi::new() {
Ok(mut api) => {
Expand Down

0 comments on commit c694034

Please sign in to comment.