Xbox360 controller dpad and/or analog sticks
Posted: Sat Sep 15, 2012 5:28 pm
Hello,
I'm currently working on a game for the adventuretime gamejam and am in quite a hurry to get the xbox 360 controller working. All the buttons seems to be working fine, but I don't know how to get input from the dpad and/or analog sticks.
I've read that the triggers won't work properly if you're not using Xinput, but I don't need those haha.
These all seem to report 0:
But I've read some old topics where people got everything but the triggers to work with the standard love2d joystick class.
Thanks in advance
I'm currently working on a game for the adventuretime gamejam and am in quite a hurry to get the xbox 360 controller working. All the buttons seems to be working fine, but I don't know how to get input from the dpad and/or analog sticks.
I've read that the triggers won't work properly if you're not using Xinput, but I don't need those haha.
These all seem to report 0:
Code: Select all
print("number of axis " .. tostring(love.joystick.getNumAxes(0)));
print("number of balls " .. tostring(love.joystick.getNumBalls(0)));
print("number of hats : " .. tostring(love.joystick.getNumHats(0)));
Thanks in advance