Fix the mouse lock after fullscreen - for real this time. (#1080)

This commit is contained in:
Alexander Babikov
2020-11-16 22:09:13 +05:00
committed by GitHub
parent 2d0b910aa2
commit e0ff781a34
3 changed files with 4 additions and 3 deletions

View File

@@ -1089,6 +1089,8 @@ ui_init(int nCmdShow)
/* Make the window visible on the screen. */
ShowWindow(hwnd, nCmdShow);
GetClipCursor(&oldclip);
/* Initialize the RawInput (keyboard) module. */
memset(&ridev, 0x00, sizeof(ridev));
ridev.usUsagePage = 0x01;