- 新增 wyhkm.dll 硬件盒子 COM 接口封装,支持键盘鼠标控制 - 修复 game_state_config.json 中 scan_region_width 过小导致截图越界的问题 - 添加鼠标路径录制器、硬件测试脚本等工具 - 更新多项配置默认值 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
70 lines
2.4 KiB
HTML
70 lines
2.4 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
|
||
<title>HKMSearchDeviceAll</title>
|
||
<link rel="stylesheet" type="text/css" href="css/help.css">
|
||
</head>
|
||
<body>
|
||
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="ts">
|
||
<tr>
|
||
<th width="50">名称</th>
|
||
<td class="name">HKMSearchDeviceAll 查找全部设备</td>
|
||
</tr>
|
||
<tr>
|
||
<th>功能</th>
|
||
<td>查找符合条件的全部无涯键鼠盒子。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>参数</th>
|
||
<td class="canshu">参数1 VID:无符号32位整型数。每个无涯键鼠盒子的值可能不一样,可用工具查看。值为65536时忽略此搜索条件,查找到的无涯键鼠盒子的VID可以为任意值。<br />
|
||
参数2 PID:无符号32位整型数。每个无涯键鼠盒子的值可能不一样,可用工具查看。值为65536时忽略此搜索条件,查找到的无涯键鼠盒子的PID可以为任意值。<br />
|
||
参数3 设备模式:无符号32位整型数。用于设置查找的无涯键鼠盒子的模式。可取值如下:<br />
|
||
<table width="236" border="1" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<th width="34" scope="col"><span class="thf">值</span></th>
|
||
<th width="196" scope="col"><span class="thf">说明</span></th>
|
||
</tr>
|
||
<tr>
|
||
<td>0</td>
|
||
<td>所有模式</td>
|
||
</tr>
|
||
<tr>
|
||
<td>1</td>
|
||
<td>键鼠模式</td>
|
||
</tr>
|
||
<tr>
|
||
<td>2</td>
|
||
<td>键盘模式</td>
|
||
</tr>
|
||
<tr>
|
||
<td>3</td>
|
||
<td>鼠标模式</td>
|
||
</tr>
|
||
</table></td>
|
||
</tr>
|
||
<tr>
|
||
<th>返回值</th>
|
||
<td class="fanhui">无符号32位整型数地址。成功返回设备ID的数组,可用<a href="HKMGetDataCount.html">HKMGetDataCount</a>函数获取数组元素数量。失败返回NULL。当不再使用这个字符串时,使用<a href="HKMFreeData.html">HKMFreeData</a>释放数组所占用的资源。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>C语言<br />例子</th>
|
||
<td class="lizi">LPDWORD pDevId;<br />
|
||
DWORD dwCount,i;<br />
|
||
pDevId=HKMSearchDeviceAll(0x1234,0xABCD,0);<br />
|
||
if(pDevId==NULL)<br />
|
||
{<br />
|
||
printf("查找设备失败\n");<br />
|
||
return 0;<br />
|
||
}<br />
|
||
dwCount=HKMGetDataCount(pDevId);<br />
|
||
printf("找到的设备数量:%u\n",dwCount);<br />
|
||
for(i=0;i<dwCount;i++)<br />
|
||
{<br />
|
||
printf("%08X\n",pDevId[i]);<br />
|
||
}<br />
|
||
HKMFreeData(pDevId);</td>
|
||
</tr>
|
||
</table>
|
||
</body>
|
||
</html> |