Click here to Skip to main content
15,881,248 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 274.8K   16.7K   106  
How to write a Sensor driver that provides access to the 3-axis accelerometer on a Nintendo Wiimote on Windows 7
//---------------------------------------------------------------------------
// SensorSkeleton.rc
//
// Copyright (c) Nerdworks, All Rights Reserved
//---------------------------------------------------------------------------


#include <windows.h>

#define VER_PRODUCTMAJORVERSION     		1
#define VER_PRODUCTMINORVERSION     		0
#define VER_PRODUCTBUILD					0
#define VER_PRODUCTBUILD_REVISION           104
#define	VER_PRODUCTVERSION					VER_PRODUCTMAJORVERSION,VER_PRODUCTMINORVERSION,VER_PRODUCTBUILD,VER_PRODUCTBUILD_REVISION
#define VER_PRODUCTVERSION_STR				"1.0"

#define VER_FILETYPE                		VFT_DLL
#define VER_FILESUBTYPE             		VFT_UNKNOWN
#define VER_FILEDESCRIPTION_STR     		"Wiimote Sensor Driver"
#define VER_INTERNALNAME_STR        		"WiimoteSensor.dll"
#define VER_ORIGINALFILENAME_STR    		"WiimoteSensor.dll"
#define VER_LEGALCOPYRIGHT_YEARS    		"2010"
#define VER_LEGALCOPYRIGHT_STR_WITH_YEARS 	"Copyright � 2009 Nerdworks. All rights reserved."
#define VER_LEGALCOPYRIGHT_STR				"Copyright � Nerdworks. All rights reserved."
#define VER_COMPANYNAME_STR					"Nerdworks"
#define VER_PRODUCTNAME_STR					VER_FILEDESCRIPTION_STR

/* default is nodebug */
#if DBG
#define VER_DEBUG							VS_FF_DEBUG
#else
#define VER_DEBUG							0
#endif

#define VER_FILEFLAGSMASK					VS_FFI_FILEFLAGSMASK
#define VER_FILEFLAGS						VER_DEBUG
#define VER_FILEOS							VOS_NT_WINDOWS32

#include "common.ver"

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