background preloader

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) Dim size As UInt32 = 0 ' get the buffer size for this device detail instance (returned in the size parameter) HIDImports.SetupDiGetDeviceInterfaceDetail(hDevInfo, diData, IntPtr.Zero, 0, size, IntPtr.Zero) UInt32 size = 0; That's it!

Liana br, Launching People Johnny Chung Lee - Projects - Wii As of June 2008, Nintendo has sold nearly 30 million Wii game consoles. 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. Any software on this page is primarily meant for developers and may not run without proper the development tools installed. NOTE: For most of these projects, you don't need the Nintendo Wii console. Coming Later: 3D tracking, and more.... Unfortunately, time constraints in the next couple of months have significantly reduced my ability to work on more projects.

Related: