I started hacking on a general lib that can provide a gamepad for touch enabled devices, and implemented it on one of my old games.
It theoretically supports multitouch, and any amount of keys. I should actually look into making a touch version of the love joystick api, could work better than just touch areas.
Horrible code (as always), but with a bit of refactoring, it could be of use.
Library:
Game:
Platform Agnostic Input Library and Love Android Tetris
- TheAncientGoat
- Prole
- Posts: 9
- Joined: Sat Dec 04, 2010 5:41 pm
Platform Agnostic Input Library and Love Android Tetris
Last edited by TheAncientGoat on Sun Dec 04, 2011 4:34 pm, edited 2 times in total.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Platform Agnostic Input Library and Love Android Tetris
I think you mean "apathetic". I see "agnostic" used in this fashion a lot, but I believe it is incorrect.
Wikipedia wrote:Agnosticism is the view that the truth value of certain claims is unknown or unknowable.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Platform Agnostic Input Library and Love Android Tetris
https://www.youtube.com/watch?v=5eGsjOf8_uE#t=142TechnoCat wrote:I think you mean "apathetic". I see "agnostic" used in this fashion a lot, but I believe it is incorrect.
Help us help you: attach a .love.
Re: Platform Agnostic Input Library and Love Android Tetris
Wouldn't it be a good idea to have a simple example (like the main.lua in PAIL.love) where you actually use the library? I see no "require" there.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- TheAncientGoat
- Prole
- Posts: 9
- Joined: Sat Dec 04, 2010 5:41 pm
Re: Platform Agnostic Input Library and Love Android Tetris
"LoAnTe" is the tetris game where the library is implemented. The second attachment.
Also, I guess apathetic is the right term. Doesn't quite have the same ring to it
Also, I guess apathetic is the right term. Doesn't quite have the same ring to it
Re: Platform Agnostic Input Library and Love Android Tetris
I just thought it'd be simpler to have a simpler demonstration, like the one in the first .love. That'd be easier for somebody who wants to use the library.TheAncientGoat wrote:"LoAnTe" is the tetris game where the library is implemented. The second attachment.
Also, I guess apathetic is the right term. Doesn't quite have the same ring to it
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- TheAncientGoat
- Prole
- Posts: 9
- Joined: Sat Dec 04, 2010 5:41 pm
Re: Platform Agnostic Input Library and Love Android Tetris
Ah, I see. Ok, updated it to be libified.
Re: Platform Agnostic Input Library and Love Android Tetris
Does this only work for certain resolutions? Here's what I get :
- TheAncientGoat
- Prole
- Posts: 9
- Joined: Sat Dec 04, 2010 5:41 pm
Re: Platform Agnostic Input Library and Love Android Tetris
Yeah, there's a problem with scaling, but if you press the buttons, it should work.
Who is online
Users browsing this forum: No registered users and 5 guests