Page 1 of 1

Joystick tutorial?

Posted: Tue Nov 20, 2012 5:56 pm
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.

Re: Joystick tutorial?

Posted: Tue Nov 20, 2012 6:38 pm
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.

Re: Joystick tutorial?

Posted: Tue Nov 20, 2012 7:21 pm
by mangadrive
Ok that finally registered :) Thank you very much.

Re: Joystick tutorial?

Posted: Tue Nov 20, 2012 7:56 pm
by mangadrive
Sorted everything out :) Thanks again.

Re: Joystick tutorial?

Posted: Tue Nov 27, 2012 4:12 am
by LangAmil
You guys are great! Thanks for the info.. been figuring this out too