From 6723dd9f99ce8a20e553a7b818a1ebcd32cacbaf Mon Sep 17 00:00:00 2001 From: tesselode Date: Tue, 8 Mar 2022 12:16:38 -0500 Subject: [PATCH] fix syntax error in code example in readme --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 563671c..b92c9ad 100644 --- a/readme.md +++ b/readme.md @@ -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 ```lua controls = { - left = {'key:left', 'key:a', 'axis:leftx-'} - shoot = {'key:x', 'button:a'} + left = {'key:left', 'key:a', 'axis:leftx-'}, + 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.