Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Dec 2, 2025

Merge with Rebase

The first commit applies a bit of refactoring to WinMain and Mouse because there is some chaos.

The second commit prevents the cursor capture when the mouse is outside of the app window. This avoid inconcienences when grapping the top window bar to move the window. Also it acts more graceful this way no longer teleporting the cursor into the game window when focus is regained. The user now can move his cursor back into the window before it is recaptured.

TODO

  • Replicated in Generals
  • Add pull id to commits

@xezon xezon added this to the Important features milestone Dec 2, 2025
@xezon xezon added Bug Something is not working right, typically is user facing Minor Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project Input labels Dec 2, 2025
Copy link

@Skyaero42 Skyaero42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, this fixes the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is not working right, typically is user facing Input Minor Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to move window when cursor capture is enabled

2 participants