From 569519aeeae1ffdc8d3ef868c1794429ec70d976 Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Sun, 30 Jul 2023 11:17:21 +0200 Subject: [PATCH] Mice with only one DPI per setting read through a different packet --- app/Peripherals/Mouse/AsusMouse.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Peripherals/Mouse/AsusMouse.cs b/app/Peripherals/Mouse/AsusMouse.cs index 5f9ab099..8c1a025c 100644 --- a/app/Peripherals/Mouse/AsusMouse.cs +++ b/app/Peripherals/Mouse/AsusMouse.cs @@ -794,6 +794,11 @@ namespace GHelper.Peripherals.Mouse protected virtual byte[] GetReadDPIPacket() { + if (!HasXYDPI()) + { + return new byte[] { 0x00, 0x12, 0x04, 0x00 }; + } + return new byte[] { 0x00, 0x12, 0x04, 0x02 }; }