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
SDL no longer sends SDL_WINDOWEVENT_ENTER and SDL_WINDOWEVENT_LEAVE events if any button is pressed when the mouse leaves and enters the window. This introduces a nasty bug with MouseHandler where relative mode won't be re-enabled if the mouse leaves and enters the window while holding down any buttons. This is by design.
This PR introduces a bug with our IME handling, as SDL will now send multiple SDL_TextInputEvents when the text is longer than 32 characters. Should be easy to fix, either delay resetting of recentImeResult, or match the SDL text with our composition text using string.Contains.
https://github.com/flibitijibibo/SDL2-CS is not updated to the latest SDL, and there is no open PR on their side. We can set the hints, but we won't be able to use SDL_ClearComposition.
The text was updated successfully, but these errors were encountered:
With the three PRs, we should be ready for an SDL bump. SDL2-CS was also recently bumped to 2.0.22. Making use of new APIs, such as SDL_ClearComposition(), can be added later.
Fixed by libsdl-org/SDL@6c96217:
Fixed by libsdl-org/SDL@5ff4243:
SDL_WINDOWEVENT_ENTER
andSDL_WINDOWEVENT_LEAVE
events if any button is pressed when the mouse leaves and enters the window. This introduces a nasty bug withMouseHandler
where relative mode won't be re-enabled if the mouse leaves and enters the window while holding down any buttons. This is by design.SDL_HINT_MOUSE_AUTO_CAPTURE
when not using relative mode #5163Fixed by libsdl-org/SDL#5398:
SDL_TextInputEvent
s when the text is longer than 32 characters. Should be easy to fix, either delay resetting ofrecentImeResult
, or match the SDL text with our composition text usingstring.Contains
.ResetIme
to useSDL_ClearComposition
on non-windows platforms.General:
Things to note
https://github.com/flibitijibibo/SDL2-CS is not updated to the latest SDL, and there is no open PR on their side. We can set the hints, but we won't be able to use
SDL_ClearComposition
.The text was updated successfully, but these errors were encountered: