Skip to content

Commit b6e48dc

Browse files
committed
fixed wrong reference to update instead of frame
1 parent 7beeb2b commit b6e48dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Packages/com.unity.inputsystem/InputSystem/Actions/InputAction.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ public unsafe bool WasReleasedThisFrame()
13481348
if (state != null)
13491349
{
13501350
var actionStatePtr = &state.actionStates[m_ActionIndexInState];
1351-
return actionStatePtr->releasedInUpdate == ExpectedFrame();
1351+
return actionStatePtr->frame == ExpectedFrame();
13521352
}
13531353

13541354
return false;
@@ -1445,7 +1445,7 @@ public unsafe bool WasPerformedThisFrame()
14451445
if (state != null)
14461446
{
14471447
var actionStatePtr = &state.actionStates[m_ActionIndexInState];
1448-
return actionStatePtr->lastPerformedInUpdate == ExpectedFrame();
1448+
return actionStatePtr->frame == ExpectedFrame();
14491449
}
14501450

14511451
return false;
@@ -1559,7 +1559,7 @@ public unsafe bool WasCompletedThisFrame()
15591559
if (state != null)
15601560
{
15611561
var actionStatePtr = &state.actionStates[m_ActionIndexInState];
1562-
return actionStatePtr->lastCompletedInUpdate == ExpectedFrame();
1562+
return actionStatePtr->frame == ExpectedFrame();
15631563
}
15641564

15651565
return false;

0 commit comments

Comments
 (0)