u1901
Participant
Post count: 6

[quote=82043]
My /etc/udev/rules.d/99-input.rules :
SUBSYSTEM==”input”, ATTRS{name}==”Nintendo Wii Remote Classic Controller”, MODE=”0666″, ENV{ID_INPUT_JOYSTICK}=”1″
How to “Nintendo Wii Remote Controller Classic” on js0?
Thanks
[/quote]
Last time I got my hand on this, the file was in /etc/udev.rules.d/ (like /etc/udev.rules.d/98-wiiclassic.conf), not /etc/udev/rules.d/, are you sure about this path ?
You can check if the property is correctly applied with sudo udevadm info --query=all --name=input/eventXX (https://hg.libsdl.org/SDL/file/704a0bfecf75/README-linux.txt#l57)
I think the property is not present, it looks like the problem I had, because everything else is working. You can also try with this simple program : https://hg.libsdl.org/SDL/file/b9663c77f5c9/src/joystick/linux/SDL_sysjoystick.c.

I don’t know if the used version of SDL2 has changed, but as said in my comment (https://github.com/retropie/RetroPie-Setup/issues/256#issuecomment-52950792), the version 2.0.1 doesn’t rely on this property (even though it says so). In this case you need a “corrected” hid_wiimote.so that reports the right axes so SDL2 detects it.