File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Packages/com.unity.inputsystem/InputSystem/Actions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments