Skip to content

Commit

Permalink
docs: 修改 MultiSwipe 字段
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 5, 2024
1 parent 6f8a9ce commit e8b94a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 6 additions & 5 deletions docs/en_us/3.1-PipelineProtocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ Additional properties for this action:

### `Swipe`

Linear swipes.
Linear swipe.

Additional properties for this action:

Expand All @@ -468,12 +468,13 @@ Multi-finger linear swipe.

Additional properties for this action:

- `fingers`: *list<object,>*
Finger array. Required. Please note the json structure.
- `swipes`: *list<object,>*
Multi swipe array. Required.
The order of the array elements has no effect, only based on `starting`.

- `starting`: *uint*
Swipe start time, in milliseconds. Optional, default 0.
`MultiSwipe` additional field, the finger will start pressing and sliding linearly at the `starting` millisecond in this action.
`MultiSwipe` additional field, the swipe will start pressing at the `starting` millisecond in this action.

- `begin`: *true* | *string* | *array<int, 4>*
The starting point of the swipe. Optional, default is true. The values are the same as `Click`.`target`.
Expand All @@ -496,7 +497,7 @@ For example:
{
"A": {
"action": "MultiSwipe",
"fingers": [
"swipes": [
{
"begin": xxx,
"end": xxx
Expand Down
9 changes: 5 additions & 4 deletions docs/zh_cn/3.1-任务流水线协议.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,12 +478,13 @@ Orange 的 next 中,
该动作属性需额外部分字段:
- `fingers`: *list<object,>*
手指数组。必选。请注意 json 结构。
- `swipes`: *list<object,>*
多个滑动的数组。必选。
数组元素顺序没有影响,只基于 `starting` 确定顺序。
- `starting`: *uint*
滑动起始时间,单位毫秒。可选,默认 0 。
`MultiSwipe` 额外字段,该手指会在本 action 中第 `starting` 毫秒才开始按下并线性滑动
`MultiSwipe` 额外字段,该滑动会在本 action 中第 `starting` 毫秒才开始
- `begin`: *true* | *string* | *array<int, 4>*
滑动起点。可选,默认 true 。值同上述 `Click`.`target` 。
Expand All @@ -506,7 +507,7 @@ Orange 的 next 中,
{
"A": {
"action": "MultiSwipe",
"fingers": [
"swipes": [
{
"begin": xxx,
"end": xxx
Expand Down

0 comments on commit e8b94a3

Please sign in to comment.