Hi,
I've been analizying the source code of the wiiprojects and I relized that all of them have the sources of the WimmoteLib, so I decided to change a little the structure of the projects, in order to be a little smart with the code.
So I've created a new project called WiimoteController, which has all the files included in the WiimoteLib.
By the way I've made some changes to the code, because its structure seemed more to C++ programming structure than C#.
Ok, here are the list of changes i've made:
* Code outlined by regions.
* InputReport Added type Unknown with 0xFF value (it really doesn't belong to the Wiimote protocol, just added with programatically purpose only).
* WiimoteChangedEventArgs now has an InputReport parameter in order to indicate what has been changed when the WiimoteChangedEventHandler event is raised.
o Wiimote :
* ParseInput now returns InputReport instead of boolean. Now you can use "Unknown" instead of False in order to pass it to the WiimoteChangedEventHandler event, and when its catched you can determine by this parameter what to to.
* Deleted unnecesary castings to float.
* IsRemoteConnected now is static
* DecryptBuffer now is static.
* Added ActualReportType property to expose mReportType because was assigned but never used.
* Changed GetNumConnectRemotes() to property ConnectRemotes.
* Changed GetRemoteID() to property RemoteID.
The sources and compiled libreary can be downloaded from here:
http://www.kas.unexpected.es/Software/WiimoteController.rarI absolutely recommend all of you using ReSharper when programming with C#, it really brings yo to a new deveolpment era.
I will contact Brian Peek as soon as posible to inform him about this post.