Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / C++

Writing a Sensor Driver for the Wiimote on Windows 7

Rate me:
Please Sign up or sign in to vote.
4.93/5 (61 votes)
16 Feb 2010CPOL30 min read 275.1K   16.7K   106  
How to write a Sensor driver that provides access to the 3-axis accelerometer on a Nintendo Wiimote on Windows 7
/*++

Module Name:

    Defines.h

Abstract:

    This module contains the common definitions used throughout the 
    project

--*/

#pragma once

#define DEVICE_PROTOCOL_VALUE                   L"Wiimote Protocol ver 1.00"
#define DEVICE_FIRMWARE_VERSION_VALUE           L"1.0.0.0"
#define DEVICE_POWER_LEVEL_VALUE                100
#define DEVICE_MODEL_VALUE                      L"RVL-003"
#define DEVICE_FRIENDLY_NAME_VALUE              L"Wiimote Sensor"
#define DEVICE_MANUFACTURER_VALUE               L"Nintendo Inc."
#define DEVICE_SERIAL_NUMBER_VALUE              L"ACN 060 566 083"
#define DEVICE_SUPPORTS_NONCONSUMABLE_VALUE     TRUE
#define READ_BUFFER_SIZE						22

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Microsoft
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions