WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Best API for Linux?

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Linux Wiimote
View previous topic :: View next topic  
Author Message
_H_o_L_E_



Joined: 04 Feb 2007
Posts: 2

Digg It
PostPosted: 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
View user's profile Send private message
abstrakraft



Joined: 27 Dec 2006
Posts: 107

Digg It
PostPosted: Tue Feb 06, 2007 2:04 am    Post subject:

As the author of CWiid, I'm obviously biased Very Happy
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
View user's profile Send private message
_H_o_L_E_



Joined: 04 Feb 2007
Posts: 2

Digg It
PostPosted: 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
View user's profile Send private message
abstrakraft



Joined: 27 Dec 2006
Posts: 107

Digg It
PostPosted: 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.... Wink
_________________
"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
View user's profile Send private message
tempalte



Joined: 16 Jan 2007
Posts: 8

Digg It
PostPosted: Mon Feb 12, 2007 6:44 pm    Post subject:

thanks
chad
Back to top
View user's profile Send private message Visit poster's website
tempalte



Joined: 16 Jan 2007
Posts: 8

Digg It
PostPosted: 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
View user's profile Send private message Visit poster's website
abstrakraft



Joined: 27 Dec 2006
Posts: 107

Digg It
PostPosted: 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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Linux Wiimote All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group