Uinput gamepad events not working

How are you? I hope you can help me with something, I have a problem from Artix Linux, I want to connect my Wii Remote to use it as a Gamepad, it does not want to work because the uinput module does not want to interpret the events associated with Gamepad Inputs, it does not catch for example "BTN_A" or others, but if I put another as "KEY_A" if it recognizes it but acts as a keyboard input in that case. What solution do you propose?

Note that I use WMinput, and I have already installed cwiid, wminput, and even fixed the uinput module in the kernel.

Upvotes: 1

Views: 432

Answers (1)

Frederik Siepe
Frederik Siepe

Reputation: 129

I had the same problem. In my case the error was that I tried to pass the button as an unsigned char. I realized later that BTN_A is not defined as 131 but as 0x131, so it doesn't fit into the unsigned char and gets truncated. Hope this helps!

Upvotes: 2

Related Questions