Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:RodrigoDornelles/codename-gamepa…
Browse files Browse the repository at this point in the history
…d into develop
  • Loading branch information
RodrigoDornelles committed Feb 4, 2024
2 parents 26431fc + 5489dcd commit 54a2d40
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ docker run --rm -v $(pwd):/app -w /app -it ove/bun bun run build

| html5 class | description |
| :---------: | :---------- |
| `gpz-dpad` | virtual digital pad for directional input. |
| `gpz-joy` | virtual stick or gamepad analog for directional input. |
| `gpz-btn` | virtual circle buttons with various console layouts. |

Expand All @@ -86,8 +87,12 @@ docker run --rm -v $(pwd):/app -w /app -it ove/bun bun run build

| html5 attribute | html5 class | description |
| :-------------: | :---------: |:----------- |
| `data-gpz-bind` | `gpz-joy`<br/>`gpz-btn` | keyboard to emulate<br/>_(follows anti-clockwise button pattern like:<kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd>)_ |

| `data-gpz-bind` | \* | keyboard to emulate<br/>_(follows anti-clockwise button pattern like:<kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd>)_ |
| `data-gpz-vibrate` | \* | vibration animation when pressed for feedback | feedback vibration when interact |
| `data-gpz-color` | `gpz-dpad`<br/>`gpz-btn` | button colors when is not pressed |
| `data-gpz-color-action` | `gpz-dpad`<br/>`gpz-btn` | buttons colors when is pressed |
| `data-gpz-size` | `gpz-dpad` | size of shapes elements |
| `data-gpz-offset` | `gpz-dpad` | size of gap in elements |
<!--
### extra classes
Expand Down

0 comments on commit 54a2d40

Please sign in to comment.