mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Docs - Fixed input action C# issue
The `SetAction` and `SetPressed` are internal methods and can't be invoked directly outside of that assembly. However, the `Action` and `Pressed` property setters invoke them instead.
(cherry picked from commit 14e03b981f)
This commit is contained in:
committed by
Max Hilbrunner
parent
6447267255
commit
dc04c89210
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user