diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-06-08 21:04:38 +0200 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-06-09 12:51:10 +0200 |
commit | 543fdc14903bf6c387a71d6e3e33b2321bebd86f (patch) | |
tree | dcc1abf1fbf4ed760ce6db673aae8542257372b1 /modules/gdscript/tests/gdscript_test_runner.cpp | |
parent | e188d619227990001667821dac8bc8940076d4a9 (diff) | |
download | redot-engine-543fdc14903bf6c387a71d6e3e33b2321bebd86f.tar.gz |
Fix passive mouse hovering for physics
Currently mouse hovering doesn't update the state, when collision objects
or the camera move.
This PR fixes this problem by taking the mouse position from the viewport
and not from a nonexistent previous event.
Since previous events could potentially be a long time ago, their
modifier-key state might be outdated. This PR fetches the current
status of modifier-keys from `Input`.
These changes allow the removal of some class-variables and making
additional simplifications.
Diffstat (limited to 'modules/gdscript/tests/gdscript_test_runner.cpp')
0 files changed, 0 insertions, 0 deletions