Fix G PRO speed slider.

This commit is contained in:
TheRogueZeta
2020-09-06 22:08:27 -07:00
committed by Adam Honse
parent 1a946268ba
commit 0cab595ef6
2 changed files with 5 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ void LogitechGProWirelessController::SendMouseMode
usb_buf[0x07] = green;
usb_buf[0x08] = blue;
speed = 1000 * (LOGITECH_G_PRO_WIRELESS_SPEED_FASTEST - speed);
speed = 100 * speed;
if(mode == LOGITECH_G_PRO_WIRELESS_MODE_STATIC)
{
usb_buf[0x09] = 0x02;

View File

@@ -23,10 +23,11 @@ enum
};
enum
{
LOGITECH_G_PRO_WIRELESS_SPEED_SLOWEST = 0x01, /* Slowest speed */
{ // Speed is 1000 for fast and 20000 for slow.
// Values are mutipled by 100 later to give lots of GUI steps.
LOGITECH_G_PRO_WIRELESS_SPEED_SLOWEST = 0xC8, /* Slowest speed */
LOGITECH_G_PRO_WIRELESS_SPEED_NORMAL = 0x32, /* Normal speed */
LOGITECH_G_PRO_WIRELESS_SPEED_FASTEST = 0xC8, /* Fastest speed */
LOGITECH_G_PRO_WIRELESS_SPEED_FASTEST = 0x0A, /* Fastest speed */
};
class LogitechGProWirelessController