- add option to reverse physical mouse wheel direction

- add slider widget to adjust the size of tap exclusion area for on-screen buttons
This commit is contained in:
TrueZhuangjia
2024-09-12 23:43:32 +08:00
parent f5c03f8045
commit 22b4cc6222
14 changed files with 409 additions and 73 deletions
+2 -1
View File
@@ -904,6 +904,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
{
short translationDeltaY = ((currentScrollTranslation.y - lastScrollTranslation.y) / self.bounds.size.height) * translationMultiplier;
if(settings.reverseMouseWheelDirection) translationDeltaY = - translationDeltaY;
if (translationDeltaY != 0) {
LiSendHighResScrollEvent(translationDeltaY);
lastScrollTranslation = currentScrollTranslation;
@@ -939,7 +940,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
{
short translationDeltaY = currentScrollTranslation.y - lastScrollTranslation.y;
translationDeltaY = -translationDeltaY;
if(settings.reverseMouseWheelDirection) translationDeltaY = - translationDeltaY;
if (translationDeltaY != 0) {
LiSendScrollEvent(translationDeltaY > 0 ? 1 : -1);
}