Ticket #63 (closed enhancement: fixed)
Wii Balance Board support patch + demo program
| Reported by: | TBBle | Owned by: | dsmith |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | libcwiid | Version: | |
| Keywords: | balance board | Cc: |
Description
I've created a patch against current SVN trunk (r179) which enables support for the Wii Balance Board. It treats the Wii Balance Board as just another extension controller, and exposes a single new method, cwiid_get_balance_cal. Apart from that, if you replace 'CLASSIC' with 'BALANCE' in the Classic Controller API, then you should be able to find the appropriate structures quite easily.
I've only updated the core libcwiid and the wmdemos and the Python binding. I'm hoping others will pick up the C# binding, wmgui and wminput. I may try to create a wminput plugin at a later date that transforms your lean direction into a joystick-type input direction.
I've also included a python script which can be used as a very basic weighing machine. I'm particularly keen that people try this to validate my calibration code. Also, I suspect it shows up either a bug in cwiid, or a bug in my understanding of the Python interface, as some times ext_type is not set in state, and sometimes it is. If the program fails to start because it doesn't think you have a Wii Balance Board, keep trying.

