addresses for better KB&M #3867

Open
opened 2026-11-30 00:36:27 +00:00 by cepis111-star · 0 comments
cepis111-star commented 2026-11-30 00:36:27 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by cepis111-star on 2026-11-30T00:36:27Z.


In-vehicle flag lets you switch key bindings automatically, and some addresses that got me decent mouse movement on precision setting, maybe someone finds this useful. No idea what this is? give it to claude and tell it to not make mistakes XD

(victory-image-b99f876b74d4a77f.dll) — Memory & Code Addresses, Base in Ghidra: 0x140000000 (add RVA to 0x140000000 for Ghidra VA)

use in gameinput.rs
+0x09E5840C (0x149E5840C) [USED] In-vehicle state flag (byte: 0 = on foot, non-zero = in vehicle). Direct .data global with 3 .text XREFs; overrides N toggle via VICTORY_VEHICLE_RVA.
+0x001FEE98 (0x1401FEE98) [PATCHED] Radial thumbstick 1.0 clamp inside FUN_1401fede0 (vminss xmm4, xmm4, xmm0 -> vmovaps xmm4, xmm0). Lets VICTORY_MOUSE_STICK_MAX > 1.0 pass through while keeping the 0.20 radial deadzone intact.

INPUT & STICK PIPELINE (Ghidra)
+0x05F3FED0 (0x145F3FED0) GameInputCreate thunk -> called by FUN_1459258a0 (IGameInput* singleton at DAT_149AB15E8).
+0x02211BE0 (0x142211BE0) GetNextReading wrapper for gamepad (0x40000).
+0x007A4150 (0x1407A4150) Main per-frame gamepad processor (reads IGameInputReading via vtable +0xB0, merges pads, dispatches triggers/sticks).
+0x007A450A (0x1407A450A) Tail of FUN_1407a4150 (triggers/sticks dispatch).
+0x007A4676 (0x1407A4676) Right-stick X value observed in Cheat Engine after FUN_1401fede0 unclamp (shows -8 / +8).
+0x020CD2B0 (0x1420CD2B0) Right-stick processor called by FUN_1407a4150 -> calls FUN_1401fed50.
+0x001FED50 (0x1401FED50) Stick wrapper (+0x001FED96 writes processed X/Y floats) -> calls FUN_1401fedb0 -> FUN_1401fede0.
+0x001FEDE0 (0x1401FEDE0) Radial deadzone (0.20) & outer clamp function (contains patched +0x001FEE98).
+0x005390A0 (0x1405390A0) Input-snapshot converter (+0x0053913D); scales sticks by 127.5 via FUN_1452f4120 (0.2 deadzone, no clamp).
+0x0439EF20 (0x14439EF20) Trigger (LT/RT) normalization & [-1, 1] clamp function (NOT thumbsticks).
+0x051E0A00 (0x1451E0A00) UI/event dispatch helper (+0x051E0A31 stores float into [rdx]).

<!-- greyfinch-sync:Marvisak/VIctory:issue:6686326891 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3867). Originally posted by [cepis111-star](https://github.com/cepis111-star) on 2026-11-30T00:36:27Z. --- In-vehicle flag lets you switch key bindings automatically, and some addresses that got me decent mouse movement on precision setting, maybe someone finds this useful. No idea what this is? give it to claude and tell it to not make mistakes XD (victory-image-b99f876b74d4a77f.dll) — Memory & Code Addresses, Base in Ghidra: 0x140000000 (add RVA to 0x140000000 for Ghidra VA) use in gameinput.rs +0x09E5840C (0x149E5840C) [USED] In-vehicle state flag (byte: 0 = on foot, non-zero = in vehicle). Direct .data global with 3 .text XREFs; overrides N toggle via VICTORY_VEHICLE_RVA. +0x001FEE98 (0x1401FEE98) [PATCHED] Radial thumbstick 1.0 clamp inside FUN_1401fede0 (vminss xmm4, xmm4, xmm0 -> vmovaps xmm4, xmm0). Lets VICTORY_MOUSE_STICK_MAX > 1.0 pass through while keeping the 0.20 radial deadzone intact. INPUT & STICK PIPELINE (Ghidra) +0x05F3FED0 (0x145F3FED0) GameInputCreate thunk -> called by FUN_1459258a0 (IGameInput* singleton at DAT_149AB15E8). +0x02211BE0 (0x142211BE0) GetNextReading wrapper for gamepad (0x40000). +0x007A4150 (0x1407A4150) Main per-frame gamepad processor (reads IGameInputReading via vtable +0xB0, merges pads, dispatches triggers/sticks). +0x007A450A (0x1407A450A) Tail of FUN_1407a4150 (triggers/sticks dispatch). +0x007A4676 (0x1407A4676) Right-stick X value observed in Cheat Engine after FUN_1401fede0 unclamp (shows -8 / +8). +0x020CD2B0 (0x1420CD2B0) Right-stick processor called by FUN_1407a4150 -> calls FUN_1401fed50. +0x001FED50 (0x1401FED50) Stick wrapper (+0x001FED96 writes processed X/Y floats) -> calls FUN_1401fedb0 -> FUN_1401fede0. +0x001FEDE0 (0x1401FEDE0) Radial deadzone (0.20) & outer clamp function (contains patched +0x001FEE98). +0x005390A0 (0x1405390A0) Input-snapshot converter (+0x0053913D); scales sticks by 127.5 via FUN_1452f4120 (0.2 deadzone, no clamp). +0x0439EF20 (0x14439EF20) Trigger (LT/RT) normalization & [-1, 1] clamp function (NOT thumbsticks). +0x051E0A00 (0x1451E0A00) UI/event dispatch helper (+0x051E0A31 stores float into [rdx]).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory#3867
No description provided.