ms-types 0.6.4 → 0.6.5
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
|
@@ -258,11 +258,21 @@ declare namespace hid {
|
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
260
|
* 按下按钮
|
|
261
|
-
* @param button 按钮 home 按下home键 volumeup 按下音量上键 volumedown 按下音量下键
|
|
261
|
+
* @param button 按钮 home 按下home键 volumeup 按下音量上键 volumedown 按下音量下键 mute 按下静音键 playpause 按下播放/暂停键 next 按下下一首键 prev 按按下一首键 eject 显示隐藏键盘
|
|
262
262
|
* @returns 按下按钮是否成功
|
|
263
263
|
* @example action.pressButton("home")
|
|
264
264
|
*/
|
|
265
|
-
function pressButton(
|
|
265
|
+
function pressButton(
|
|
266
|
+
button:
|
|
267
|
+
| "home"
|
|
268
|
+
| "volumeup"
|
|
269
|
+
| "volumedown"
|
|
270
|
+
| "mute"
|
|
271
|
+
| "playpause"
|
|
272
|
+
| "next"
|
|
273
|
+
| "prev"
|
|
274
|
+
| "eject",
|
|
275
|
+
): boolean;
|
|
266
276
|
|
|
267
277
|
/**
|
|
268
278
|
* 复制文本(Command+C)
|
|
@@ -262,11 +262,21 @@ declare namespace $HID {
|
|
|
262
262
|
|
|
263
263
|
/**
|
|
264
264
|
* 按下按钮
|
|
265
|
-
* @param 按键 按钮 home 按下home键 volumeup 按下音量上键 volumedown 按下音量下键
|
|
265
|
+
* @param 按键 按钮 home 按下home键 volumeup 按下音量上键 volumedown 按下音量下键 mute 按下静音键 playpause 按下播放/暂停键 next 按下下一首键 prev 按按下一首键 eject 显示隐藏键盘
|
|
266
266
|
* @returns 按下按钮是否成功
|
|
267
267
|
* @example $动作.按键("home")
|
|
268
268
|
*/
|
|
269
|
-
function 按键(
|
|
269
|
+
function 按键(
|
|
270
|
+
按键:
|
|
271
|
+
| "home"
|
|
272
|
+
| "volumeup"
|
|
273
|
+
| "volumedown"
|
|
274
|
+
| "mute"
|
|
275
|
+
| "playpause"
|
|
276
|
+
| "next"
|
|
277
|
+
| "prev"
|
|
278
|
+
| "eject",
|
|
279
|
+
): 布尔值;
|
|
270
280
|
|
|
271
281
|
/**
|
|
272
282
|
* 复制文本(Command+C)
|