ps5-controller-webhid 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +14 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -9,12 +9,17 @@ reports or guessing browser gamepad indexes.
9
9
  The repository also includes **PS5 Controller Tester**, a live utility that
10
10
  consumes the exact same public client exported by the package.
11
11
 
12
+ **npm package:** [npmjs.com/package/ps5-controller-webhid](https://www.npmjs.com/package/ps5-controller-webhid)
13
+
12
14
  ## Install
13
15
 
14
16
  ```bash
15
17
  npm install ps5-controller-webhid
16
18
  ```
17
19
 
20
+ The npm page contains the latest version, dependency details, integrity
21
+ information, and downloadable package files.
22
+
18
23
  The package is browser-only and requires WebHID in a secure context
19
24
  (`localhost` or HTTPS).
20
25
 
@@ -70,6 +75,14 @@ export function ControllerStatus() {
70
75
  Create one client outside the component render path and call `dispose()` when
71
76
  the owning application shuts down.
72
77
 
78
+ ### Complete React + Vite example
79
+
80
+ See the
81
+ [`examples/react-vite` integration](https://github.com/ASHR12/ps5-controller-webhid/tree/main/examples/react-vite)
82
+ for a standalone application that installs the published npm package and
83
+ displays live buttons, sticks, triggers, motion, device details, and haptic
84
+ controls.
85
+
73
86
  ## Outputs
74
87
 
75
88
  ```ts
@@ -99,7 +112,7 @@ controller.resetOutputs()
99
112
  `PS5ControllerState` includes:
100
113
 
101
114
  - `connected`, `transport`, and report capability status
102
- - `sticks.left/right.x/y` from `-1` to `1`
115
+ - `sticks.left/right.x/y` from `-1` to `1` (`+x` right, `+y` up)
103
116
  - `triggers.left/right` from `0` to `1`
104
117
  - named digital inputs in `buttons`
105
118
  - calibrated gyroscope and accelerometer axes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ps5-controller-webhid",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Unofficial typed WebHID implementation for PS5 DualSense controllers.",
5
5
  "author": "ASHR12",
6
6
  "license": "MIT",