Skip to content

Game does not capture cursor in windowed mode #104

@xezon

Description

@xezon

Game does not capture cursor in windowed mode. This makes native window mode (-win command line) unusable.

GenTool fixes this by using Windows ClipCursor function.

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-clipcursor

Note that ClipCursor must be lifted when minimizing game out of full screen when using 2 monitors, otherwise cursor will remain captured on main screen. This can be done by calling ClipCursor(0) on Direct3DDevice8::Reset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working right, typically is user facingCriticalSeverity: Minor < Major < Critical < BlockerGenToolRelates to GenToolZHRelates to Zero Hour

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions