- 新增 wyhkm.dll 硬件盒子 COM 接口封装,支持键盘鼠标控制 - 修复 game_state_config.json 中 scan_region_width 过小导致截图越界的问题 - 添加鼠标路径录制器、硬件测试脚本等工具 - 更新多项配置默认值 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
46 lines
1.8 KiB
HTML
46 lines
1.8 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>HKMSetMousePosPrecision</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">HKMSetMousePosPrecision 设置鼠标坐标精度</td>
|
||
</tr>
|
||
<tr>
|
||
<th>功能</th>
|
||
<td>当系统设置中的鼠标移动速度过快时,鼠标坐标无法精确到每个像素,会在目标坐标附近抖动很久,这个时候就要调大鼠标精度,容许鼠标移动到目标坐标时有少量偏差。只对当前的设备对象有效。相关函数:<a href="HKMMoveTo.html">HKMMoveTo</a>、<a href="HKMMoveR2.html">HKMMoveR2</a>。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>参数</th>
|
||
<td class="canshu">参数1 设备对象:无类型指针。使用<a href="HKMOpen.html">HKMOpen</a>可以创建它。<br />
|
||
参数2 精度:无符号32位整型数。最大允许的坐标偏差量。默认值是0。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>返回值</th>
|
||
<td class="fanhui">布尔值。成功返回TRUE,失败返回FALSE。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>C语言<br />例子</th>
|
||
<td class="lizi">DWORD dwDevId;<br />
|
||
LPVOID lpDev;<br />
|
||
dwDevId=HKMSearchDevice(0x1234,0xABCD,0);<br />
|
||
if(dwDevId==0xFFFFFFFF)<br />
|
||
{<br /> printf("未找到无涯键鼠盒子\n");<br /> return 0;<br />
|
||
}<br />
|
||
lpDev=HKMOpen(dwDevId,0);<br />
|
||
if(lpDev==NULL)<br />
|
||
{<br />
|
||
printf("打开无涯键鼠盒子失败\n");<br />
|
||
return 0;<br />
|
||
}<br />
|
||
HKMSetMousePosPrecision(lpDev,1);<br />
|
||
HKMClose(lpDev);</td>
|
||
</tr>
|
||
</table>
|
||
</body>
|
||
</html> |