0

i am able to use the wii remote controller, but i can't use it as a mouse.

I changed /usr/share/X11/xorg.conf.d/60-xorg-xwiimote.conf to:

Section "InputClass"
Identifier "Nintendo Wii Remote"
MatchProduct "Nintendo Wii Remote"
MatchDevicePath "/dev/input/event*"
Option "Ignore" "off"
Option "MotionSource" "ir"
Option "MapIRA" "left-button"
Option "MapIRB" "right-button"
Driver "xwiimote"   
EndSection

but i didn't work.

Any idea's ?

2 Answers2

1

To get the Left and Right click mouse buttons working you need to change

Option "MapIRA" "left-button"  ---> Option "MapA" "left-button"
Option "MapIRB" "right-button" ---> Option "MapB" "right-button"

To move the cursor you'll need to point the wii remote at a sensor bar if you don't already have one attached to the screen.

Dauntless
  • 11
  • 1
0

Actually, the MapIR...-style options are correct, if "MotionSource" "ir" is used. MapA etc. is correct, if "MotionSource" "ir" is not used.

I can successfully operate the Wiimote as a mouse replacement using exactly the same 60-xorg-xwiimote.conf as the OP.

You might not have xf86-input-xwiimote installed? It's not installey by default. You can fix this by running:

git clone https://github.com/xwiimote/xf86-input-xwiimote.git && cd xf86-input-xwiimote
./autogen.sh
./configure --prefix=/usr
make
make install

The last command must be run as root or using sudo. (Alternatively, create a .deb package with debhelper and install that using dpkg.)

Afterwards you must reboot (or at least restart your X server) for the changes to be effective.

Buttons should work out of the box. For proper motion detection, you need one bright IR source as a reference below or above your screen. (Two IR lights - as used by Nintendo in the original sensor bar - are fine as well.)