摘要: 我是想获取游戏手柄的状态信息。。然后想通过编程修改游戏手柄状态信息(不知道如何实现)。。具体步骤如下我先是建立设备 Device dev;设备初始化需要GUID,所有枚举所有设备,由于我的游戏手柄只有1个,所有只取一个GUID Guid id = new Guid(); foreach (DeviceInstance di in Manager.GetDevices(DeviceClass.Gam... 阅读全文
posted @ 2009-10-30 21:47 会游泳dě鱼 阅读(2616) 评论(1) 推荐(1) 编辑
摘要: 通过上一篇“通过API实现C#对硬件的控制(一)”我们掌握了我们所需要的相关API知识点。为此,我们现在来构建我们自己的外部调用类:Externs。由于有上一篇的详细说明,该处不再一一说明相关的函数知识点。下面是该类的代码:using System;using System.Collections.Generic;using System.Text;using System... 阅读全文
posted @ 2009-10-30 11:14 会游泳dě鱼 阅读(416) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Threading;namespace ComDevice... 阅读全文
posted @ 2009-10-30 09:31 会游泳dě鱼 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 串口通信using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using Microsoft.VisualBasic;using Micr... 阅读全文
posted @ 2009-10-30 09:29 会游泳dě鱼 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 获取游戏设备using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using DemoGameContorl;using Microsof... 阅读全文
posted @ 2009-10-30 09:27 会游泳dě鱼 阅读(481) 评论(0) 推荐(0) 编辑