View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#4
Originally Posted by johnel View Post
BTW: How did you successfully get cwiid to cross-compile?
I simply compiled the Git master branch in Scratchbox (FREMANTLE_ARMEL target). You have to make sure that all build-dependencies (libbluetooth, etc..) are installed, then "aclocal", "autoconf" and "./configure". After that you can build it. Now, you can simply grab the source package (cwiid) and build it with "dpkg-buildpackage -rfakeroot".

Originally Posted by digitalvoid View Post
Is there also a possibility in the future to read out the camera of the wiimote?
Simply OR cwiid.RPT_IR to the "rpt_mode" of the WiiMote object. You then should have a "ir_src" key in the state of the object and that one should have a list with positions:

Code:
{'led': 1, 'ir_src': [{'pos': (475, 281), 'size': 1}, {'pos': (560, 663), 'size': 1}, {'pos': (723, 134), 'size': 3}, None], 'rpt_mode': 8, 'ext_type': 0, 'rumble': 0, 'error': 0, 'battery': 99}
 

The Following User Says Thank You to thp For This Useful Post: