background preloader

Johnny Chug Lee

Facebook Twitter

Managed Library for Nintendo's Wiimote. In code, the process is as follows (shortened from the original code for space): ' read/write handle to the devicePrivate mHandle As SafeFileHandle ' a pretty .NET stream to read/write from/toPrivate mStream As FileStreamPrivate found As Boolean = FalsePrivate guid As GuidPrivate index As UInteger = 0 ' 1. get the GUID of the HID classHIDImports.HidD_GetHidGuid(guid) ' 2. get a handle to all devices that are part of the HID classDim hDevInfo As IntPtr = HIDImports.SetupDiGetClassDevs(guid, Nothing, IntPtr.Zero, HIDImports.DIGCF_DEVICEINTERFACE) ' | HIDImports.DIGCF_PRESENT); ' create a new interface data struct and initialize its sizeDim diData As HIDImports.SP_DEVICE_INTERFACE_DATA = New HIDImports.SP_DEVICE_INTERFACE_DATA()diData.cbSize = Marshal.SizeOf(diData) WiimoteProject - Welcome.

Johnny Chung Lee - Projects - Wii. As of June 2008, Nintendo has sold nearly 30 million Wii game consoles.

Johnny Chung Lee - Projects - Wii

This significantly exceeds the number of Tablet PCs in use today according to even the most generous estimates of Tablet PC sales. This makes the Wii Remote one of the most common computer input devices in the world. It also happens to be one of the most sophisticated. It contains a 1024x768 infrared camera with built-in hardware blob tracking of up to 4 points at 100Hz. This significantly out performs any PC "webcam" available today.