Library from text on a website.

I am trying to figure out how to get a library that is posted as text into a .h & .cpp file for the Arduino library. For example:
http://www.arduino.cc/playground/Main/WiiChuckClass
I looked at the library tutorial but still haven't cracked this.

It appears that everything up to the first #endif & [Get Code] link is for the header file. And that the code after that looks to be a sketch. I'm not sure what goes in the .cpp file.

My questions are:
What would I put in the .h library file?
What would I put in the .cpp library file?
What is the standard way of making these files?

Thank you!

Wire, I believe that that example code is simply one large header (.h) file, and that there is no .cpp file. This is legal C++ -- all the class methods are inline in the header -- but I would say that the usual strategy is to provide both a .h and a .cpp.

I haven't tried building a .cpp-less Arduino library, but I assume it works. If not, you could just build a .cpp file that had nothing in it except perhaps an #include "WiiChuck.h".

Mikal