@openmouse/protocol 0.45.2 → 0.47.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.
Files changed (50) hide show
  1. package/dist/drivers/hitscan/hid.d.ts +98 -0
  2. package/dist/drivers/hitscan/hid.d.ts.map +1 -0
  3. package/dist/drivers/hitscan/hid.js +500 -0
  4. package/dist/drivers/hitscan/hid.js.map +1 -0
  5. package/dist/drivers/lamzu-atlantis/hid.d.ts +51 -1
  6. package/dist/drivers/lamzu-atlantis/hid.d.ts.map +1 -1
  7. package/dist/drivers/lamzu-atlantis/hid.js +202 -23
  8. package/dist/drivers/lamzu-atlantis/hid.js.map +1 -1
  9. package/dist/drivers/mouse-types.d.ts +7 -1
  10. package/dist/drivers/mouse-types.d.ts.map +1 -1
  11. package/dist/drivers/pulsar/pulsar-hid.d.ts.map +1 -1
  12. package/dist/drivers/pulsar/pulsar-hid.js +2 -0
  13. package/dist/drivers/pulsar/pulsar-hid.js.map +1 -1
  14. package/dist/drivers/registry.d.ts +3 -1
  15. package/dist/drivers/registry.d.ts.map +1 -1
  16. package/dist/drivers/registry.js +8 -0
  17. package/dist/drivers/registry.js.map +1 -1
  18. package/dist/drivers/scyrox/hid.d.ts +23 -0
  19. package/dist/drivers/scyrox/hid.d.ts.map +1 -0
  20. package/dist/drivers/scyrox/hid.js +31 -0
  21. package/dist/drivers/scyrox/hid.js.map +1 -0
  22. package/dist/drivers/vendors.d.ts +1 -0
  23. package/dist/drivers/vendors.d.ts.map +1 -1
  24. package/dist/drivers/vendors.js +5 -0
  25. package/dist/drivers/vendors.js.map +1 -1
  26. package/dist/hitscan/buttons.d.ts +57 -0
  27. package/dist/hitscan/buttons.d.ts.map +1 -0
  28. package/dist/hitscan/buttons.js +86 -0
  29. package/dist/hitscan/buttons.js.map +1 -0
  30. package/dist/hitscan/index.d.ts +140 -0
  31. package/dist/hitscan/index.d.ts.map +1 -0
  32. package/dist/hitscan/index.js +275 -0
  33. package/dist/hitscan/index.js.map +1 -0
  34. package/dist/hitscan/settings.d.ts +54 -0
  35. package/dist/hitscan/settings.d.ts.map +1 -0
  36. package/dist/hitscan/settings.js +91 -0
  37. package/dist/hitscan/settings.js.map +1 -0
  38. package/dist/index.d.ts +2 -0
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +2 -0
  41. package/dist/index.js.map +1 -1
  42. package/dist/lamzu/atlantis.d.ts +105 -7
  43. package/dist/lamzu/atlantis.d.ts.map +1 -1
  44. package/dist/lamzu/atlantis.js +142 -4
  45. package/dist/lamzu/atlantis.js.map +1 -1
  46. package/dist/scyrox/index.d.ts +50 -0
  47. package/dist/scyrox/index.d.ts.map +1 -0
  48. package/dist/scyrox/index.js +111 -0
  49. package/dist/scyrox/index.js.map +1 -0
  50. package/package.json +9 -1
@@ -60,6 +60,13 @@ export declare const LAMZU_ATLANTIS_COMMAND: {
60
60
  * `WriteActiveProfile` and exercised here on an Atlantis Mini 4K.
61
61
  */
62
62
  export declare const LAMZU_ATLANTIS_WRITE_ACTIVE_PROFILE = 15;
63
+ /**
64
+ * Restoring the factory settings, CompX's ClearSetting. Absent from
65
+ * `PULSAR_COMMAND` like the profile write above. Sent with no address and no
66
+ * payload; Scyrox's configurator then waits up to six seconds for the mouse to
67
+ * echo the command before it re-reads the flash image.
68
+ */
69
+ export declare const LAMZU_ATLANTIS_CLEAR_SETTINGS = 9;
63
70
  /**
64
71
  * Flash offsets. Everything in `PULSAR_FLASH` matched byte for byte on Lamzu
65
72
  * hardware — same firmware family, same layout — so those are inherited rather
@@ -75,6 +82,18 @@ export declare const LAMZU_ATLANTIS_FLASH: {
75
82
  readonly dpiStageColors: 44;
76
83
  readonly buttonActions: 96;
77
84
  readonly highPerformance: 185;
85
+ /**
86
+ * Sensor angle tuning: a signed degree count at 189 and, at 191, the switch
87
+ * the vendor configurator sets to 1 before its first angle write. Both are
88
+ * one-byte sealed fields, named AngleTune and AngleTuneState in Scyrox's
89
+ * flash map.
90
+ */
91
+ readonly angleTune: 189;
92
+ readonly angleTuneState: 191;
93
+ /** Where 3955-sensor firmware keeps the DPI stage values (six-byte records,
94
+ * each with its own checksum). The legacy `dpiValues` fields on those mice
95
+ * keep holding the factory defaults. */
96
+ readonly sensor3955DpiValues: 6912;
78
97
  readonly reportRate: 0;
79
98
  readonly currentDpi: 4;
80
99
  readonly liftOffDistance: 10;
@@ -88,6 +107,11 @@ export declare const LAMZU_ATLANTIS_FLASH: {
88
107
  readonly performanceTime: 183;
89
108
  };
90
109
  export declare const LAMZU_ATLANTIS_STAGE_STRIDE = 4;
110
+ /**
111
+ * Stride of the 3955-sensor DPI records: 16-bit x, 16-bit y, flags, checksum.
112
+ * See the layout type below for when a product uses these.
113
+ */
114
+ export declare const LAMZU_ATLANTIS_SENSOR3955_STAGE_STRIDE = 6;
91
115
  export declare const LAMZU_ATLANTIS_MAX_DPI_STAGES = 8;
92
116
  /**
93
117
  * Onboard profiles, 1-based in Lamzu's UI and 0-based on the wire. Probed on
@@ -108,18 +132,32 @@ export declare const LAMZU_ATLANTIS_MAX_TIMER_SECONDS: number;
108
132
  /** Sleep timeouts Lamzu's own configurator offers, in seconds. */
109
133
  export declare const LAMZU_ATLANTIS_SLEEP_OPTIONS: readonly [10, 30, 60, 300, 600, 1800];
110
134
  /**
111
- * Which of the two encodings of 1,000 Hz a transport wants. Stored per product
112
- * rather than derived from the rate ceiling: the 1K receiver tops out at
113
- * 1,000 Hz like the cable does, so a ceiling test would silently decide its
114
- * encoding for it, and no 1K receiver has been on hand to check.
135
+ * Which rate-byte encoding a product speaks. Stored per product rather than
136
+ * derived from the rate ceiling: the 1K receiver tops out at 1,000 Hz like the
137
+ * cable does, so a ceiling test would silently decide its encoding for it, and
138
+ * no 1K receiver has been on hand to check.
139
+ *
140
+ * "wired" and "receiver" are Lamzu's two encodings of 1,000 Hz (see the table
141
+ * below). "pulsar" is CompX's own encoding — the one `pulsarEncodePollingRate`
142
+ * implements — where 0x10 and up carry 2-8 kHz. Scyrox's generation uses it on
143
+ * both the cable and the dongle: its web configurator writes 0x10, 0x20 and
144
+ * 0x40 for 2,000, 4,000 and 8,000 Hz, and a V8S set to 4,000 Hz held 0x20.
145
+ */
146
+ export type LamzuAtlantisRateFamily = "wired" | "receiver" | "pulsar";
147
+ /**
148
+ * Which flash region a product's DPI stage values live in: the legacy
149
+ * four-byte fields at `dpiValues`, or the six-byte records at
150
+ * `sensor3955DpiValues` that CompX's 3955-sensor firmware moved them to.
115
151
  */
116
- export type LamzuAtlantisRateFamily = "wired" | "receiver";
152
+ export type LamzuAtlantisDpiLayout = "legacy" | "sensor3955";
117
153
  export interface LamzuAtlantisProduct {
118
154
  model: string;
119
155
  brand?: MouseStatus["brand"];
120
156
  wireless: boolean;
121
157
  pollingRates: readonly number[];
122
158
  rateFamily: LamzuAtlantisRateFamily;
159
+ /** Which flash region the stage values live in; defaults to "legacy". */
160
+ dpiLayout?: LamzuAtlantisDpiLayout;
123
161
  /** False until this exact product id has been exercised on hardware. */
124
162
  verified: boolean;
125
163
  /** Per-product sensor limits where they differ from Atlantis defaults. */
@@ -137,6 +175,21 @@ export interface LamzuAtlantisProduct {
137
175
  supportsRippleControl?: boolean;
138
176
  supportsPerformanceMode?: boolean;
139
177
  supportsHyperMode?: boolean;
178
+ /**
179
+ * When set, the lift-off byte is a scale of codes 1 to n at these heights in
180
+ * millimetres, rather than Lamzu's two stops. The status then carries
181
+ * `liftOffScale`, and the coarse `liftOffDistance` is the nearest stop.
182
+ */
183
+ liftOffMillimetres?: readonly number[];
184
+ /** Controls below default to off: no Lamzu unit has exercised them. */
185
+ supportsAngleTuning?: boolean;
186
+ supportsFactoryReset?: boolean;
187
+ /**
188
+ * Whether a sleep write also goes to `performanceTime` (flash 183). Scyrox's
189
+ * configurator writes every sleep value to both addresses, and a V8S it had
190
+ * configured held the same byte in each.
191
+ */
192
+ mirrorSleepToPerformanceTime?: boolean;
140
193
  }
141
194
  /**
142
195
  * Six models share these ids — Atlantis OG V2, Atlantis Mini, Atlantis Mini
@@ -147,10 +200,14 @@ export interface LamzuAtlantisProduct {
147
200
  * by making the user pick the model from a list, so this catalog names the
148
201
  * family rather than pretending to identify one model.
149
202
  *
150
- * 0xf50f (the mouse on its cable) is confirmed on hardware. The three receiver
203
+ * 0xf50f (the mouse on its cable) is confirmed on hardware. The two receiver
151
204
  * ids come from Lamzu's shipped device table and nothing more: no receiver has
152
205
  * been exercised, so neither their rate lists nor the transport itself is
153
206
  * established, and they stay `verified: false` until one is.
207
+ *
208
+ * 0xf517 was in that table too, but hardware showed it enumerating as a
209
+ * "Scyrox Turbo 8k dongle" that speaks this same protocol; it moved to
210
+ * `../scyrox/index.ts`.
154
211
  */
155
212
  export declare const LAMZU_ATLANTIS_PRODUCTS: ReadonlyMap<number, LamzuAtlantisProduct>;
156
213
  /**
@@ -165,6 +222,15 @@ export declare const LAMZU_ATLANTIS_PRODUCTS: ReadonlyMap<number, LamzuAtlantisP
165
222
  * `pulsarDecodePollingRate`, which reads 0x10 as 2,000 Hz.
166
223
  */
167
224
  export declare const LAMZU_ATLANTIS_POLLING_RATES: readonly [readonly [8, 125], readonly [4, 250], readonly [2, 500], readonly [1, 1000], readonly [16, 1000], readonly [32, 2000], readonly [64, 4000], readonly [128, 8000]];
225
+ /**
226
+ * CompX's own rate bytes, the mapping `pulsarEncodePollingRate` implements:
227
+ * below 0x10 they divide 1,000 Hz exactly as Lamzu's wired family does, and
228
+ * 0x10 to 0x40 step by 2,000 Hz. Read from Scyrox's web configurator
229
+ * (scyrox.net, S-center 3.1.0, which encodes `rate <= 1000 ? 1000 / rate :
230
+ * rate / 2000 * 16`) and confirmed on hardware: a V8S the configurator set to
231
+ * 4,000 Hz held 0x20 while a decoder using the Lamzu table read it as 2,000.
232
+ */
233
+ export declare const LAMZU_ATLANTIS_PULSAR_POLLING_RATES: readonly [readonly [8, 125], readonly [4, 250], readonly [2, 500], readonly [1, 1000], readonly [16, 2000], readonly [32, 4000], readonly [64, 8000]];
168
234
  export type LamzuAtlantisLiftOffDistance = "Low" | "Medium";
169
235
  /**
170
236
  * Only two lift-off heights exist on this generation, 1 mm and 2 mm, and they
@@ -225,7 +291,27 @@ export interface LamzuAtlantisDpiStage {
225
291
  * perfectly valid field that would then read as corrupt.
226
292
  */
227
293
  export declare function lamzuAtlantisDecodeDpiStage(field: Uint8Array): LamzuAtlantisDpiStage | null;
228
- export declare function lamzuAtlantisDecodePollingRate(raw: number): number | null;
294
+ /**
295
+ * Decodes a 3955 DPI record: `[xLo, xHi, yLo, yHi, flags, checksum]`. The
296
+ * value stores as `dpi / multiplier - 1`, 16 bits per axis, with flags bits
297
+ * 2-3 carrying x's value bits 16-17, bits 6-7 y's, and bits 0-1 / 4-5 each
298
+ * axis's band marker.
299
+ *
300
+ * Transcribed from the vendor configurator's read routine and checked
301
+ * against its encoder, which writes 1,600 DPI as `3f 06 3f 06 00 cb`. That is
302
+ * the encoder's output, not a capture: the vendor tool showed a V8S on 1,600
303
+ * while the legacy field at 12 said 400, but no OpenMouse build has read this
304
+ * region from hardware yet.
305
+ */
306
+ export declare function lamzuAtlantisDecodeDpiStage3955(field: Uint8Array): LamzuAtlantisDpiStage | null;
307
+ /**
308
+ * Encodes one DPI as a 3955 record, both axes in lockstep the way the vendor
309
+ * configurator writes them. A stage the vendor app had set to separate x and
310
+ * y comes back symmetric; asymmetric records are not attempted without
311
+ * hardware to confirm the flags layout for them.
312
+ */
313
+ export declare function lamzuAtlantisEncodeDpiStage3955(dpi: number): number[];
314
+ export declare function lamzuAtlantisDecodePollingRate(raw: number, family?: LamzuAtlantisRateFamily): number | null;
229
315
  /**
230
316
  * Picks the byte for a rate. Only 1,000 Hz is ambiguous, and the transport's
231
317
  * declared family decides it rather than anything inferred from the rate list.
@@ -233,6 +319,18 @@ export declare function lamzuAtlantisDecodePollingRate(raw: number): number | nu
233
319
  export declare function lamzuAtlantisEncodePollingRate(hertz: number, family: LamzuAtlantisRateFamily): number | null;
234
320
  export declare function lamzuAtlantisDecodeLiftOffDistance(raw: number): LamzuAtlantisLiftOffDistance | null;
235
321
  export declare function lamzuAtlantisEncodeLiftOffDistance(value: string): number | null;
322
+ /**
323
+ * The status shape for a product whose lift-off byte is a scale of codes 1 to
324
+ * n (see `liftOffMillimetres`), or null for a code outside it. The heights are
325
+ * uneven on the 3955 (0.7, 0.9, 1.2, 1.4, 1.6 mm), so every code's height
326
+ * travels with the scale rather than being interpolated.
327
+ */
328
+ export declare function lamzuAtlantisLiftOffScale(code: number, millimetres: readonly number[]): NonNullable<MouseStatus["liftOffScale"]> | null;
329
+ /** The coarse stop for a lift-off height, on the thresholds the Finalmouse scale uses. */
330
+ export declare function lamzuAtlantisNearestLiftOffStop(millimetres: number): NonNullable<MouseStatus["liftOffDistance"]>;
331
+ /** The angle-tune byte is a signed degree count. */
332
+ export declare function lamzuAtlantisDecodeAngleTuning(raw: number): number;
333
+ export declare function lamzuAtlantisEncodeAngleTuning(degrees: number): number;
236
334
  export interface LamzuAtlantisBattery {
237
335
  percent: number | null;
238
336
  millivolts: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"atlantis.d.ts","sourceRoot":"","sources":["../../src/lamzu/atlantis.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,eAAO,MAAM,wBAAwB,QAAS,CAAC;AAE/C,gFAAgF;AAChF,eAAO,MAAM,yBAAyB,QAAS,CAAC;AAChD,eAAO,MAAM,oBAAoB,IAAO,CAAC;AAEzC,8EAA8E;AAC9E,eAAO,MAAM,wBAAwB,IAA0B,CAAC;AAChE,eAAO,MAAM,4BAA4B,KAA8B,CAAC;AACxE,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;CAAiB,CAAC;AAErD;;;;;GAKG;AACH,eAAO,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AMZU_ATLANTIS_WRITE_ACTIVE_PROFILE = 0x0f;
51
+ /**
52
+ * Restoring the factory settings, CompX's ClearSetting. Absent from
53
+ * `PULSAR_COMMAND` like the profile write above. Sent with no address and no
54
+ * payload; Scyrox's configurator then waits up to six seconds for the mouse to
55
+ * echo the command before it re-reads the flash image.
56
+ */
57
+ export const LAMZU_ATLANTIS_CLEAR_SETTINGS = 0x09;
51
58
  /**
52
59
  * Flash offsets. Everything in `PULSAR_FLASH` matched byte for byte on Lamzu
53
60
  * hardware — same firmware family, same layout — so those are inherited rather
@@ -64,8 +71,25 @@ export const LAMZU_ATLANTIS_FLASH = {
64
71
  dpiStageColors: 44,
65
72
  buttonActions: 96,
66
73
  highPerformance: 185,
74
+ /**
75
+ * Sensor angle tuning: a signed degree count at 189 and, at 191, the switch
76
+ * the vendor configurator sets to 1 before its first angle write. Both are
77
+ * one-byte sealed fields, named AngleTune and AngleTuneState in Scyrox's
78
+ * flash map.
79
+ */
80
+ angleTune: 189,
81
+ angleTuneState: 191,
82
+ /** Where 3955-sensor firmware keeps the DPI stage values (six-byte records,
83
+ * each with its own checksum). The legacy `dpiValues` fields on those mice
84
+ * keep holding the factory defaults. */
85
+ sensor3955DpiValues: 6912,
67
86
  };
68
87
  export const LAMZU_ATLANTIS_STAGE_STRIDE = 4;
88
+ /**
89
+ * Stride of the 3955-sensor DPI records: 16-bit x, 16-bit y, flags, checksum.
90
+ * See the layout type below for when a product uses these.
91
+ */
92
+ export const LAMZU_ATLANTIS_SENSOR3955_STAGE_STRIDE = 6;
69
93
  export const LAMZU_ATLANTIS_MAX_DPI_STAGES = 8;
70
94
  /**
71
95
  * Onboard profiles, 1-based in Lamzu's UI and 0-based on the wire. Probed on
@@ -96,16 +120,19 @@ const RATES_4K = [500, 1000, 2000, 4000];
96
120
  * by making the user pick the model from a list, so this catalog names the
97
121
  * family rather than pretending to identify one model.
98
122
  *
99
- * 0xf50f (the mouse on its cable) is confirmed on hardware. The three receiver
123
+ * 0xf50f (the mouse on its cable) is confirmed on hardware. The two receiver
100
124
  * ids come from Lamzu's shipped device table and nothing more: no receiver has
101
125
  * been exercised, so neither their rate lists nor the transport itself is
102
126
  * established, and they stay `verified: false` until one is.
127
+ *
128
+ * 0xf517 was in that table too, but hardware showed it enumerating as a
129
+ * "Scyrox Turbo 8k dongle" that speaks this same protocol; it moved to
130
+ * `../scyrox/index.ts`.
103
131
  */
104
132
  export const LAMZU_ATLANTIS_PRODUCTS = new Map([
105
133
  [0xf50f, { model: "Atlantis", wireless: false, pollingRates: RATES_WIRED, rateFamily: "wired", verified: true }],
106
134
  [0xf50d, { model: "Atlantis", wireless: true, pollingRates: RATES_WIRED, rateFamily: "wired", verified: false }],
107
135
  [0xf510, { model: "Atlantis", wireless: true, pollingRates: RATES_4K, rateFamily: "receiver", verified: false }],
108
- [0xf517, { model: "Atlantis", wireless: true, pollingRates: RATES_4K, rateFamily: "receiver", verified: false }],
109
136
  ]);
110
137
  /**
111
138
  * The rate byte uses the encoding the other Lamzu generations use, where
@@ -122,6 +149,18 @@ export const LAMZU_ATLANTIS_POLLING_RATES = [
122
149
  [0x08, 125], [0x04, 250], [0x02, 500], [0x01, 1000],
123
150
  [0x10, 1000], [0x20, 2000], [0x40, 4000], [0x80, 8000],
124
151
  ];
152
+ /**
153
+ * CompX's own rate bytes, the mapping `pulsarEncodePollingRate` implements:
154
+ * below 0x10 they divide 1,000 Hz exactly as Lamzu's wired family does, and
155
+ * 0x10 to 0x40 step by 2,000 Hz. Read from Scyrox's web configurator
156
+ * (scyrox.net, S-center 3.1.0, which encodes `rate <= 1000 ? 1000 / rate :
157
+ * rate / 2000 * 16`) and confirmed on hardware: a V8S the configurator set to
158
+ * 4,000 Hz held 0x20 while a decoder using the Lamzu table read it as 2,000.
159
+ */
160
+ export const LAMZU_ATLANTIS_PULSAR_POLLING_RATES = [
161
+ [0x08, 125], [0x04, 250], [0x02, 500], [0x01, 1000],
162
+ [0x10, 2000], [0x20, 4000], [0x40, 8000],
163
+ ];
125
164
  /**
126
165
  * Only two lift-off heights exist on this generation, 1 mm and 2 mm, and they
127
166
  * encode as 1 and 2. The Pulsar driver's 3/1/2 → Low/Medium/High mapping would
@@ -207,14 +246,82 @@ export function lamzuAtlantisDecodeDpiStage(field) {
207
246
  y: axis(field[1] ?? 0, flags >> 6),
208
247
  };
209
248
  }
210
- export function lamzuAtlantisDecodePollingRate(raw) {
211
- return LAMZU_ATLANTIS_POLLING_RATES.find(([encoded]) => encoded === raw)?.[1] ?? null;
249
+ /**
250
+ * The 3955 sensor's two value bands, from the vendor configurator's sensor
251
+ * table. Below 42,002 DPI the value stores as-is; above, halved, with the
252
+ * band marker in both nibbles of the flags byte (DPIex 17 = 0x11).
253
+ */
254
+ const SENSOR3955_DPI_RANGES = [
255
+ { min: 1, flags: 0x00 },
256
+ { min: 42002, flags: 0x11 },
257
+ ];
258
+ /** One doubling per set bit in a flags nibble, exactly as the vendor decodes. */
259
+ function sensor3955BandMultiplier(flags) {
260
+ let multiplier = 1;
261
+ if (flags & 0x01)
262
+ multiplier *= 2;
263
+ if (flags & 0x02)
264
+ multiplier *= 2;
265
+ return multiplier;
266
+ }
267
+ /**
268
+ * Decodes a 3955 DPI record: `[xLo, xHi, yLo, yHi, flags, checksum]`. The
269
+ * value stores as `dpi / multiplier - 1`, 16 bits per axis, with flags bits
270
+ * 2-3 carrying x's value bits 16-17, bits 6-7 y's, and bits 0-1 / 4-5 each
271
+ * axis's band marker.
272
+ *
273
+ * Transcribed from the vendor configurator's read routine and checked
274
+ * against its encoder, which writes 1,600 DPI as `3f 06 3f 06 00 cb`. That is
275
+ * the encoder's output, not a capture: the vendor tool showed a V8S on 1,600
276
+ * while the legacy field at 12 said 400, but no OpenMouse build has read this
277
+ * region from hardware yet.
278
+ */
279
+ export function lamzuAtlantisDecodeDpiStage3955(field) {
280
+ if (field.length < LAMZU_ATLANTIS_SENSOR3955_STAGE_STRIDE || !lamzuAtlantisFieldIsIntact(field))
281
+ return null;
282
+ const flags = field[4] ?? 0;
283
+ const decode = (low, high, extraBits, bandFlags) => (((extraBits << 16) | (high << 8) | low) + 1) * sensor3955BandMultiplier(bandFlags);
284
+ return {
285
+ x: decode(field[0] ?? 0, field[1] ?? 0, (flags >> 2) & 0x03, flags & 0x03),
286
+ y: decode(field[2] ?? 0, field[3] ?? 0, (flags >> 6) & 0x03, (flags >> 4) & 0x03),
287
+ };
288
+ }
289
+ /**
290
+ * Encodes one DPI as a 3955 record, both axes in lockstep the way the vendor
291
+ * configurator writes them. A stage the vendor app had set to separate x and
292
+ * y comes back symmetric; asymmetric records are not attempted without
293
+ * hardware to confirm the flags layout for them.
294
+ */
295
+ export function lamzuAtlantisEncodeDpiStage3955(dpi) {
296
+ let band = SENSOR3955_DPI_RANGES.length - 1;
297
+ while (band > 0 && dpi < SENSOR3955_DPI_RANGES[band].min)
298
+ band -= 1;
299
+ const range = SENSOR3955_DPI_RANGES[band];
300
+ const value = Math.floor(dpi / sensor3955BandMultiplier(range.flags)) - 1;
301
+ const extraBits = value >> 16;
302
+ const flags = (extraBits << 2) | (extraBits << 6) | range.flags | (range.flags << 4);
303
+ return lamzuAtlantisSealField([
304
+ value & 0xff,
305
+ (value >> 8) & 0xff,
306
+ value & 0xff,
307
+ (value >> 8) & 0xff,
308
+ flags & 0xff,
309
+ ]);
310
+ }
311
+ export function lamzuAtlantisDecodePollingRate(raw, family = "wired") {
312
+ const table = family === "pulsar"
313
+ ? LAMZU_ATLANTIS_PULSAR_POLLING_RATES
314
+ : LAMZU_ATLANTIS_POLLING_RATES;
315
+ return table.find(([encoded]) => encoded === raw)?.[1] ?? null;
212
316
  }
213
317
  /**
214
318
  * Picks the byte for a rate. Only 1,000 Hz is ambiguous, and the transport's
215
319
  * declared family decides it rather than anything inferred from the rate list.
216
320
  */
217
321
  export function lamzuAtlantisEncodePollingRate(hertz, family) {
322
+ if (family === "pulsar") {
323
+ return LAMZU_ATLANTIS_PULSAR_POLLING_RATES.find(([, rate]) => rate === hertz)?.[0] ?? null;
324
+ }
218
325
  const candidates = LAMZU_ATLANTIS_POLLING_RATES.filter(([, rate]) => rate === hertz);
219
326
  if (candidates.length === 0)
220
327
  return null;
@@ -229,6 +336,37 @@ export function lamzuAtlantisDecodeLiftOffDistance(raw) {
229
336
  export function lamzuAtlantisEncodeLiftOffDistance(value) {
230
337
  return LAMZU_ATLANTIS_LIFT_OFF_DISTANCES.find(([, name]) => name === value)?.[0] ?? null;
231
338
  }
339
+ /**
340
+ * The status shape for a product whose lift-off byte is a scale of codes 1 to
341
+ * n (see `liftOffMillimetres`), or null for a code outside it. The heights are
342
+ * uneven on the 3955 (0.7, 0.9, 1.2, 1.4, 1.6 mm), so every code's height
343
+ * travels with the scale rather than being interpolated.
344
+ */
345
+ export function lamzuAtlantisLiftOffScale(code, millimetres) {
346
+ const height = millimetres[code - 1];
347
+ if (!Number.isInteger(code) || height === undefined)
348
+ return null;
349
+ return {
350
+ value: code,
351
+ min: 1,
352
+ max: millimetres.length,
353
+ millimetres: height,
354
+ minMillimetres: millimetres[0],
355
+ maxMillimetres: millimetres[millimetres.length - 1],
356
+ millimetresByCode: [...millimetres],
357
+ };
358
+ }
359
+ /** The coarse stop for a lift-off height, on the thresholds the Finalmouse scale uses. */
360
+ export function lamzuAtlantisNearestLiftOffStop(millimetres) {
361
+ return millimetres < 1 ? "Low" : millimetres < 1.5 ? "Medium" : "High";
362
+ }
363
+ /** The angle-tune byte is a signed degree count. */
364
+ export function lamzuAtlantisDecodeAngleTuning(raw) {
365
+ return raw >= 0x80 ? raw - 0x100 : raw;
366
+ }
367
+ export function lamzuAtlantisEncodeAngleTuning(degrees) {
368
+ return degrees & 0xff;
369
+ }
232
370
  /**
233
371
  * Battery reply payload: [percent, charging, millivolts high, millivolts low].
234
372
  *
@@ -1 +1 @@
1
- {"version":3,"file":"atlantis.js","sourceRoot":"","sources":["../../src/lamzu/atlantis.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,2BAA2B,EAC3B,uBAAuB,EACv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A2B,CAAC,KAAa,EAAE,OAAmB;IAC5E,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IACpC,OAAO,GAAG,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;AAC3F,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,QAAgB,EAAE,SAAiB;IACtE,IAAI,QAAQ,KAAK,wBAAwB;QAAE,OAAO,SAAS,CAAC;IAC5D,OAAO,uBAAuB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAChD,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { LamzuAtlantisProduct } from "../lamzu/atlantis.js";
2
+ /**
3
+ * Scyrox's CompX generation — vendor id 0x3554 and the report-8 flash
4
+ * protocol this package already implements for the Lamzu Atlantis generation,
5
+ * the Pulsar 4K receiver, VGN and Teevolution. Scyrox is one more brand on
6
+ * CompX's ODM stack, so this module adds only the product catalog and the
7
+ * device identity; the transport, flash layout and field sealing are
8
+ * inherited from the shared family modules. Two things are not inherited:
9
+ * the rate bytes follow CompX's own table, not Lamzu's (both products declare
10
+ * the "pulsar" rate family), and the 3955 sensor keeps its DPI stage values
11
+ * in a region of their own rather than the legacy fields (both declare
12
+ * dpiLayout "sensor3955").
13
+ *
14
+ * Verified read-only on a Scyrox V8S, mouse firmware v5.07: the wired mouse
15
+ * 0x3554:0xf515 and its "Scyrox Turbo 8k dongle" receiver 0x3554:0xf517 — see
16
+ * docs/scyrox-v8s-testing.md. Every other flash field the Atlantis client
17
+ * reads decoded cleanly on both transports; no write has been exercised yet.
18
+ */
19
+ export declare const SCYROX_VENDOR_ID = 13652;
20
+ /** The V8S identity from the command 0x01 handshake, read on wired 0xf515. */
21
+ export declare const SCYROX_V8S_CID = 62;
22
+ export declare const SCYROX_V8S_MID = 5;
23
+ /** Product ids this brand owns on CompX's shared vendor id. */
24
+ export declare const SCYROX_PRODUCT_IDS: readonly number[];
25
+ /**
26
+ * The "20K" switch: 20,000 FPS sensor scanning, which the vendor configurator
27
+ * offers in advanced settings and disables until Competitive Mode (this
28
+ * driver's performance mode) is on. A one-byte field at flash 8, named
29
+ * Scyrox20K in the vendor's own flash map.
30
+ */
31
+ export declare const SCYROX_V8S_20K_ADDRESS = 8;
32
+ /**
33
+ * The 3955's five lift-off heights, as codes 1-5 of the shared lift-off byte
34
+ * (flash 10). From the configurator's UI strings, which list them per sensor;
35
+ * the V8S read code 2 (0.9 mm) on both transports.
36
+ */
37
+ export declare const SCYROX_V8S_LIFT_OFF_MILLIMETRES: readonly [0.7, 0.9, 1.2, 1.4, 1.6];
38
+ /** A Scyrox product; the descriptor shape is the shared Atlantis one. */
39
+ export type ScyroxProduct = LamzuAtlantisProduct;
40
+ /**
41
+ * Both transports speak CompX's own rate bytes (`rateFamily: "pulsar"`): the
42
+ * vendor configurator writes 0x10, 0x20 and 0x40 for 2,000, 4,000 and 8,000 Hz,
43
+ * and the mouse held 0x20 while reporting 4,000 Hz. Neither Lamzu family fits —
44
+ * "wired" would write 0x20 for 2,000 Hz, which this firmware reads as 4,000,
45
+ * and the read-back would then confirm a rate the mouse is not on, while
46
+ * "receiver" would write 0x10 for 1,000 Hz, which it reads as 2,000.
47
+ */
48
+ export declare const SCYROX_PRODUCTS: ReadonlyMap<number, ScyroxProduct>;
49
+ export declare function scyroxProduct(vendorId: number, productId: number): ScyroxProduct | undefined;
50
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scyrox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,QAAS,CAAC;AAEvC,8EAA8E;AAC9E,eAAO,MAAM,cAAc,KAAO,CAAC;AACnC,eAAO,MAAM,cAAc,IAAO,CAAC;AAEnC,+DAA+D;AAC/D,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAAqB,CAAC;AAEtE;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,oCAAqC,CAAC;AAElF,yEAAyE;AACzE,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAUjD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAqD7D,CAAC;AAEH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAG5F"}
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Scyrox's CompX generation — vendor id 0x3554 and the report-8 flash
3
+ * protocol this package already implements for the Lamzu Atlantis generation,
4
+ * the Pulsar 4K receiver, VGN and Teevolution. Scyrox is one more brand on
5
+ * CompX's ODM stack, so this module adds only the product catalog and the
6
+ * device identity; the transport, flash layout and field sealing are
7
+ * inherited from the shared family modules. Two things are not inherited:
8
+ * the rate bytes follow CompX's own table, not Lamzu's (both products declare
9
+ * the "pulsar" rate family), and the 3955 sensor keeps its DPI stage values
10
+ * in a region of their own rather than the legacy fields (both declare
11
+ * dpiLayout "sensor3955").
12
+ *
13
+ * Verified read-only on a Scyrox V8S, mouse firmware v5.07: the wired mouse
14
+ * 0x3554:0xf515 and its "Scyrox Turbo 8k dongle" receiver 0x3554:0xf517 — see
15
+ * docs/scyrox-v8s-testing.md. Every other flash field the Atlantis client
16
+ * reads decoded cleanly on both transports; no write has been exercised yet.
17
+ */
18
+ export const SCYROX_VENDOR_ID = 0x3554;
19
+ /** The V8S identity from the command 0x01 handshake, read on wired 0xf515. */
20
+ export const SCYROX_V8S_CID = 0x3e;
21
+ export const SCYROX_V8S_MID = 0x05;
22
+ /** Product ids this brand owns on CompX's shared vendor id. */
23
+ export const SCYROX_PRODUCT_IDS = [0xf515, 0xf517];
24
+ /**
25
+ * The "20K" switch: 20,000 FPS sensor scanning, which the vendor configurator
26
+ * offers in advanced settings and disables until Competitive Mode (this
27
+ * driver's performance mode) is on. A one-byte field at flash 8, named
28
+ * Scyrox20K in the vendor's own flash map.
29
+ */
30
+ export const SCYROX_V8S_20K_ADDRESS = 8;
31
+ /**
32
+ * The 3955's five lift-off heights, as codes 1-5 of the shared lift-off byte
33
+ * (flash 10). From the configurator's UI strings, which list them per sensor;
34
+ * the V8S read code 2 (0.9 mm) on both transports.
35
+ */
36
+ export const SCYROX_V8S_LIFT_OFF_MILLIMETRES = [0.7, 0.9, 1.2, 1.4, 1.6];
37
+ /**
38
+ * Polling rates Scyrox's web configurator offers on the V8S. The 1,000 Hz byte
39
+ * (0x01) was read on the wire on both transports, and the 4,000 Hz byte (0x20)
40
+ * was read from a mouse the configurator had set to 4,000 Hz; the rest of the
41
+ * byte table is the configurator's own encoder.
42
+ */
43
+ const RATES_V8S = [125, 250, 500, 1000, 2000, 4000, 8000];
44
+ /**
45
+ * Both transports speak CompX's own rate bytes (`rateFamily: "pulsar"`): the
46
+ * vendor configurator writes 0x10, 0x20 and 0x40 for 2,000, 4,000 and 8,000 Hz,
47
+ * and the mouse held 0x20 while reporting 4,000 Hz. Neither Lamzu family fits —
48
+ * "wired" would write 0x20 for 2,000 Hz, which this firmware reads as 4,000,
49
+ * and the read-back would then confirm a rate the mouse is not on, while
50
+ * "receiver" would write 0x10 for 1,000 Hz, which it reads as 2,000.
51
+ */
52
+ export const SCYROX_PRODUCTS = new Map([
53
+ [0xf515, {
54
+ brand: "Scyrox",
55
+ model: "V8S",
56
+ wireless: false,
57
+ pollingRates: RATES_V8S,
58
+ rateFamily: "pulsar",
59
+ // The 3955 sensor keeps the stage values in six-byte records at flash
60
+ // 6912; the legacy fields at 12 still hold the factory defaults, which is
61
+ // why a driver reading them displayed 400 where the mouse was on 1,600.
62
+ dpiLayout: "sensor3955",
63
+ verified: true,
64
+ minDpi: 50,
65
+ maxDpi: 50000,
66
+ dpiStep: 50,
67
+ // Scyrox's configurator offers at most five DPI presets.
68
+ maxDpiStages: 5,
69
+ // The lift-off byte is a five-height scale here, not Lamzu's two stops,
70
+ // so the stop setter stays off and the scale carries the control.
71
+ supportsLiftOffDistance: false,
72
+ liftOffMillimetres: SCYROX_V8S_LIFT_OFF_MILLIMETRES,
73
+ // Flash 185 is SensorMode on this firmware, an LP/HP/Corded enum the
74
+ // vendor tool mostly switches by itself, not the boolean the Atlantis
75
+ // client's hyper mode expects. The configurator's "Highest performance"
76
+ // toggle (shown as "Competitive Mode" once on) writes flash 181, which is
77
+ // this client's performance mode and stays enabled.
78
+ supportsHyperMode: false,
79
+ // Mouse Angle Mode, -30 to 30 degrees at flash 189 and 191.
80
+ supportsAngleTuning: true,
81
+ // The configurator's Restore button: command 0x09.
82
+ supportsFactoryReset: true,
83
+ // The configurator's Scyrox sleep setter writes flash 173 and 183 alike.
84
+ mirrorSleepToPerformanceTime: true,
85
+ }],
86
+ [0xf517, {
87
+ brand: "Scyrox",
88
+ model: "V8S",
89
+ wireless: true,
90
+ pollingRates: RATES_V8S,
91
+ rateFamily: "pulsar",
92
+ dpiLayout: "sensor3955",
93
+ verified: true,
94
+ minDpi: 50,
95
+ maxDpi: 50000,
96
+ dpiStep: 50,
97
+ maxDpiStages: 5,
98
+ supportsLiftOffDistance: false,
99
+ liftOffMillimetres: SCYROX_V8S_LIFT_OFF_MILLIMETRES,
100
+ supportsHyperMode: false,
101
+ supportsAngleTuning: true,
102
+ supportsFactoryReset: true,
103
+ mirrorSleepToPerformanceTime: true,
104
+ }],
105
+ ]);
106
+ export function scyroxProduct(vendorId, productId) {
107
+ if (vendorId !== SCYROX_VENDOR_ID)
108
+ return undefined;
109
+ return SCYROX_PRODUCTS.get(productId);
110
+ }
111
+ //# source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;YACrE,sEAAsE;YACtE,wEAAwE;YACxE,0EAA0E;YAC1E,oDAAoD;YACpD,iBAAiB,EAAE,KAAK;YACxB,4DAA4D;YAC5D,mBAAmB,EAAE,IAAI;YACzB,mDAAmD;YACnD,oBAAoB,EAAE,IAAI;YAC1B,yEAAyE;YACzE,4BAA4B,EAAE,IAAI;SACnC,CAAC;IACF,CAAC,MAAM,EAAE;YACP,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,KAAK;YACZ,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,SAAS;YACvB,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,EAAE;YACX,YAAY,EAAE,CAAC;YACf,uBAAuB,EAAE,KAAK;YAC9B,kBAAkB,EAAE,+BAA+B;YACnD,iBAAiB,EAAE,KAAK;YACxB,mBAAmB,EAAE,IAAI;YACzB,oBAAoB,EAAE,IAAI;YAC1B,4BAA4B,EAAE,IAAI;SACnC,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,UAAU,aAAa,CAAC,QAAgB,EAAE,SAAiB;IAC/D,IAAI,QAAQ,KAAK,gBAAgB;QAAE,OAAO,SAAS,CAAC;IACpD,OAAO,eAAe,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AACxC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmouse/protocol",
3
- "version": "0.45.2",
3
+ "version": "0.47.0",
4
4
  "description": "Gaming mouse protocol codecs and WebHID drivers used by OpenMouse.",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "type": "module",
@@ -221,6 +221,14 @@
221
221
  "./coolermaster": {
222
222
  "types": "./dist/coolermaster/index.d.ts",
223
223
  "import": "./dist/coolermaster/index.js"
224
+ },
225
+ "./scyrox": {
226
+ "types": "./dist/scyrox/index.d.ts",
227
+ "import": "./dist/scyrox/index.js"
228
+ },
229
+ "./hitscan": {
230
+ "types": "./dist/hitscan/index.d.ts",
231
+ "import": "./dist/hitscan/index.js"
224
232
  }
225
233
  },
226
234
  "scripts": {