-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed rogue mouse grab after switching window.
// If you alt+TAB out of the window while any mouse button is down, OIS will not release it until you click in the window again. // See #2468 // To work around, we keep internal button states and pay attention not to get them polluted by OIS. Codechanges: * InputEngine: the `getMouseState()` now returns the game's polished state, not raw state from OIS * AppContext: added missing registration of window event listener --> the `windowFocusChanged()` callback is back from the dead. * SceneMouse, OverlayWrapper, CameraManager: mouse handling functions no longer receive OIS input events, but query polished state from InputEngine.
- Loading branch information
Showing
12 changed files
with
132 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.