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

y_value of the joystick behaves differently on Linux and Windows #28

Open
Seraphli opened this issue Jun 16, 2024 · 2 comments
Open

y_value of the joystick behaves differently on Linux and Windows #28

Seraphli opened this issue Jun 16, 2024 · 2 comments

Comments

@Seraphli
Copy link

The behavior of the y-axis for both the left and right joysticks is opposite. I am using left_joystick_float and right_joystick_float. On Windows, I need to set the y_value to 1.0 to move the character forward, but on Linux, I need to set it to -1.0.

@yannbouteiller
Copy link
Owner

yannbouteiller commented Jun 16, 2024

Windows has a very neat way of supporting gamepads, but Linux is messy. We tried to reproduce the evdev events of real DS4 controllers, and depending on the application these events are interpreted differently (for instance, pygame does not properly recognize the order and orientation of axes / buttons of real gamepads on Linux).

@Seraphli
Copy link
Author

Oh I forgot to metion that I'm using VX360Gamepad. Currently I just write another class to override joystick control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants