Add support for SDL_GetGlobalMouseState #672
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows us to track drag/resize movements that go outside the window; fixing the issue where dragging too fast will lose a handle on the window. The motivation behind this feature is to support ImGui multi-window viewports
Viewports will function without this, but moving/resizing windows sucks, as the mouse can move more than the title bar's width per frame, causing it to lose track of the window and "drop" it.
Unsure if there's a parallel to this in DX, but we can't use that backend currently anyway since it lacks single driver multi window support at the moment. Given this limitation I'm unsure there's any value in adding a similar function or common routing in hldx, but I can do this work if it's necessary for merge.