forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send mouse-enter notification, when viewport receives a mouse motion …
…event Ensure, that a `SubViewport` receives a `NOTIFICATION_VP_MOUSE_ENTER`, when an `InputEventMouseMotion` is sent to a viewport, that currently doesn't have the mouse inside. In the following case the changed code makes a difference: By default the viewport has the state, that the mouse is not over the viewport. When the user pushes an `InputEventMouseMotion` to a `SubViewport`, then because of the default state, the Viewport assumes, that the mouse is not over itself. With this change, the Viewport automatically switches its state. Make necessary adjustments to unit-tests.
- Loading branch information
Showing
3 changed files
with
15 additions
and
2 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