Skip to content

Commit

Permalink
fix null CurrentMouseStroke bug
Browse files Browse the repository at this point in the history
  • Loading branch information
komefai committed Mar 27, 2018
1 parent 658584b commit 93c3b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PS4Macro/Classes/Remapping/Remapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public void OnReceiveData(ref DualShockState state)
}

// Mouse moved
if (CurrentMouseStroke.DidMoved)
if (CurrentMouseStroke != null && CurrentMouseStroke.DidMoved)
{
MouseSpeedX = (CurrentMouseStroke.VelocityX * MouseSensitivity) / MOUSE_SENSITIVITY_DIVISOR;
if (MouseInvertXAxis) MouseSpeedX *= -1;
Expand Down

0 comments on commit 93c3b66

Please sign in to comment.