ms-types 0.3.14 → 0.3.15
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
package/types/hid.d.ts
CHANGED
|
@@ -52,6 +52,14 @@ declare namespace hid {
|
|
|
52
52
|
*/
|
|
53
53
|
function resetPosition(orientation?: "PORTRAIT" | "LANDSCAPE"): void;
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* 移动指定坐标
|
|
57
|
+
* @param x 移动坐标的X轴
|
|
58
|
+
* @param y 移动坐标的Y轴
|
|
59
|
+
* @returns 操作是否成功
|
|
60
|
+
*/
|
|
61
|
+
function move(x: number, y: number): boolean;
|
|
62
|
+
|
|
55
63
|
/**
|
|
56
64
|
* 点击指定坐标
|
|
57
65
|
* @param x 点击坐标的X轴
|
|
@@ -54,6 +54,14 @@ declare namespace $HID {
|
|
|
54
54
|
*/
|
|
55
55
|
function 重置坐标(屏幕方向?: "PORTRAIT" | "LANDSCAPE"): 无返回值;
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* 移动指定坐标
|
|
59
|
+
* @param 坐标x 移动坐标的X轴
|
|
60
|
+
* @param 坐标y 移动坐标的Y轴
|
|
61
|
+
* @returns 操作是否成功
|
|
62
|
+
*/
|
|
63
|
+
function 移动(坐标x: 数字, 坐标y: 数字): 布尔值;
|
|
64
|
+
|
|
57
65
|
/**
|
|
58
66
|
* 点击指定坐标
|
|
59
67
|
* @param 坐标x 点击坐标的X轴
|