zeth / inputs

Cross-platform Python support for keyboards, mice and gamepads
BSD 3-Clause "New" or "Revised" License
273 stars 88 forks source link

BTN_WEST and BTN_NORTH are switched in Linux #24

Closed cpagravel closed 6 years ago

cpagravel commented 6 years ago

I'm using a gamepad for input to a program on Windows and Linux and I've found that BTN_WEST and BTN_NORTH are swapped in Linux.

cpagravel commented 6 years ago

Update: I've noticed that the switching of the two buttons only happens if I run the script when not using root (sudo). If I use root, then it's fine.

zeth commented 6 years ago

What a pip, probably need to sort out your user permissions.

Your devices in /dev/input/ should have the "input" group, and then you need to add your user account to the input group. (If it is a differently named group, add your user to that).