ms-types 0.8.4 → 0.8.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
|
@@ -303,7 +303,7 @@ declare namespace hid {
|
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
305
|
* 按下按钮
|
|
306
|
-
* @param button 按钮 home 按下home键 volumeup 按下音量上键 volumedown 按下音量下键 mute 按下静音键 playpause 按下播放/暂停键 next 按下下一首键 prev
|
|
306
|
+
* @param button 按钮 home 按下home键 volumeup 按下音量上键 volumedown 按下音量下键 mute 按下静音键 playpause 按下播放/暂停键 next 按下下一首键 prev 按下上一首键 eject 显示隐藏键盘 globe 按下globe键 search 按下搜索键 brightnessup 调高屏幕亮度 brightnessdown 调低屏幕亮度 power 电源/锁屏键 menu Home/Menu键 snapshot 系统截图键
|
|
307
307
|
* @returns 按下按钮是否成功
|
|
308
308
|
* @example action.pressButton("home")
|
|
309
309
|
*/
|
|
@@ -318,7 +318,12 @@ declare namespace hid {
|
|
|
318
318
|
| "prev"
|
|
319
319
|
| "eject"
|
|
320
320
|
| "globe"
|
|
321
|
-
| "search"
|
|
321
|
+
| "search"
|
|
322
|
+
| "brightnessup"
|
|
323
|
+
| "brightnessdown"
|
|
324
|
+
| "power"
|
|
325
|
+
| "menu"
|
|
326
|
+
| "snapshot",
|
|
322
327
|
): boolean;
|
|
323
328
|
|
|
324
329
|
/**
|
|
@@ -307,7 +307,7 @@ declare namespace $HID {
|
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
309
|
* 按下按钮
|
|
310
|
-
* @param 按键 按钮 home 按下home键 volumeup 按下音量上键 volumedown 按下音量下键 mute 按下静音键 playpause 按下播放/暂停键 next 按下下一首键 prev
|
|
310
|
+
* @param 按键 按钮 home 按下home键 volumeup 按下音量上键 volumedown 按下音量下键 mute 按下静音键 playpause 按下播放/暂停键 next 按下下一首键 prev 按下上一首键 eject 显示隐藏键盘 globe 按下globe键 search 按下搜索键 brightnessup 调高屏幕亮度 brightnessdown 调低屏幕亮度 power 电源/锁屏键 menu Home/Menu键 snapshot 系统截图键
|
|
311
311
|
* @returns 按下按钮是否成功
|
|
312
312
|
* @example $动作.按键("home")
|
|
313
313
|
*/
|
|
@@ -322,7 +322,12 @@ declare namespace $HID {
|
|
|
322
322
|
| "prev"
|
|
323
323
|
| "eject"
|
|
324
324
|
| "globe"
|
|
325
|
-
| "search"
|
|
325
|
+
| "search"
|
|
326
|
+
| "brightnessup"
|
|
327
|
+
| "brightnessdown"
|
|
328
|
+
| "power"
|
|
329
|
+
| "menu"
|
|
330
|
+
| "snapshot",
|
|
326
331
|
): 布尔值;
|
|
327
332
|
|
|
328
333
|
/**
|