Update README.md

Added key repeat option for classic GUI backspace
This commit is contained in:
Whitecl4ws 2017-01-28 11:26:48 -05:00 committed by GitHub
parent 549693dd38
commit 1162c0f864

View file

@ -25,6 +25,9 @@ local suit = require 'suit'
-- storage for text input
local input = {text = ""}
-- By default, backspace only registers once, if you want classic GUI backspace that keeps going when pushed down
-- Add this line: love.keyboard.setKeyRepeat(true)
-- all the UI is defined in love.update or functions that are called from here
function love.update(dt)
-- put the layout origin at position (100,100)