You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# Changelog
2
2
3
+
## v5.4
4
+
5
+
- Raw mouse: removed the `IN_MenuMouse` engine hook (SofExe `0x4A420`), Pre/Post callbacks, and `in_menumouse.cpp`. `GetCursorPos` no longer takes a special “real API” path while menu-mouse runs; with raw mouse enabled it always drains pending mickeys and reports the synthetic cursor position like other code paths.
6
+
3
7
## v5.3
4
8
5
9
- Raw mouse: if `RegisterRawInputDevices` returns `ERROR_INVALID_PARAMETER` (87) for focus-following registration (`hwndTarget=NULL`), retry once with an explicit same-process top-level HWND (resolved via `cl_hwnd`, window heuristics, or foreground when it belongs to the game process). Non-null `hwndTarget` must be owned by the calling process; comments in `raw_shared.cpp` document that Win32 rule.
-**Sys_SendKeyEvents** – Replaced entirely: `raw_mouse_consume_deltas()`, then `Sys_SendKeyEvents_Replacement()` (capped pump + frame time). Raw-buffer draining now lives in the `GetCursorPos` path.
40
40
41
41
## Custom detours
42
-
-**SetCursorPos** (patch + GetProcAddress) – When enabled: treat as recenter; set `window_center`, return TRUE without moving OS cursor. Patched at IN_Frame, IN_MouseMove, IN_MenuMouse. When disabled: real SetCursorPos.
42
+
-**SetCursorPos** (patch + GetProcAddress) – When enabled: treat as recenter; set `window_center`, return TRUE without moving OS cursor. Patched at IN_Frame, IN_MouseMove. When disabled: real SetCursorPos.
43
43
44
44
## Technical details
45
45
-**Registration:**`raw_mouse_ensure_registered()` clears stale cached targets, resolves a usable game HWND for clip/focus tracking, and separately ensures the process-level raw mouse registration exists. The Win32 registration path always uses `hwndTarget = NULL` for the normal focused-app case, which removes the usual “bad HWND” source of error 87.
0 commit comments