Skip to content

Commit da02b14

Browse files
committed
context.Control > context.control
1 parent 6d6358f commit da02b14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Packages/com.unity.inputsystem/Documentation~/write-custom-interactions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public class MyExampleInteraction : IInputInteraction
2626
switch (context.phase)
2727
{
2828
case InputActionPhase.Waiting:
29-
if (context.Control.ReadValue<float>() == 1)
29+
if (context.control.ReadValue<float>() == 1)
3030
{
3131
context.Started();
3232
context.SetTimeout(duration);
3333
}
3434
break;
3535

3636
case InputActionPhase.Started:
37-
if (context.Control.ReadValue<float>() == -1)
37+
if (context.control.ReadValue<float>() == -1)
3838
context.Performed();
3939
break;
4040
}

0 commit comments

Comments
 (0)