From 11bf7aa63826f0eb4b3a6a5fb53708e2d8117c98 Mon Sep 17 00:00:00 2001 From: AL2009man <67606569+AL2009man@users.noreply.github.com> Date: Wed, 28 May 2025 22:32:41 -0400 Subject: [PATCH] Increased Mouse sensitivity to 30.00 this wil be more in line with id Tech's max mouse sens, which is also 30.00 --- port/src/optionsmenu.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/port/src/optionsmenu.c b/port/src/optionsmenu.c index e077acb31..563215334 100644 --- a/port/src/optionsmenu.c +++ b/port/src/optionsmenu.c @@ -170,8 +170,6 @@ static MenuItemHandlerResult menuhandlerMouseSpeedX(s32 operation, struct menuit inputMouseGetSpeed(&x, &y); if (x < 0.f) { data->slider.value = 0; - } else if (x > 10.f) { - data->slider.value = 1000; } else { data->slider.value = x * 100.f + 0.5f; } @@ -182,6 +180,7 @@ static MenuItemHandlerResult menuhandlerMouseSpeedX(s32 operation, struct menuit break; case MENUOP_GETSLIDERLABEL: sprintf(data->slider.label, "%.2f", (f32)data->slider.value / 100.f); + break; } return 0; @@ -196,8 +195,6 @@ static MenuItemHandlerResult menuhandlerMouseSpeedY(s32 operation, struct menuit inputMouseGetSpeed(&x, &y); if (y < 0.f) { data->slider.value = 0; - } else if (y > 10.f) { - data->slider.value = 1000; } else { data->slider.value = y * 100.f + 0.5f; } @@ -208,6 +205,7 @@ static MenuItemHandlerResult menuhandlerMouseSpeedY(s32 operation, struct menuit break; case MENUOP_GETSLIDERLABEL: sprintf(data->slider.label, "%.2f", (f32)data->slider.value / 100.f); + break; } return 0; @@ -325,7 +323,7 @@ struct menuitem g_ExtendedMouseMenuItems[] = { 0, MENUITEMFLAG_LITERAL_TEXT | MENUITEMFLAG_SLIDER_WIDE, (uintptr_t)"Mouse Speed X", - 1000, + 3000, menuhandlerMouseSpeedX, }, { @@ -333,7 +331,7 @@ struct menuitem g_ExtendedMouseMenuItems[] = { 0, MENUITEMFLAG_LITERAL_TEXT | MENUITEMFLAG_SLIDER_WIDE, (uintptr_t)"Mouse Speed Y", - 1000, + 3000, menuhandlerMouseSpeedY, }, {