ms-types 0.7.3 → 0.7.4

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.7.3",
3
+ "version": "0.7.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/hid.d.ts CHANGED
@@ -122,6 +122,16 @@ declare namespace hid {
122
122
  duration?: number,
123
123
  jitter?: boolean,
124
124
  ): boolean;
125
+ /**
126
+ * 按下鼠标左键
127
+ * @returns 操作是否成功
128
+ */
129
+ function mouseDown(): boolean;
130
+ /**
131
+ * 抬起鼠标左键
132
+ * @returns 操作是否成功
133
+ */
134
+ function mouseUp(): boolean;
125
135
  /**
126
136
  * 随机点击
127
137
  * @param x1 区域左上角x坐标
@@ -124,6 +124,16 @@ declare namespace $HID {
124
124
  按下持续时间?: 数字,
125
125
  抖动?: 布尔值,
126
126
  ): 布尔值;
127
+ /**
128
+ * 按下鼠标左键
129
+ * @returns 操作是否成功
130
+ */
131
+ function 鼠标按下(): 布尔值;
132
+ /**
133
+ * 抬起鼠标左键
134
+ * @returns 操作是否成功
135
+ */
136
+ function 鼠标抬起(): 布尔值;
127
137
 
128
138
  /**
129
139
  * 随机点击