Cleanup of left-overs that shouldn't be there

This commit is contained in:
IceStormNG
2023-08-18 15:17:03 +02:00
parent 18b664a123
commit e4aa5f0283

View File

@@ -935,18 +935,19 @@ namespace GHelper.Peripherals.Mouse
byte[]? response = WriteForResponse(GetReadAccelerationPacket());
if (response is null) return;
if (HasAcceleration()) Acceleration = ParseAcceleration(response);
if (HasDeceleration()) Deceleration = ParseDeceleration(response);
for (int i = 0; i < DPIProfileCount(); ++i)
if (HasAcceleration())
{
Logger.WriteLine(GetDisplayName() + ": Read DPI Setting " + (i + 1) + ": " + DpiSettings[i].ToString());
Acceleration = ParseAcceleration(response);
Logger.WriteLine(GetDisplayName() + ": Read Acceleration: " + Acceleration);
}
if (HasDeceleration())
{
Deceleration = ParseDeceleration(response);
Logger.WriteLine(GetDisplayName() + ": Read Deceleration: " + Deceleration);
}
}
//TODO: Implement Acceleration Reading
// ------------------------------------------------------------------------------
// DPI
// ------------------------------------------------------------------------------