Using the WiiMote as a mouse

I am running Pop_OS! and want to set up an old WiiMote I have lying around as a mouse. I have a USB-sensor bar, and I don’t have any issues connecting the remote to the computer, and the inputs seems to register just fine when running xwiishow 1 after the remote is connected. I am also able to use it perfectly fine as a WiiMote in the Dolphin emulator.

Now, I want it to function as a mouse, and being a fairly new Linux user, this is where I get confused. I am not entirely sure what I need to have happen in order to make this work, but I realize there must be some translation of the IR-sensor data and some way for Pop_OS! to understand that this should be a mouse.

When searching for it, a lot of different names are thrown around, so I am not entirely sure what I should be looking for. However, from the ArchWiki (wiki.archlinux.org/title/Wiimote) it seems I have three choices:

  1. MoltenGamepad (github.com/jgeumlek/MoltenGamepad), but this seems to only handle button presses? This is also something I would like, i.e. mapping buttons to Pause/Play media. But it is not the only thing I want, and mouse movement + clicks is higher in priority.
  2. An X11 input driver - this I have tried to install according to the instructions on their GitHub-page (github.com/xwiimote/xf86-input-xwiimote), but failed to do so. The last commit to this project was back in 2014. The ArchWiki states:

“xf86-input-xwiimote has support for mouse-emulation via IR using the Option “MotionSource” “ir””

… which is what I want, but then also directly underneath:

"There is currently no user-space application that enables mouse-emulation with the IR-sensor. If you need that, you should consider using the no longer supported cwiid approach. However, the xwiimote tools are under heavy development and will soon support IR mouse-emulation, too. "

… which confuses me.

  1. cwiid is also listed as an approach on the ArchWiki, but they also say that it should not be used since it is discontinued.

I’m sure the main issue here is a knowledge gap on my part, so if there is a solution that seems obvious to any of you, I would greatly appreciate the help in both getting this to work and in understanding my system better.

Jumuta,

With KDE connect, you can do something similar but with a smartphone rather than a wiimote

downhomechunk,
@downhomechunk@midwest.social avatar

Kde connect is so underrated.

cyberwolfie,

Yeah, I already have KDE Connect already setup, and it is quite nice. However, since this is for navigating a media station I would prefer to avoid having my smartphone nearby, as I will end up scrolling mindlessly like the drone I am. Getting the Wiimote working is also not entirely a project of utility, but something I consider to be an interesting and fun project, so while having options are good, I still want to accomplish this.

Jumuta,

I see, very nice.

Prunebutt,

The dolphinbar has that feature and you should note, that the wiimote sensor has quite a low resolution (I’m guessing 640x480). That was fine for an SD console. For 1080p/4K mouse control: not so much.

Just as a warning.

cyberwolfie,

Ah, that didn’t occur to me… good to know. I will use it mainly to navigate the Jellyfin UI, so hopefully it will be sufficient as it mostly consists of large images.

Good to know the feature is included in the Dolphinbar - I have been thinking about getting it in order to get the Wiimote working with Retroarch. But on the hardware I am running it on now, Wii-games are unplayable in Retroarch, so I have delayed that purchase.

hydroel,

Might be enough for touch-based interfaces though, or fingers don’t have a 4K resolution either.

SpaceNoodle,

Why wouldn’t you call it a “WiiMouse?”

cyberwolfie,

Hehe, I will from now on!

smorks,
@smorks@lemmy.ca avatar

it sounds to me according to wiki.archlinux.org/title/XWiimote that you might just need to run modprobe hid-wiimote and it just might work?

The second sentence says:

This driver is part of upstream Linux since version 3.1.

cyberwolfie,

I tried that, but nothing really happened (i.e. no output). hid-wiimote is one of several things I couldn’t fit into the whole picture I was trying to create for myself. I figured that, since I got it connected and could see the sensor data from the xwiishow command from xwiimote, that the module was loaded and I didn’t need to pay more attention to it.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • SuperSentai
  • feritale
  • KamenRider
  • All magazines