Joystick tutorial?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
mangadrive
Prole
Posts: 32
Joined: Sat Nov 17, 2012 10:26 pm

Joystick tutorial?

Post by mangadrive »

I've exhausted the forums, tutorials and myself trying to figure out axis control. The WiKI doesn't really put it in context for what the commands would do. If anyone has a link to a tut that shows basic axis control, I'd appreciate it. I checked into a few libraries but it seemed to complicate the issue as 99% of them already assume you know what you are doing (i don't)

I have input buttons working no prob, and keyboard the same. Just stuck @ stick control.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Joystick tutorial?

Post by T-Bone »

You recieve x and y values between -1 and 1 from https://love2d.org/wiki/love.joystick.getAxes. That's all you need, really.
User avatar
mangadrive
Prole
Posts: 32
Joined: Sat Nov 17, 2012 10:26 pm

Re: Joystick tutorial?

Post by mangadrive »

Ok that finally registered :) Thank you very much.
User avatar
mangadrive
Prole
Posts: 32
Joined: Sat Nov 17, 2012 10:26 pm

Re: Joystick tutorial?

Post by mangadrive »

Sorted everything out :) Thanks again.
LangAmil
Prole
Posts: 1
Joined: Tue Nov 27, 2012 3:49 am

Re: Joystick tutorial?

Post by LangAmil »

You guys are great! Thanks for the info.. been figuring this out too
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 6 guests