Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller Support .... kinda #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

notexplosive
Copy link
Contributor

Someone was asking on discord about controller support. This is a super hacky (but low-risk!) way to add controller support. From my testing it is... Literally Playable.

Essentially I just map buttons to keys and forward gamepad presses to love.keypressed, I found a few usages of love.keyboard.isDown so I had to intercept that too.

This might be a bit too much Lua Dark Magic(™️) for your liking, which is fine. I just thought I'd propose a cheap stopgap for controller support.

Like my other PR my formatter chewed up the files that I touched, however I kept the formatting in their own commits so they're easy to revert if you don't like them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant