Skip to content

Commit ef70881

Browse files
authored
Merge pull request #366 from Jklawreszuk/patch-1
Simplify example in virtual-buttons.md
2 parents 2a79bb0 + d88025e commit ef70881

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

en/manual/input/virtual-buttons.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ public override void Start()
3333
VirtualButtonBinding b2 = new VirtualButtonBinding("MyButton", VirtualButton.GamePad.Start);
3434
VirtualButtonBinding b3 = new VirtualButtonBinding("MyButton", VirtualButton.Mouse.Left);
3535

36-
VirtualButtonConfig c = new VirtualButtonConfig();
37-
38-
c.Add(b1);
39-
c.Add(b2);
40-
c.Add(b3);
36+
VirtualButtonConfig c = [b1, b2, b3];
4137

4238
Input.VirtualButtonConfigSet.Add(c);
4339
}
@@ -52,4 +48,4 @@ public override void Update() {
5248
* [Keyboard](keyboards.md)
5349
* [Mouse](mouse.md)
5450
* [Pointers](pointers.md)
55-
* [Input overview](index.md)
51+
* [Input overview](index.md)

0 commit comments

Comments
 (0)