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
{{ message }}
Repository navigation
Game does not capture cursor in windowed mode #104
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.
looks like the game already has the proper logic for releasing capture when minimizing. ClipCursor() is only getting called when there's specifically a directinput mouse though, which might be the actual issue
Activity
ShizCalev commentedon Mar 3, 2025
looks like the game already has the proper logic for releasing capture when minimizing. ClipCursor() is only getting called when there's specifically a directinput mouse though, which might be the actual issue
GeneralsGameCode/Generals/Code/Main/WinMain.cpp
Lines 443 to 469 in 0a05454
GeneralsGameCode/Generals/Code/GameEngineDevice/Source/Win32Device/GameClient/Win32DIMouse.cpp
Lines 407 to 433 in 0a05454
GeneralsGameCode/Generals/Code/GameEngine/Source/GameClient/Input/Mouse.cpp
Lines 945 to 958 in 0a05454
# This is a combination of 977 commits.