Skip to content

Commit

Permalink
Properly implement enableOneHandMovement
Browse files Browse the repository at this point in the history
Fixes #2021
  • Loading branch information
keveleigh committed Jul 18, 2018
1 parent d874b25 commit 06751c1
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -237,9 +237,9 @@ private void UpdateStateMachine()
{
newState = ManipulationMode.None;
}
else if (handsPressedCount == 1 && enableOneHandMovement)
else if (handsPressedCount == 1)
{
newState = ManipulationMode.Move;
newState = enableOneHandMovement ? ManipulationMode.Move : ManipulationMode.None;
}
else if (handsPressedCount > 1)
{
Expand All @@ -252,14 +252,13 @@ private void UpdateStateMachine()
case ManipulationMode.MoveAndRotate:
case ManipulationMode.RotateAndScale:
case ManipulationMode.MoveScaleAndRotate:
// TODO: if < 2, make this go to start state ('drop it')
if (handsPressedCount == 0)
{
newState = ManipulationMode.None;
}
else if (handsPressedCount == 1)
{
newState = ManipulationMode.Move;
newState = enableOneHandMovement ? ManipulationMode.Move : ManipulationMode.None;
}
break;
}
Expand Down

0 comments on commit 06751c1

Please sign in to comment.