diff options
author | Ryan Roden-Corrent <ryan@rcorre.net> | 2022-03-24 08:31:09 -0400 |
---|---|---|
committer | Ryan Roden-Corrent <ryan@rcorre.net> | 2023-07-08 07:53:47 -0400 |
commit | 90bddd21c81bd2e4cf35cdf731070ce8334fef30 (patch) | |
tree | 688f43fb5329d074605dd0033b8f43989cf52ffb /core/variant/variant_construct.cpp | |
parent | c3b0a92c3cd9a219c1b1776b48c147f1d0602f07 (diff) | |
download | redot-engine-90bddd21c81bd2e4cf35cdf731070ce8334fef30.tar.gz |
Wrap mouse for blender-style transforms.
When performing a blender-style translate or scale (but not rotate),
wrap the mouse inside the bounds of the viewport. This allows moving the
mouse indefinitely for large translate or scale operations, and is
consistent with how blender works.
This enables global input processing during blender-style transforms, so
we can capture and wrap mouse events outside the bounds of the viewport.
Other wrapping operations use _sinput, which I assume is possible
because a mouse button is held, so the control receives input even when
the mouse exits the control.
This does not implement wrapping for regular (gizmo-driven) transforms,
though this could be done if desired.
Fixes godotengine/godot-proposals#4255.
Diffstat (limited to 'core/variant/variant_construct.cpp')
0 files changed, 0 insertions, 0 deletions