Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: joystick:getGamepadAxis righty is circlepad x and leftx is circlepad y #223

Closed
1 task done
ArsonousKnight52 opened this issue Mar 15, 2024 · 1 comment
Closed
1 task done
Labels

Comments

@ArsonousKnight52
Copy link

Software Version

3.0

What Happened?

when using love gamepad axis for getting the circlepad's x and y directions, you must get righty for the x value of the circlepad, and leftx for the y value of the circlepad.

What was Expected?

leftx for circlepad x and lefty for circlepad y

Code to Reproduce

function love.load()
    joystick = love.joystick.getJoysticks()[1]
end

function love.update()
    x,y = joystick:getGamepadAxis( "righty" ), joystick:getGamepadAxis( "leftx" )
end

function love.draw()
    love.graphics.print(x, 0, 0)
    love.graphics.print(y, 0, 20)
end

Console

Nintendo 3DS

Firmware Version(s)

11.17.0-50E

Custom Firmware Version

12.0.1

Execution Method

Homebrew Menu

Code of Conduct

  • I have read the Code of Conduct and agree to these terms
@TurtleP
Copy link
Collaborator

TurtleP commented Mar 25, 2024

Fixed with 5705bdb

@TurtleP TurtleP closed this as completed Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants