Lovepad - A simple gamepad library for android games

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
damv
Prole
Posts: 18
Joined: Thu Oct 11, 2018 9:09 pm

Lovepad - A simple gamepad library for android games

Post by damv »

Hi there,

A few days ago I downloaded the love2d apk with the intention of programming from the cell phone, and I discovered that it is a bit complicated to program games using touch, I mean that my intention is to create games quickly and easily from the cell phone.

That is why I prepared to write this library with love for my own use and also to facilitate this to anyone who wants to do the same.

https://github.com/DeybisMelendez/lovepad

An Example:

Code: Select all

local lovepad = require 'lovepad'
lovepad:setGamePad()
function love.draw()
	lovepad:draw()
	--Your game
end
function love.update(dt)
	lovepad:update()
	if lovepad:isPressed('A') then
	-- ...
	-- Your game
end
You can create buttons too and customize them, please read: https://github.com/DeybisMelendez/lovep ... /README.md

If you have suggestions or any problem you can leave me a message on github: https://github.com/DeybisMelendez/lovepad/issues

I would be very grateful if you could give me a star in the repository, thank you.

Screenshot:
Image
Post Reply

Who is online

Users browsing this forum: No registered users and 48 guests