Giter Club home page Giter Club logo

Comments (3)

mikevmk avatar mikevmk commented on May 27, 2024

Worked for me. I've set '0.3' as a sensitivity setting afterwards and happy with it

diff --git a/src/game/options.cc b/src/game/options.cc
index f9a6a7b..737590f 100644
--- a/src/game/options.cc
+++ b/src/game/options.cc
@@ -64,7 +64,7 @@ typedef enum Preference {
     PREF_SFX_VOLUME,
     PREF_SPEECH_VOLUME,
     PREF_BRIGHTNESS,
-    PREF_MOUSE_SENSITIVIY,
+    PREF_MOUSE_SENSITIVITY,
     PREF_COUNT,
     FIRST_PRIMARY_PREF = PREF_GAME_DIFFICULTY,
     LAST_PRIMARY_PREF = PREF_RUNNING_BURNING_GUY,
@@ -73,7 +73,7 @@ typedef enum Preference {
     LAST_SECONDARY_PREF = PREF_ITEM_HIGHLIGHT,
     SECONDARY_PREF_COUNT = LAST_SECONDARY_PREF - FIRST_SECONDARY_PREF + 1,
     FIRST_RANGE_PREF = PREF_COMBAT_SPEED,
-    LAST_RANGE_PREF = PREF_MOUSE_SENSITIVIY,
+    LAST_RANGE_PREF = PREF_MOUSE_SENSITIVITY,
     RANGE_PREF_COUNT = LAST_RANGE_PREF - FIRST_RANGE_PREF + 1,
 } Preference;
 
@@ -374,7 +374,7 @@ static PreferenceDescription btndat[PREF_COUNT] = {
     { 4, 0, 374, 298, 0, 0, { 202, 221, 209, 222 }, 0, GAME_CONFIG_SNDFX_VOLUME_KEY, 0, 32767.0, &sndfx_volume },
     { 4, 0, 374, 349, 0, 0, { 202, 221, 209, 222 }, 0, GAME_CONFIG_SPEECH_VOLUME_KEY, 0, 32767.0, &speech_volume },
     { 2, 0, 374, 400, 0, 0, { 207, 223, 0, 0 }, 0, GAME_CONFIG_BRIGHTNESS_KEY, 1.0, 1.17999267578125, NULL },
-    { 2, 0, 374, 451, 0, 0, { 207, 218, 0, 0 }, 0, GAME_CONFIG_MOUSE_SENSITIVITY_KEY, 1.0, 2.5, NULL },
+    { 2, 0, 374, 451, 0, 0, { 207, 218, 0, 0 }, 0, GAME_CONFIG_MOUSE_SENSITIVITY_KEY, 0.1, 2.5, NULL },
 };
 
 // 0x481328
@@ -1251,7 +1251,7 @@ static void DoThing(int eventCode)
         case PREF_BRIGHTNESS:
             value = gamma_value;
             break;
-        case PREF_MOUSE_SENSITIVIY:
+        case PREF_MOUSE_SENSITIVITY:
             value = mouse_sens;
             break;
         default:
@@ -1347,7 +1347,7 @@ static void DoThing(int eventCode)
                 gamma_value = newValue;
                 colorGamma(newValue);
                 break;
-            case PREF_MOUSE_SENSITIVIY:
+            case PREF_MOUSE_SENSITIVITY:
                 mouse_sens = newValue;
                 break;
             }
@@ -1589,9 +1589,9 @@ static void UpdateThing(int index)
                 colorGamma(gamma_value);
             }
             break;
-        case PREF_MOUSE_SENSITIVIY:
+        case PREF_MOUSE_SENSITIVITY:
             if (1) {
-                mouse_sens = std::clamp(mouse_sens, 1.0, 2.5);
+                mouse_sens = std::clamp(mouse_sens, 0.1, 2.5);
 
                 int x = (int)((mouse_sens - meta->minValue) * (219.0 / (meta->maxValue - meta->minValue)) + 384.0);
                 trans_buf_to_buf(prfbmp[PREFERENCES_WINDOW_FRM_KNOB_OFF], 21, 12, 21, prefbuf + 640 * meta->knobY + x, 640);
@@ -1918,7 +1918,7 @@ static void JustUpdate()
     sndfx_volume = std::clamp(sndfx_volume, 0, VOLUME_MAX);
     speech_volume = std::clamp(speech_volume, 0, VOLUME_MAX);
     gamma_value = std::clamp(gamma_value, 1.0, 1.17999267578125);
-    mouse_sens = std::clamp(mouse_sens, 1.0, 2.5);
+    mouse_sens = std::clamp(mouse_sens, 0.1, 2.5);
 
     text_object_set_base_delay(text_delay);
     gmouse_3d_synch_item_highlight();

from fallout1-ce.

elde-n avatar elde-n commented on May 27, 2024

yeah this fixes the issue πŸ˜‹ but I personally use

mouse_sensitivity=0.010000

so if you were to make a pull request you should probably use 0.0 as the min

from fallout1-ce.

mikevmk avatar mikevmk commented on May 27, 2024

Would you like to create it? I'm not sure how to do it )

from fallout1-ce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.