Re: What's up with gamepad axes?
Posted: Fri Apr 28, 2023 4:05 pm
Ohwell while adding transparency i kinda deleted all the lines. So much cpu wasting lines...
But anyway point is, this is what two of my pads return on doing a slow circle and pushing diagonal:
Can you guess which is the cheaper pad?
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.
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.