|
项目描述: |
Use this class to setup and handle input from keyboard, mouse, and one joystick.
Instructions(DI only):
Derive a class from CDirectInput8
Override the input processing functions for each device used: HRESULT ProcessMouse(); HRESULT ProcessKB(); HRESULT ProcessJoy();(Don't forget to call base function at the beginning of each function.)
Call "InitDI(HWND hWnd, HINSTANCE hInstance, DWORD ToUse)"
The "ToUse" can take any combination of "USEMOUSE", "USEKEYBOARD", "USEJOYSTICK" flags depending on what devices you want to use
Direct Input 8 Wrapper
使用这个类配置和处理来自键盘,鼠标和游戏手柄的输入
介绍(DI only):
从CDirectInput8继承一个类
Override每个装置输入处理函数: HRESULT ProcessMouse();HRESULT ProcessKB();HRESULT ProcessJoy();(每个函数的开始不要忘记调用基函数.)
调用"InitDI"(HWND hWnd , HINSTANCE hInstance,DWORD ToUse)
"ToUse" 可以是 "USEMOUSE","USEKEYBOARD"标志的任何组合,它你想使用什么装置
来源: http://www.codeguru.com/directx/DirectInput8Wrapper.html |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
DirectInput8 |
 1.0  |
2004-04-19 |
下载 |
|
|