ms-types 0.1.3 → 0.1.6
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
|
@@ -215,19 +215,19 @@ declare namespace hid {
|
|
|
215
215
|
function back(): boolean;
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
|
-
*
|
|
218
|
+
* APP 切换器
|
|
219
219
|
* @returns 操作是否成功
|
|
220
220
|
*/
|
|
221
221
|
function recent(): boolean;
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
|
-
*
|
|
224
|
+
* 锁屏
|
|
225
225
|
* @returns 操作是否成功
|
|
226
226
|
*/
|
|
227
227
|
function lock(): boolean;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
*
|
|
230
|
+
* 解锁
|
|
231
231
|
* @returns 操作是否成功
|
|
232
232
|
*/
|
|
233
233
|
function unlock(): boolean;
|
|
@@ -279,4 +279,11 @@ declare namespace hid {
|
|
|
279
279
|
* @returns 剪切板内容
|
|
280
280
|
*/
|
|
281
281
|
function getClipboard(): string | null;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* 执行自定义按钮
|
|
285
|
+
* @param button 自定义按钮 5-11 对应 自定义快捷键 5-11
|
|
286
|
+
* @returns 操作是否成功
|
|
287
|
+
*/
|
|
288
|
+
function customButton(button: number): boolean;
|
|
282
289
|
}
|
|
@@ -219,13 +219,13 @@ declare namespace $HID {
|
|
|
219
219
|
function 返回(): 布尔值;
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
|
-
*
|
|
222
|
+
* APP 切换器
|
|
223
223
|
* @returns 操作是否成功
|
|
224
224
|
*/
|
|
225
225
|
function 最近应用(): 布尔值;
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
|
-
*
|
|
228
|
+
* 锁屏
|
|
229
229
|
* @returns 操作是否成功
|
|
230
230
|
*/
|
|
231
231
|
function 锁屏(): 布尔值;
|
|
@@ -283,4 +283,11 @@ declare namespace $HID {
|
|
|
283
283
|
* @returns 剪切板内容
|
|
284
284
|
*/
|
|
285
285
|
function 获取剪切板内容(): 字符串 | null;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* 执行自定义按钮
|
|
289
|
+
* @param button 自定义按钮 5-11 对应 自定义快捷键 5-11
|
|
290
|
+
* @returns 操作是否成功
|
|
291
|
+
*/
|
|
292
|
+
function 执行自定义按钮(button: 数字): 布尔值;
|
|
286
293
|
}
|