Wheee, I'm making a game finally. Actually, I've fallen madly in LOVE with Lua. I wanna marry it right now.
I'm sure it has been asked before, but why does love.joystick index game pads starting at 0 instead of 1? Is the index just taken directly from SDL? This is information that should be in the Wiki.
Also, are there any plans to change this behavior in the future? Not that I'm so anxious, but it would be good to prepare for something that might make my code break with the next LOVE release.
Thankz! You guys are making my spring sleepless and wonderful.
Joystick indices
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Joystick indices
yeshryx wrote:Also, are there any plans to change this behavior in the future?
Re: Joystick indices
Thanks, TechnoCat. I searched the forum but forgot to search the bug tracker.
Re: Joystick indices
This issue enraged me for a few hours one day, why anyone thought it was a good idea to break Lua convention confuses me.
I made a note about this in the love.joystick.open() wiki page.
I made a note about this in the love.joystick.open() wiki page.
Re: Joystick indices
For the record, this will be fixed in 0.8.0.
Re: Joystick indices
Excellent. I still made a notation in the wiki so newbies don't tear their hair out.anjo wrote:For the record, this will be fixed in 0.8.0.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests