Skip to content

Commit 0cab595

Browse files
TheRogueZetaCalcProgrammer1
authored andcommitted
Fix G PRO speed slider.
1 parent 1a94626 commit 0cab595

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Controllers/LogitechController/LogitechGProWirelessController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void LogitechGProWirelessController::SendMouseMode
5454
usb_buf[0x07] = green;
5555
usb_buf[0x08] = blue;
5656

57-
speed = 1000 * (LOGITECH_G_PRO_WIRELESS_SPEED_FASTEST - speed);
57+
speed = 100 * speed;
5858
if(mode == LOGITECH_G_PRO_WIRELESS_MODE_STATIC)
5959
{
6060
usb_buf[0x09] = 0x02;

Controllers/LogitechController/LogitechGProWirelessController.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ enum
2323
};
2424

2525
enum
26-
{
27-
LOGITECH_G_PRO_WIRELESS_SPEED_SLOWEST = 0x01, /* Slowest speed */
26+
{ // Speed is 1000 for fast and 20000 for slow.
27+
// Values are mutipled by 100 later to give lots of GUI steps.
28+
LOGITECH_G_PRO_WIRELESS_SPEED_SLOWEST = 0xC8, /* Slowest speed */
2829
LOGITECH_G_PRO_WIRELESS_SPEED_NORMAL = 0x32, /* Normal speed */
29-
LOGITECH_G_PRO_WIRELESS_SPEED_FASTEST = 0xC8, /* Fastest speed */
30+
LOGITECH_G_PRO_WIRELESS_SPEED_FASTEST = 0x0A, /* Fastest speed */
3031
};
3132

3233
class LogitechGProWirelessController

0 commit comments

Comments
 (0)