@rydr/game-sdk 1.18.0 → 1.19.0

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.
@@ -9,10 +9,15 @@
9
9
  *
10
10
  * The action buttons are intentionally neutral: `PRIMARY`/`SECONDARY` carry no
11
11
  * built-in meaning (confirm, back, reload, hide, …) — each game assigns its own.
12
- * On a Zwift controller the four face buttons collapse onto two actions
13
- * (`A`/`B` `PRIMARY`, `Y`/`Z` `SECONDARY`).
12
+ *
13
+ * The four Zwift face buttons are streamed ADDITIVELY: each press emits BOTH its
14
+ * raw hardware label (`A`/`B`/`Y`/`Z`, arranged right/bottom/top/left on the
15
+ * controller — for games that want all four distinctly) AND the neutral collapse
16
+ * (`A`/`B` → `PRIMARY`, `Y`/`Z` → `SECONDARY` — what most games listen for). A
17
+ * game subscribes to whichever vocabulary it wants. Phone / keyboard emit
18
+ * `PRIMARY`/`SECONDARY` for their two neutral action buttons.
14
19
  */
15
- export type ButtonName = "PRIMARY" | "SECONDARY" | "UP" | "DOWN" | "LEFT" | "RIGHT";
20
+ export type ButtonName = "PRIMARY" | "SECONDARY" | "UP" | "DOWN" | "LEFT" | "RIGHT" | "A" | "B" | "Y" | "Z";
16
21
  /** Press = "down", release = "up". A held button emits one of each. */
17
22
  export type ButtonEdge = "down" | "up";
18
23
  //# sourceMappingURL=buttons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../src/protocol/buttons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,WAAW,GACX,IAAI,GACJ,MAAM,GACN,MAAM,GACN,OAAO,CAAC;AAEZ,uEAAuE;AACvE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../src/protocol/buttons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,WAAW,GACX,IAAI,GACJ,MAAM,GACN,MAAM,GACN,OAAO,GAEP,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAC;AAER,uEAAuE;AACvE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC"}
@@ -8,5 +8,5 @@
8
8
  */
9
9
  export declare const RYDR_PROTOCOL_VERSION: 6;
10
10
  /** Semver of this SDK build. Sent in the handshake for telemetry/debugging. */
11
- export declare const RYDR_SDK_VERSION = "1.18.0";
11
+ export declare const RYDR_SDK_VERSION = "1.19.0";
12
12
  //# sourceMappingURL=version.d.ts.map
@@ -12,5 +12,5 @@
12
12
  // the `input.button` `name` values changed). Held-state query (`isDown`/`buttonsDown`) is additive.
13
13
  export const RYDR_PROTOCOL_VERSION = 6;
14
14
  /** Semver of this SDK build. Sent in the handshake for telemetry/debugging. */
15
- export const RYDR_SDK_VERSION = "1.18.0";
15
+ export const RYDR_SDK_VERSION = "1.19.0";
16
16
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rydr/game-sdk",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/bdefrenne/rydr-game-sdk.git"