Wiimote (Nintendo Wii Remote Control) support as joystick/mouse?
#1
Lightbulb 
wiki Wrote:# Xbox 360 controller on Linux - experimental device driver for Xbox360 Wireless/Wired controller on Linux computers.

* Interesting fact is that Linux kernel 2.6.19 supports for the original XBOX DDR pads (not Xbox360) out-of-the-box.

I noticed that you were contemplating support for 360 wireless controllers in the Linux version, and I was wondering if you'd also consider Wiimote support, not just as a pointer, but possibly also as a Joystick interface?

http://www.wiili.org/Wiimote

http://www.wiili.org/index.php/CWiid
Reply
#2
Which brings up an interesting point:

If we ever got Linux running on a Wii, could XBMC be used?

Ah, thought crossed off, the Wii uses ATi for graphics. With PC ATi support for linux being as crappy as it is, the Wii is hopeless.
Reply
#3
SneakerElph Wrote:Which brings up an interesting point:

If we ever got Linux running on a Wii, could XBMC be used?

Ah, thought crossed off, the Wii uses ATi for graphics. With PC ATi support for linux being as crappy as it is, the Wii is hopeless.

The biggest no-no would be the underpowerd wii hardware though.
We have the linux port because the xbox hardware is showing its age. The Wii is even less powerful then the xbox so that would be a crazy target.
  • ASRock ION 330 OpenELEC XBMC Frodo.
  • 47" LG HDTV1080p, AC3/DTS Receiver.
  • 96" Epson LCD 1080p projector
  • 2x Raspbery Pi with XBMC
Reply
#4
The Wii has almost the exact specs the Xbox does:
http://en.wikipedia.org/wiki/Wii
http://en.wikipedia.org/wiki/Xbox#Techni...ifications

Since it has more memory and would be running linux, which means making proper use of the GPU would be easier, it would probably be able to run XBMC as well as the Xbox. However, it still can't do high def video and has a PowerPC processor, so I'm not sure how easy XBMC would transfer over or if it's worth the effort.

The idea of using a Wiimote with XBMC-Linux is pretty cool, though. Would make a decent controller for most emulators as well.
Reply
#5
I cant think of a way using it comfortably within XBMC-Linux as anything but a very good pointing device.

Is there really anything in xbmc you want to control with the tilt? Gesture support might be good, like a flick to the left/right to scroll through items. I think though there are third party applications which would do this.
Reply
#6
Asteron Wrote:Is there really anything in xbmc you want to control with the tilt?
You could either use it for fast scrolling (page up/down) or you could do simple submenus. Tilt left and it brings up a context menu where you can tilt up/down to select the item you want. Tilt right and it hides the menu.

For video, music, and pictures you could do the same with context menus. Or you could do any number of other things (volume control, fast forward/rewide, zoom in/out, pan left/right, etc).

Alternatively, with certain skins (Xephyr, for example) you could use tilt to move sideways through a navigation and then tip forward to go into that submenu and tip backward to go to the previous submenu. It would be very intuitive if done properly.
Reply
#7
I think it would be better to asign these 'extra menus' to a keyboard button, and then use some python script if you want the wiimote to do those buttons,
the dev team doesn't have to be wasting their time on this, and certainly not now that we they are still working really hard on it!

Someone else can make that .py script Wink
Reply
#8
A very good pointer was all I was looking for. Enough buttons on there for a pretty good set of controls too. There will have to be some context sensitivity too..
Reply
#9
Well this is for Linux, right? There's lots of things you could do with the Wii remote.

Assuming Compiz-Fusion is installed, you could use the Wii remote as a quick means of rotating the desktop cube. The handy reason for this would be to quickly switch from full-screen XBMC, to a standard desktop. The function for doing this would be something like hold the remote sideways (like in Excite Truck), pull the trigger underneath, and then tilt the remote. Left rotates the cube left, right rotates right, etc.

If you built some semblance of file-management into XBMC, you could use the Wii remote as a way to select multiple files and move them around.

It was already suggested that tilting would make a good way to scroll up/down the list in menus.

I'm sure some homebrew games would come out that could use it.

You could build something like iTunes' "Cover Flow" function, that lets you choose and album and spin through an album listing, like a jukebox.

Lots of different possibilities. Doesn't the Wii remote already work in Linux (I know I've seen people playing around with Compiz-Fusion with the remote before). Would it really take a lot of effort to just build that functionality into XBMC somehow?
Reply
#10
Actually using Cwiid or WMD the Wii remote should work in XBMC fine. Since XBMC already has mouse support built in you can just use it like a mouse. I'm pretty sure you can also just map the extra buttons to whatever functions you like in either driver (the button will send a keyboard command).

The only thing that might be tricky is using the Wiimotes accelerometer -- but as the drivers mature I'm sure you'll be able to do things like emulate scroll, etc.
Reply
#11
I just wanted to confirm that I got CWiid working tonight. It functions as a mouse in X, the wii buttons can be assigned to whatever you like. There are a few bugs, as Cwiid is at v 0.6 right now, but it's promising. IR pointing functions are working...

I am having trouble getting it working on my second display but I think that I just did something stupid. I'm pretty excited to be able to use XBMC from the comfort of my couch without wires... this is getting better every day!

For a brief tutorial on building Cwiid go here:

http://ubuntuforums.org/showthread.php?t=535659
Reply
#12
I've used CWiid as well with no problems. What would be nice is a python script or something that runs on XBMC startup that pairs CWiid with the wiimote, so you don't have to run console commands or anything like that before running XBMC.

Any python developers interested in that? it's probably pretty easy to do, but i'm no coder.
Reply
#13
cwiid's winput now has a daemon mode and script that can automatically search for your Wiimote and connect when it's available. Thanks to XBMC's mouse support, I am able to successfully control the entire interface with the Wiimote.

The next step is to get 'gestures' supported. Twisting the Wiimote will be an easy gesture to support and should translate well to controlling our UI, in combination with button presses.

i.e.:

Hold A button and twist the wiimote like a volume knob to adjust volume.
Hold trigger and twist the wiimote to seek forward/back.

One of the above actions in the menu to scroll quickly -- or use relative height/Y position of the wiimote in space. i.e., hold the wiimote by your head for the top of the list, then move it down toward your waist for the bottom of the list. Anywhere in between would be a % position through a scrolling list.

A quick flick of the wiimote left or right could 'skip' instead of seek. Same with lists. Flick the wiimote up and down to page up/down.

A hundred buttons aren't necessary if gestures are intuitive.
Reply
#14
I'm using cwiid as well, but I doubt I'll ever use the motion sensor or IR pointer. I use the wiimote as a regular remote. Like someone said, there are alot of buttons on it and the best thing about it is that it's Bluetooth. No more looking insane while trying to point a crappy Xbox remote at an even crappier IR receiver.

XBMC needs a little reconfiguring in the keymap department though, I personally hate the fact that ESC is to go back to main menu, but X is Stop video. I have the B button (trigger) mapped to ESC and I want to use it to stop the video as well, instead I have to waste another button to map to X.

Hopefully I missed something in the keymap config and there are separate portions for the player, the menu etc. so ESC in dvdplayer can be mapped to one action while ESC in the menu is mapped to another.
Reply
#15
I don't see the problem with X being stop and esc being back, if you'd have both mapped to the same key you couldn't press back while watching a movie. It might seem a bit unusable because you wouldn't normally flip around the menu's while watching a movie but damn it would be annoying if you needed to go somewere and the video stoped and you would need to find the video and play and seek to were you were just because the 2 actions share the button Smile

Well, gesture support shouldn't be all that hard to make as the wiimote has a library and all so it shouldn't be to much programing.
Reply

Logout Mark Read Team Forum Stats Members Help
Wiimote (Nintendo Wii Remote Control) support as joystick/mouse?0