subsoap / defos

Extra native OS functions for games written using the Defold game engine
Creative Commons Zero v1.0 Universal
112 stars 16 forks source link

Windows: update mouse clip on WM_WINDOWPOSCHANGED. #98

Closed JoshuaGrams closed 5 years ago

JoshuaGrams commented 5 years ago

The mouse clip region doesn't get updated if you move or resize the window with key combinations (Windows-Up, Windows-Left, Windows-Right) or if you have a fullscreen toggle in your game. This fixes that by updating it on WM_WINDOWPOSCHANGED which gets called after the window's position, size, or z-index changse.

subsoap commented 5 years ago

Looks good!