Code: Select all
love.window.setMode(0,0)
joystick = love.joystick.getJoysticks()[1]
drawCanvas = love.graphics.newCanvas()
distance = 500
bla= function() love.graphics.circle("fill", joystick:getGamepadAxis("leftx")*distance+love.graphics.getWidth()/2, joystick:getGamepadAxis("lefty")*distance+love.graphics.getHeight()/2,20) end
function love.draw()
love.graphics.setColor(1,1,1,.1)
drawCanvas:renderTo(bla)
love.graphics.setColor(1,1,1,1)
love.graphics.circle("line", joystick:getGamepadAxis("leftx")*distance+love.graphics.getWidth()/2, joystick:getGamepadAxis("lefty")*distance+love.graphics.getHeight()/2, 55)
love.graphics.draw(drawCanvas)
end
Note how the upper is obvously broken sensoric wise but the other doesnt center, so yes they kinda suck booth. Kinda genuine xbox360 btw.
My third pad doesnt even work with this kind of code.