I've been learning a ton since I've been lurking around here, and I've decided I want to rewrite most of what I have worked on recently to make it more efficient, friendly, and generally less glitchy.
One of these is to check the values of axes, but I want pretty much any controller to work, so I thought to write it like so:
Code: Select all
local axis = {}
for x = 0, controller["numAxes"] do
axis[x] = love.joystick.getAxes( 1 )
end
Can someone lay the knowledge on me? Thanks!