Skip to content

Commit

Permalink
Merge branch 'docs'
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Oct 15, 2023
2 parents 546f24a + aa55bf6 commit d3df1df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/src/content/docs/apis/press-down.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: pressDown

Press a button programmatically.

Analog Joysticks is not supported by now.
Analog Joysticks are not supported by now.

## Usage
```js
Expand All @@ -29,7 +29,7 @@ await nostalgist.pressDown({ button: 'a', player: 2 }) // press the button "a" o

+ #### `button`
**type:** `string`
The button you want to press. Can be: `up`,`down`,`left`,`right`,`select`,`start`,`a`,`b`,`x`,`y`.
The button you want to press. Can be: `up`,`down`,`left`,`right`,`select`,`start`,`a`,`b`,`x`,`y`,`l`,`l2`,`l3`,`r`,`r2`,`r3`.

The 'a', 'b', 'x', 'y' buttons here are using the SNES layout:
> <pre><code> x<br>y a<br> b</code></pre>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/apis/press-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: pressUp

Release a button programmatically.

Analog Joysticks is not supported by now.
Analog Joysticks are not supported by now.

## Usage
```js
Expand All @@ -29,7 +29,7 @@ await nostalgist.pressUp({ button: 'a', player: 2 }) // press the button "a" on

+ #### `button`
**type:** `string`
The button you want to release. Can be: `up`,`down`,`left`,`right`,`select`,`start`,`a`,`b`,`x`,`y`.
The button you want to press. Can be: `up`,`down`,`left`,`right`,`select`,`start`,`a`,`b`,`x`,`y`,`l`,`l2`,`l3`,`r`,`r2`,`r3`.

The 'a', 'b', 'x', 'y' buttons here are using the SNES layout:
> <pre><code> x<br>y a<br> b</code></pre>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/apis/press.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: press

Press a button and then release it programmatically. This is a shortcut for a combination of [`pressDown`](/apis/press-down) and [`pressUp`](/apis/press-up).

Analog Joysticks is not supported by now.
Analog Joysticks are not supported by now.

## Usage
```js
Expand All @@ -31,7 +31,7 @@ await nostalgist.press({ button: 'a', player: 2, time: 200 }) // press the butto

+ #### `button`
**type:** `string`
The button you want to press. Can be: `up`,`down`,`left`,`right`,`select`,`start`,`a`,`b`,`x`,`y`.
The button you want to press. Can be: `up`,`down`,`left`,`right`,`select`,`start`,`a`,`b`,`x`,`y`,`l`,`l2`,`l3`,`r`,`r2`,`r3`.

The 'a', 'b', 'x', 'y' buttons here are using the SNES layout:
> <pre><code> x<br>y a<br> b</code></pre>
Expand Down

0 comments on commit d3df1df

Please sign in to comment.