Skip to content

Commit 6723dd9

Browse files
authored
fix syntax error in code example in readme
1 parent 3defe19 commit 6723dd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ baton = require 'path.to.baton' -- if it's in subfolders
4242
Controls are defined using a table. Each key should be the name of a control, and each value should be another table. This table contains strings defining what sources should be mapped to the control. For example, this table
4343
```lua
4444
controls = {
45-
left = {'key:left', 'key:a', 'axis:leftx-'}
46-
shoot = {'key:x', 'button:a'}
45+
left = {'key:left', 'key:a', 'axis:leftx-'},
46+
shoot = {'key:x', 'button:a'},
4747
}
4848
```
4949
will create a control called "left" that responds to the left arrow key, the A key, and pushing the left analog stick on the controller to the left, and a control called "shoot" that responds to the X key on the keyboard and the A button on the gamepad.

0 commit comments

Comments
 (0)