| View previous topic :: View next topic |
| Author |
Message |
_H_o_L_E_
Joined: 04 Feb 2007 Posts: 2
Digg It |
Posted: Sun Feb 04, 2007 10:30 pm Post subject: Best API for Linux? |
|
|
Hi,
i am new to the wii and i am looking for a possibility to control a c-programm with the wii-mote-controller and i just want to ask what is the best api at this time? |
|
| Back to top |
|
 |
abstrakraft
Joined: 27 Dec 2006 Posts: 107
Digg It |
Posted: Tue Feb 06, 2007 2:04 am Post subject: |
|
|
As the author of CWiid, I'm obviously biased
The wiimote library in CWiid is more advanced and has a better architecture for real-time use (callback driven rather than polling). It is not well documented, although there are two programs which use the library included in CWiid. CWiid lacks speaker support.
libwiimote, which is the API behind perlwiimote, is simpler to use, but requires polling and periodic calls to an update function. To my knowledge, it is also not well documented, although the example programs are a bit simpler than those in CWiid. It has speaker support, although it is glitchy (in my experience).
So the answer to your question is: it depends. What are you looking to do? _________________ "I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid |
|
| Back to top |
|
 |
_H_o_L_E_
Joined: 04 Feb 2007 Posts: 2
Digg It |
Posted: Sat Feb 10, 2007 5:10 pm Post subject: |
|
|
hi again!
i tried your api sample programs and i think it is very good - thank you for this
but it is really hard to write own programs with it because there is no documentation.
can you give me the sourcecode for a simple program that just connects to the wiimote and reads a button / axis state?
it would be very nice.
ps: i would also like to contact you via email/icq or something else, is this possible? my email adress: hole@gmx.li |
|
| Back to top |
|
 |
abstrakraft
Joined: 27 Dec 2006 Posts: 107
Digg It |
Posted: Sat Feb 10, 2007 7:29 pm Post subject: |
|
|
My e-mail is on the CWiid wiki page, and in the CWiid package itself - feel free to contact me.
I know, documentation is sorely needed, but I haven't had time yet to do it. Sample program is a good idea - I'll throw something together for the next release, which I'm hoping will be this weekend, but that's looking more and more like a long shot. However, if anybody out there knows the formulation of Lebesgue measure and wants to do my homework for me....  _________________ "I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid |
|
| Back to top |
|
 |
tempalte
Joined: 16 Jan 2007 Posts: 8
Digg It |
Posted: Mon Feb 12, 2007 6:44 pm Post subject: |
|
|
thanks
chad |
|
| Back to top |
|
 |
tempalte
Joined: 16 Jan 2007 Posts: 8
Digg It |
Posted: Mon Feb 12, 2007 6:46 pm Post subject: |
|
|
Also give libcwiimote a try. It is just an API. The download includes some sample apps. You can get it from sourceforge
thanks
chad |
|
| Back to top |
|
 |
abstrakraft
Joined: 27 Dec 2006 Posts: 107
Digg It |
Posted: Mon Feb 12, 2007 6:48 pm Post subject: |
|
|
I believe libcwiimote was renamed from libwiimote to avoid conflicting with the libwiimote library that is part of CWiid. It's the same API I described as libwiimote (the API behind perlwiimote) above. _________________ "I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid |
|
| Back to top |
|
 |
|