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

Use directional macros for gamepad buttons #7

Open
TriceHelix opened this issue Dec 24, 2023 · 0 comments
Open

Use directional macros for gamepad buttons #7

TriceHelix opened this issue Dec 24, 2023 · 0 comments

Comments

@TriceHelix
Copy link

Currently, the X and Y buttons on any XBox Gamepad map to BTN_X and BTN_Y. However, the Linux kernel expects X and Y to be located NORTH and WEST respectively (reference). This contradicts the physical layout of an XBox controller.

This commit simply replaces the macros BTN_A, BTN_B, BTN_X, and BTN_Y with BTN_SOUTH, BTN_EAST, BTN_WEST, and BTN_NORTH in order to fix the incorrect behaviour, effectively swapping X and Y.

I also created a PR for this on the original repo, however that seems to be more or less inactive.

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

1 participant