Browse Source

Merge pull request #9605 from SrdanJokic/SrdanJokic/InputEvent

Fix input action C# issue
Matthew 1 year ago
parent
commit
d9b8d2583e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tutorials/inputs/inputevent.rst

+ 2 - 2
tutorials/inputs/inputevent.rst

@@ -234,8 +234,8 @@ The Input singleton has a method for this:
 
     var ev = new InputEventAction();
     // Set as ui_left, pressed.
-    ev.SetAction("ui_left");
-    ev.SetPressed(true);
+    ev.Action = "ui_left";
+    ev.Pressed = true;
     // Feedback.
     Input.ParseInputEvent(ev);