fix syntax error in code example in readme

This commit is contained in:
tesselode
2022-03-08 12:16:38 -05:00
committed by GitHub
parent 3defe19f8f
commit 6723dd9f99

View File

@@ -42,8 +42,8 @@ baton = require 'path.to.baton' -- if it's in subfolders
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 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
```lua ```lua
controls = { controls = {
left = {'key:left', 'key:a', 'axis:leftx-'} left = {'key:left', 'key:a', 'axis:leftx-'},
shoot = {'key:x', 'button:a'} shoot = {'key:x', 'button:a'},
} }
``` ```
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. 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.