Skip to content

Commit

Permalink
Another input fix.
Browse files Browse the repository at this point in the history
[F] Can Move Around does nothing in old input manager.
  • Loading branch information
Hertzole committed Jan 2, 2020
1 parent a6aa2bb commit 1e21af6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@ public Vector2 GetInput()
float horizontal = canMoveAround ? input.x : 0;
float vertical = canMoveAround ? input.y : 0;
#else
float horizontal = GetAxisRaw(input_HorizontalAxis);
float vertical = GetAxisRaw(input_VerticalAxis);
float horizontal = canMoveAround ? GetAxisRaw(input_HorizontalAxis) : 0;
float vertical = canMoveAround ? GetAxisRaw(input_VerticalAxis) : 0;
#endif

hasUserInput = horizontal != 0 || vertical != 0;
Expand Down

0 comments on commit 1e21af6

Please sign in to comment.