[pr-fix][input] Native mouse aiming reads Sensitivity in bindings.ini and F1 KEY BINDINGS #402
Loading…
Reference in a new issue
No description provided.
Delete branch "elgibbone/native-mouse-sensitivity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What it changes
Bindings.inihadSensitivity = 0.2, whiledarner_hle::mousehookloggedsens=0.001500000013038516, the hardcoded default).DARNER_MNK=1), native mouse aiming (DARNER_NATIVE_MOUSE != 0) is on by default, andmousehook::look_returnedreadsgameinput::mouse_sensitivity(). That function read onlyDARNER_MOUSE_SENSand never consultedbindings.ini, so editingSensitivityinbindings.inior stepping F1 > CONTROLS > KEY BINDINGS > MOUSE SENSITIVITY (MNK_BINDINGS_CHANGED) did nothing unlessDARNER_NATIVE_MOUSE=0was set.mnk::Bindingsnow records an explicitSensitivityline separately from the legacy sampler's0.045fallback (mnk::sensitivity_with_count), andgameinput::mouse_sensitivityscales it by0.0015 / 0.135whenDARNER_MOUSE_SENSis not set at startup:Sensitivity = 0.135maps bit-for-bit to0.0015, and abindings.iniwithout aSensitivityline keeps0.0015, so existing defaults are unchanged.0.015..=1.5range (±0.015per step, ±11.1% around0.135) stays insideMIN_MOUSE_SENS..=MAX_MOUSE_SENS(0.00005..=0.05) and applies live onMNK_BINDINGS_CHANGED.bindings.iniupdates native sensitivity only whenSensitivityitself changed, so rebinding a key in F1 leaves in-game[/]adjustments and an explicitDARNER_MOUSE_SENSstartup override intact.How it was tested
c01892d(full headc01892dff4ed4d6538d98e9931f9647b4fc1d56b, onmainf3840d7)x86_64-pc-windows-msvc):cargo clippy --workspace --all-targets --locked -- -D warnings: cleancargo clippy --workspace --all-targets --all-features --locked -- -D warnings: cleancargo xtask policy: 555 files okcargo test --locked -p darner-core -p darner-pe -p darner-simd -p darner-formats -p darner-pipeline -p darner-loader -p darner-game -p darner-hle -p darner: all passed (darner-hle: 495 passed, 0 failed, 15 ignored;no_dll_planting: 2 passed)cargo test --locked -p darner-gpu --lib host::menu::tests: 50 passed, 0 failed, 2 ignoredSensitivity = 0.135and a file omittingSensitivityboth keep0.0015, andDARNER_MOUSE_SENSstill overrides at startup)cargo xtask policy;cargo teston the nine crates above plusdarner-gpu'shost::menu::tests, not the full--workspaceGPU/shader suite.Checklist
main.docs/asset-policy.md.Checked for overlap
git merge-treeagainst its heade56ae68), #302 (launcher window). #189's attached startup log showedSensitivity = 0.2ignored.DARNER_MOUSE_SENSandSensitivity)gameinput: wire bindings.ini Sensitivity and F1 MOUSE SENSITIVITY into native mouse aimingto [pr-fix][input] Native mouse aiming reads Sensitivity in bindings.ini and F1 KEY BINDINGSView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.