We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a79bb0 + d88025e commit ef70881Copy full SHA for ef70881
en/manual/input/virtual-buttons.md
@@ -33,11 +33,7 @@ public override void Start()
33
VirtualButtonBinding b2 = new VirtualButtonBinding("MyButton", VirtualButton.GamePad.Start);
34
VirtualButtonBinding b3 = new VirtualButtonBinding("MyButton", VirtualButton.Mouse.Left);
35
36
- VirtualButtonConfig c = new VirtualButtonConfig();
37
-
38
- c.Add(b1);
39
- c.Add(b2);
40
- c.Add(b3);
+ VirtualButtonConfig c = [b1, b2, b3];
41
42
Input.VirtualButtonConfigSet.Add(c);
43
}
@@ -52,4 +48,4 @@ public override void Update() {
52
48
* [Keyboard](keyboards.md)
53
49
* [Mouse](mouse.md)
54
50
* [Pointers](pointers.md)
55
-* [Input overview](index.md)
51
+* [Input overview](index.md)
0 commit comments