Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
wii:wii-remote_on_linux [2008/06/19 10:27] – gerald | wii:wii-remote_on_linux [2024/02/29 13:36] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Wii Remote / Wiimote ====== | ||
+ | |||
+ | MS-Win only: [[http:// | ||
+ | |||
+ | Vorbereitung: | ||
+ | [[wii: | ||
+ | |||
+ | Maus, Lightpen, etc. | ||
+ | [[wii: | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[wii: | ||
+ | |||
Quelle((http:// | Quelle((http:// | ||
====== Connect a Wii Remote to your PC Using Linux ====== | ====== Connect a Wii Remote to your PC Using Linux ====== | ||
Zeile 67: | Zeile 81: | ||
===== CWiid ===== | ===== CWiid ===== | ||
- | | + | |
+ | [[http:// | ||
- libcwiid - API to integrate the Wii Remote into your application | - libcwiid - API to integrate the Wii Remote into your application | ||
- wmgui - a graphical representation of all the a data gathered by the Wii Remote | - wmgui - a graphical representation of all the a data gathered by the Wii Remote | ||
Zeile 113: | Zeile 129: | ||
Now can use the use the Wii Remote the way you are used in the Wii menus! | Now can use the use the Wii Remote the way you are used in the Wii menus! | ||
+ | ---- | ||
+ | Quelle((http:// | ||
+ | |||
+ | It's worth noting that if the Wii is turned off, so is the sensor bar, so you have to have it turned on. This means that if your Wiimotes are paired with your console, when you press 1 and 2, they' | ||
+ | |||
+ | I'm currently working round this by pressing the red button under the battery cover instead of 1 and 2 to enter discoverable mode. I'm planning to go and pair one of my Wiimotes with someone else's console, so I won't have to do that. | ||
+ | |||
+ | If you want to change the config files, they' | ||
+ | I've made a new config file, which is basically a copy/paste from buttons and ir_ptr: | ||
+ | |||
+ | < | ||
+ | |||
+ | Plugin.ir_ptr.X = ~ABS_X | ||
+ | Plugin.ir_ptr.Y = ~ABS_Y | ||
+ | |||
+ | #buttons | ||
+ | |||
+ | Wiimote.A | ||
+ | Wiimote.B | ||
+ | Wiimote.Up | ||
+ | Wiimote.Down | ||
+ | Wiimote.Left | ||
+ | Wiimote.Right | ||
+ | Wiimote.Minus | ||
+ | Wiimote.Plus | ||
+ | Wiimote.Home | ||
+ | Wiimote.1 | ||
+ | Wiimote.2 | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | But I'm currently having a few problems with it. The up/ | ||
+ | |||
+ | |||
+ | There are a couple of things I'm not quite happy with here. The first is having to run wminput as a superuser. I'm sure it should be possible to run it as a normal limited user, and if anyone knows why it doesn' | ||
+ | |||
+ | Hope this howto' | ||
+ | |||
+ | I'm still fairly new to Linux (been using it about 8 months now), so my understanding is still a little limited. With that in mind, I'd appreciate it if anyone who knows a bit more about this than I do could tell me if I've done anything wrong, missed anything out, or done anything I didn't need to. I will, of course, update this post as required. | ||
+ | |||
+ | ---- | ||
+ | Quelle((http:// | ||
+ | |||
+ | 3) Wiiwanna Motte Dammiit WMD version 0.1.2 can be downloaded from here: http:// | ||
+ | Now the juicy part: Once extracted, navigate to / | ||
+ | |||
+ | Insert the adress of your Wii Remote into line 15 | ||
+ | Next step that has caused me to delay this tutorial by a few days, I apologise sincerely, I had problems with finding the directory of uinput in openSuSE, which turned out to be the same as in Feisty. Once you are sure you have uinput installed on your computer (should be pre-compiled in Ubuntu and OpenSuSE): | ||
+ | |||
+ | in line 37, change ' | ||
+ | |||
+ | | ||
+ | |||
+ | cd /etc/X11 (for the record, a shortcut I took was by pressing the Tab key, as in; cd /e TAB X TAB) become root cp xorg.conf xorg.conf.backupBeforeWii (making a copy of xorg.conf is always recommended, | ||
+ | |||
+ | In Section " | ||
+ | after the last Section " | ||
+ | save, exit and restart your machine. Exclamation | ||
+ | |||
+ | Open the console, cd to the folder /wmd-0.1.2, become root, type: modprobe uinput python WMD.py press buttons 1+2 on the Wii Remote with the batteries inserted. | ||
+ | Remember about the 2-4 sources of Infrared radiation I mentioned in the beginning. You can create an infrared LED bar by following guides in wiili.org forums. | ||
+ | |||
+ | |||
+ | If all went well, you should be a proud owner of a cool gadget to impress friends with. I justified this expense as a tool to navigate slides while doing presentations Smile | ||
+ | |||
+ | |||
+ | cWiid is an interface GUI for the Wii Remote. It also allows you to see the battery charge, accelometer, | ||
+ | Otherwise, from: http:// | ||
+ | become root and do: ./configure make make install | ||
+ | |||
+ | With all dependencies fulfilled, you can execute the program by typing wmgui. | ||
+ |