From 14a428a3db97b7f98007f9ffd53950e367269a42 Mon Sep 17 00:00:00 2001 From: Pennywise Date: Mon, 29 Jul 2024 18:12:30 +0200 Subject: [PATCH] Fixing Razer mouse movement vertically --- Simulator/include/IbInputSimulator/SendTypes/Razer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Simulator/include/IbInputSimulator/SendTypes/Razer.hpp b/Simulator/include/IbInputSimulator/SendTypes/Razer.hpp index d4ad9e0..deba729 100644 --- a/Simulator/include/IbInputSimulator/SendTypes/Razer.hpp +++ b/Simulator/include/IbInputSimulator/SendTypes/Razer.hpp @@ -106,7 +106,7 @@ namespace Send::Type::Internal { control.mi.Flags |= MOUSE_VIRTUAL_DESKTOP; } control.mi.LastX = mi.dx; - control.mi.LastY = mi.dy; + control.mi.LastY = (LONG)std::round(mi.dy / 1.2); } if (mi.dwFlags & MOUSEEVENTF_LEFTDOWN)