aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-03-26 16:03:32 +0100
committerGitHub <noreply@github.com>2025-03-26 16:03:32 +0100
commit1b7c8e72c679aaf407dc26db5695f04cdcc84a42 (patch)
tree22cf6b50ac8e51bbc47469532687735f0b20d74f /CHANGELOG.md
parentbcdf25ae58c4fe82cd444ea1ce3f1b8f2532c7ed (diff)
sokol_app.h: more robust mouse-lock behaviour on Windows (fixes #1221) (#1230)
* sokol_app.h win32: rewrite mouse lock to be more robust around edge cases * sokol_app.h win32: add back ShowCursor calls in lock/unlock mouse code * sokol_app.h: update doc section on mouse lock * update changelog (https://github.com/floooh/sokol/pull/1230) * sokol_app.h win32: also release mouse capture in _sapp_win32_do_unlock_mouse
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 02e504dc..5645f9a6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,20 @@
## Updates
+### 26-Mar-2025
+
+- sokol_app.h win32: Mouse lock behaviour is now more robust in edge cases
+ (like stealing the window focus by opening the Windows task manager):
+ Calling sapp_lock_mouse() will now only set a flag with the new
+ intended mouse lock state instead of changing the mouse-lock state immediately.
+ Then once per frame the sokol_app.h win32 run-loop will check if the intended
+ state differs from the current state and will change the mouse lock state
+ accordingly.
+
+ Also note the updated `MOUSE LOCK` documentation section in sokol_app.h.
+
+ Related issue: https://github.com/floooh/sokol/issues/1221
+ Implemented in PR: https://github.com/floooh/sokol/pull/1230
+
### 20-Mar-2025
- sokol_app.h macOS: A small fix for Ctrl-Tab key down. So far this wasn't forwarded