ms-types 0.9.38 → 0.9.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ms-types",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"vitepress": "^1.6.4",
|
|
20
20
|
"vitepress-theme-teek": "^1.6.2",
|
|
21
|
-
"wrangler": "^4.
|
|
21
|
+
"wrangler": "^4.125.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/types/hid.d.ts
CHANGED
|
@@ -117,6 +117,13 @@ declare namespace hid {
|
|
|
117
117
|
*/
|
|
118
118
|
function setActionDelay(milliseconds: number): boolean;
|
|
119
119
|
|
|
120
|
+
/**
|
|
121
|
+
* 设置移动完成后的等待毫秒。不调用时固件默认 40ms。
|
|
122
|
+
* @param milliseconds 0 关闭等待,大于 0 覆盖为指定毫秒,小于 0 恢复默认
|
|
123
|
+
* @returns 操作是否成功
|
|
124
|
+
*/
|
|
125
|
+
function setMoveDelay(milliseconds: number): boolean;
|
|
126
|
+
|
|
120
127
|
/**
|
|
121
128
|
* 移动指定坐标
|
|
122
129
|
* @param x 移动坐标的X轴
|
package/types/lua/hid.lua
CHANGED
|
@@ -50,6 +50,11 @@ function _HID.setJitterValue(value) end
|
|
|
50
50
|
--- @return boolean 成功
|
|
51
51
|
function _HID.setActionDelay(milliseconds) return true end
|
|
52
52
|
|
|
53
|
+
--- 设置移动完成后的等待毫秒。不调用时固件默认 40ms。
|
|
54
|
+
--- @param milliseconds integer 0 关闭等待,大于 0 覆盖毫秒,小于 0 恢复默认
|
|
55
|
+
--- @return boolean 成功
|
|
56
|
+
function _HID.setMoveDelay(milliseconds) return true end
|
|
57
|
+
|
|
53
58
|
--- 移动
|
|
54
59
|
--- @param x integer
|
|
55
60
|
--- @param y integer
|
|
@@ -119,6 +119,13 @@ declare namespace $HID {
|
|
|
119
119
|
*/
|
|
120
120
|
function 设置动作延迟(毫秒: 数字): 布尔值;
|
|
121
121
|
|
|
122
|
+
/**
|
|
123
|
+
* 设置移动完成后的等待毫秒。不调用时固件默认 40ms。
|
|
124
|
+
* @param 毫秒 0 关闭等待,大于 0 覆盖毫秒,小于 0 恢复默认
|
|
125
|
+
* @returns 操作是否成功
|
|
126
|
+
*/
|
|
127
|
+
function 设置移动延迟(毫秒: 数字): 布尔值;
|
|
128
|
+
|
|
122
129
|
/**
|
|
123
130
|
* 移动指定坐标
|
|
124
131
|
* @param 坐标x 移动坐标的X轴
|