Wiimote (Nintendo Wii Remote Control) support as joystick/mouse?
#31
Thanks! Works! Nod
freaksworth is not connected to or in any other way affiliated with XBMC, Team XBMC, or the XBMC Foundation.
Reply
#32
Topfs2 Wrote:...2 ir sources aprox. 1.5dm spaced apart...

Lol...99% of Americans aren't going to know what a decimeter is.
Reply
#33
althekiller Wrote:Lol...99% of Americans aren't going to know what a decimeter is.

hehe, maybe not. It's a SI Unit but for the weird american way of doing it I'd say about 6 inches or so. It's the same width as the sensorbar Smile
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#34
here are some useful conversions that may help:

1 trillion microphones = 1 megaphone
2000 mockingbirds = two kilomockingbirds
10 cards = 1 decacards
1 millionth of a fish = 1 microfiche
453.6 graham crackers = 1 pound cake
1 trillion pins = 1 terrapin
10 rations = 1 decoration
100 rations = 1 C-ration
10 millipedes = 1 centipede
3 1/3 tridents = 1 decadent
2 monograms = 1 diagram
8 nickels = 2 paradigms
2 wharves = 1 paradox

sorry to be of topic, just wanted to throw some humor in
Reply
#35
I have done all of the apt-get as well as

1: svn checkout https://xbmc.svn.sourceforge.net/svnroot...xport/XBMC
2: cd XBMC
3: ./configure --enable-cwiid <-- (did not get Wii Remote: Yes)
4: ./build.sh CONFIGOPT=--enable-cwiid

and yet Wii Remote still does not work with XBMC, Ubuntu 7.10... Works with Wmgui though.

any help?
Reply
#36
The WiiRemote is moved to a EventClient, check out tools/EventClients/README.txt

Quote:The executable depends on libcwiid and libbluetooth and is compiled using
# g++ WiiRemote.cpp -lcwiid -o WiiRemote
The WiiRemote will emulate mouse by default but can be disabled by running with --disable-mouseemulation
The sensitivity of the mouseemulation can be set using the --deadzone_x or --deadzone_y where the number is
the percentage of the space is considered "dead", higher means more sensative.
Other commands can be listed with --help

The WiiRemote is mappable with keymap.xml where button id's are the following:
1 = Up
2 = Down
3 = Left
4 = Right
5 = A
6 = B
7 = Minus
8 = Home
9 = Plus
10 = 1
11 = 2
The name is by standard WiiRemote but this can be changed with the --joystick-name

So basicly what you need to do is (if XBMC is downloaded to your home-folder):
Quote:# cd
# cd XBMC/tools/EventClients/Clients/WiiRemote
# g++ WiiRemote.cpp -lcwiid -o WiiRemote
# ./WiiRemote

tip: do ./WiiRemote --help for more advanced commands
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#37
Been wrestling with this --enable-cwiid for half an hour, untill I decided to read the rest of this thread. Rolleyes
So I compile WiiRemote, now what. When I ./WiiRemote, it just sits there.
Do I have to start this manually before I run XBMC or can I put it somewhere so XBMC starts it automatically?
Sorry, but it's all not very clear I guess... Confused
Reply
#38
start it. start xbmc. just trying is hard i guess
Reply
#39
I'm at work, don't really have my Wii remote at my disposal now Wink

Wouldn't it be handy to have a folder where you can put things like this, so XBMC starts them automatically?
Reply
#40
the idea is to run them as services using init scripts. you can already grab the deb package with them which i suspect does this, look around the forums
Reply
#41
It should just sit there, if it doesnt you have no bluetooth. the event server is not feature complete and it will be able to wake clients when it is. still it will have to be running. some time i guess xbmc will have autostart abilities or atleast tell the clients to do so. anyway the wiki have a page, search for event server. im on my cellphone so i cant link Smile
BTW the deb wont run as a service automatic yet, noone have found a good script to put it in i think
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#42
Ok, I'm at home and it's working. Tongue
Thanks for the info Smile
Reply
#43
Cheered a little too soon... :/
I used the keymap.xml included with the v1.4 patch by Topfs2, copied it to /usr/share/xbmc/userdata and also to ~/.xbmc/userdata.
The WiiRemote connect just fine, I get the battery-level and all, but none of the buttons seem to work?
Reply
#44
It's working now, but I used the keymap.xml from Topfs2's post in http://forum.xbmc.org/showthread.php?tid=33397

@Topfs2: First of all, thanks Smile
Second, I don't quite understand what you mean by "it is like the one before the eventclients".
Can you explain a little?
Reply
#45
Any more progress made on this?
Reply

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