Wii Remote arrow keys not detected (Debian Linux, Flatpack install, Build 20.2.0)
#1
Hello, 

I am trying to set up a Wii Remote to navigate Kodi. I am only wanting button based navigation, I am not trying to emulate a mouse pointer or anything. 

I have the Wii Remote Controller plugin installed (Team Kodi - 1.0.27) All of the inputs work until I get to the Up button, at which point Kodi doesn't recognize any dpad input from the wiimote. I can press other buttons on the wiimote for up such as using the B button for up, but the arrows don't work at all. 

The Wii Remote is connected via bluetooth and the program xwiishow shows that all buttons are working and recognized. 

Image


I found the generated buttonmap in ~/.var/app/tv.kodi.Kodi/data/userdata/addon_data/peripheral.joystick/resources/buttonmaps/xml/linux/Nintendo_Wii_Remote_7b.xml 

The contents are short, so I'll just include the inline here: 

Nintendo_Wii_Remote_7b.xml:
<?xml version="1.0" ?>
<buttonmap>
   <device name="Nintendo Wii Remote" provider="linux" buttoncount="7">
       <controller id="game.controller.wiimote">
           <feature name="a" button="0" />
           <feature name="b" button="1" />
           <feature name="home" button="2" />
           <feature name="minus" button="4" />
           <feature name="one" button="5" />
           <feature name="plus" button="3" />
           <feature name="two" button="6" />
       </controller>
   </device>
</buttonmap>

It seems to only recognize 7 buttons, and is missing the 4 dpad/arrow buttons completely.
Reply
#2
evtest also reads all the buttons correctly. 

evtest results:
@caravan:~/src/wiimote-pad$ evtest  
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event13:     ASRock LED Controller
/dev/input/event14:     PC Speaker
/dev/input/event26:     Nintendo Wii Remote Accelerometer
/dev/input/event27:     Nintendo Wii Remote IR
/dev/input/event28:     Nintendo Wii Remote
Select the device event number [0-28]: 28
Input driver version is 1.0.1
Input device ID: bus 0x5 vendor 0x57e product 0x306 version 0x3a1c
Input device name: "Nintendo Wii Remote"
Supported events:
 Event type 0 (EV_SYN)
 Event type 1 (EV_KEY)
   Event code 103 (KEY_UP)
   Event code 105 (KEY_LEFT)
   Event code 106 (KEY_RIGHT)
   Event code 108 (KEY_DOWN)
   Event code 257 (BTN_1)
   Event code 258 (BTN_2)
   Event code 304 (BTN_SOUTH)
   Event code 305 (BTN_EAST)
   Event code 316 (BTN_MODE)
   Event code 407 (KEY_NEXT)
   Event code 412 (KEY_PREVIOUS)
 Event type 21 (EV_FF)
   Event code 80 (FF_RUMBLE)
   Event code 81 (FF_PERIODIC)
   Event code 88 (FF_SQUARE)
   Event code 89 (FF_TRIANGLE)
   Event code 90 (FF_SINE)
   Event code 96 (FF_GAIN)
Properties:
Testing ... (interrupt to exit)

Reply

Logout Mark Read Team Forum Stats Members Help
Wii Remote arrow keys not detected (Debian Linux, Flatpack install, Build 20.2.0)0