Skip to content

[rcore][Emscripten] Clear mouse input state on focus lost - #6418

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
andzdroid:emscripten-mouse-focus-release
Nov 16, 2026
Merged

raysan5 merged 1 commit into
raysan5:masterfrom
andzdroid:emscripten-mouse-focus-release

Conversation

@andzdroid

Copy link
Copy Markdown
Contributor

Brings rcore web and rcore emscripten in line with glfw behaviour.

GLFW reference: https://github.com/raysan5/raylib/blob/master/src/external/glfw/src/window.c#L64

The change for rcore_web lacks the keyboard state reset because it's already done by emscripten here: https://github.com/emscripten-core/emscripten/blob/main/src/lib/libglfw.js#L434

@raysan5
raysan5 merged commit 4595c6a into raysan5:master Nov 16, 2026
15 checks passed
@raysan5

raysan5 commented Nov 16, 2026

Copy link
Copy Markdown
Owner

@andzdroid thanks for the review

@andzdroid
andzdroid deleted the emscripten-mouse-focus-release branch November 17, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants