首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 一个C++函数接口库使用原始输入API(WinXP)

一个C++函数接口库使用原始输入API(WinXP)

资 源 简 介

Intro. wiimoteInput is based on Raw Input API of Windows XP. It provided a easy to use and event-driven interface for Wiimotes or other expansions in the future. The latest code is in the SVN respository. Quick Start ``` #include "wiimoteInput.h" // Initialization if (!wiiInput.init())) { std::cout << "wiimoteInput initialization faild." << std::endl; return; } wiiInput[0]->setThreshold(1); wiiInput[0]->setMode(WIIMOTEMODEACC); ... // Message Processing Function LRESULT CALLBACK Sample::WindowProc(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam) { switch (nMsg) { case WMWIIMOTEACCELER: WIIMOTE_ACCELEROMETER acc; wiiInput[wParam]->getAcceleration(acc); std::cout << "Xacc = " << acc.x << ", Yacc = " << acc.y << ", Zacc = %f" << acc.z << std::endl; break; ... case WM_INPUT: wiiI

文 件 列 表

wiiinputTest
wiiinputTest.cpp
wiiinputTest.h
wiiinputTest.sln
wiiinputTest.vcproj
wiiinputTest.xpm
VIP VIP
0.181604s