How to write kext Driver for Mac OS X? Apple provides many sample code, but I can't find any code that works actual hardware. This is kext driver for USB mouse. You can build the code work only for your mouse, test it, rewrite it, and understand how I/O kit will work.
Unfortunately, this document is available only in Japanese now. Let start from section 1.