Touch input library for Love2D
Place touchi folder inside your project and requiere it (and widgets optionally)"
Touchi = require('touchi/touchi')
Button = require('touchi/Button')
CircleButton = require('touchi/CircleButton')
Create touchi object (usually inside love.load):
touchi = Touchi()
Add some widgets:
touchi:addWidget('left', Button(50, 400, 100, 100))
touchi:addWidget('A', CircleButton(600, 450, 65))
Don't forget to update and draw touchi:
touchi:update(dt)
...
touchi:draw()
Check for input:
if touchi:pressed('A') then ... end
if touchi:released('left') then ... end
if touchi:down('right') then ... end
See main.lua for example