input: minor constraint fixes

fixes the confined region, warping issues, etc. Closes #3158
This commit is contained in:
vaxerski 2023-09-04 17:34:19 +02:00
parent e3c83ab2e0
commit d9937fcdba
4 changed files with 50 additions and 11 deletions

View file

@ -168,8 +168,8 @@ struct SConstraint {
bool active = false;
bool hintSet = false;
Vector2D positionHint; // the position hint, but will be set to the current cursor pos if not set.
bool hintSet = false;
Vector2D positionHint = {-1, -1}; // the position hint, but will be set to the current cursor pos if not set.
DYNLISTENER(setConstraintRegion);
DYNLISTENER(destroyConstraint);