Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - k^s

Pages: 1
Programmers Den / Re: Reformated WiimoteLib to WiimoteController
« on: January 12, 2008, 04:37:33 AM »
Today I've spent about an hour to document the HIDImports.cs, gathering the infromation from the MSDN and

Also I've "regioned" this code codument. Maybe is not a big  change, but now every programmer can know what is doing with every HID funciont fithout having to leave visual studio and consult google or msdn :)

Because isn't a big change, if decided to overwrite the first version at my ftp and don't control version by now.

Programmers Den / Reformated WiimoteLib to WiimoteController
« on: January 11, 2008, 04:19:43 PM »

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:

I 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.

Say Hi! / Hi, I'm k^s!
« on: January 11, 2008, 04:04:01 PM »
Hi all!

I'm k^s and i'm a young C# spanish programmer who has benn testing all three projects of Johnny Lee, and has enjoied with them.

I hope I can offer to you some C# development experience and help, if needed.

<bruce>Be pointers, my friends!</bruce>

Pages: 1