Use Game Controllers Via DirectX - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
This sample project includes two classes and a module... mControllers: Contains enumerations and support functions (required) cControllerList: Connects to DirectX and gets a list of all attached game controllers and initializes them for use. cController: Wrapper for a DirectX game controller instance The sample project's form (frmSample) demonstrates how to use a cControllerList object to initialize and receive input from all attached game controllers. Note: You will need to add a project reference to 'DirectX 8 for Visual Basic Type Library'.
这个简单的项目包含了两个类和一个模块。
mControllers:包含了枚举值。支持函数cControllerList:连接到DirectX ,得到一列附带的游戏控制器,并初始化它们以供使用。cController:封装了DirectX 游戏控制器实例。 样例工程窗体(frmSample)演示了如何使用cControllerList 对象来初始化和从附带的游戏控制器中检索输入。注意:你需要在项目中增加引用 'DirectX 8 for Visual Basic Type Library'。
来源: http://www.freevbcode.com/ShowCode.Asp?ID=6381 |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
没有发布任何的软件包! |
|