| Summary: | Mouse Warp not working due to in_title_click variable | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Anders Davallius <anders.davallius> |
| Component: | *don't know* | Assignee: | Sam Lantinga <slouken> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | CC: | anders.davallius |
| Version: | 2.0.3 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
|
Description
Anders Davallius
2015-05-01 15:04:34 UTC
There seem to be some discussions bout this event here: http://forums.codeguru.com/showthread.php?393227-No-WM_NCMOUSELEAVE-under-quot-Windows-Classic-Style-quot-! Might be useful. I tried a little "hack", to always run the following code when I get a SDL_WINDOWEVENT_ENTER event: TRACKMOUSEEVENT* tme = new TRACKMOUSEEVENT(); tme->hwndTrack = handle; tme->cbSize = sizeof(TRACKMOUSEEVENT); tme->dwFlags = TME_LEAVE | TME_NONCLIENT ; tme->dwHoverTime = 1000 * 3; TrackMouseEvent(tme); And that seem to solve it, because the mouse tracking is not automatic when you are running some windows settings. Though, it might be redundant to run this code if the mouse is already being tracked, or maybe this affect something else negatively? I would love if someone more knowledgeable about SDL could look in to this a little bit more and see what would be the best things to do. |