diff --git a/public/devices/README.md b/public/devices/README.md index f0dd4f74..18f2e07e 100644 --- a/public/devices/README.md +++ b/public/devices/README.md @@ -203,6 +203,20 @@ already transparent). Trimmed and centered at 644 px tall on a transparent maintainer uploads it to the bucket. Vendor product art: confirm redistribution terms before including it in a public release package. +`scyrox-v6.png`, `scyrox-v8.png` and `scyrox-v8s.png` are the top-down renders +from Scyrox's official product galleries +([V6](https://scyrox.com/products/scyrox-v6), blue; +[V8](https://scyrox.com/products/scyrox-v8), black; +[V8S](https://scyrox.com/products/scyrox-v8s), pink). The V6 and V8S renders +had their white backdrop keyed out (the V8 render is already transparent). +Each is trimmed and centered at 644 px tall on a transparent 700×700 canvas to +match the other mice. They are matched by the name the driver reads from the +mouse ("Scyrox V6", "Scyrox V8", "Scyrox V8S"), since the V6 shares the V8's +product ids. Committed under `public/devices/` and served through +`LOCAL_OVERRIDES` until a maintainer uploads them to the bucket. Vendor product +art: confirm redistribution terms before including it in a public release +package. An earlier mapping-only attempt was #1451. + `attackshark-r5-ultra.png` is the top-down render of the Attack Shark R5 Ultra extracted from Attack Shark's official product gallery (`cdn.shopify.com/s/files/1/0823/5050/6282/files/R5ULTRA_C06_3.png`), keyed diff --git a/public/devices/scyrox-v6.png b/public/devices/scyrox-v6.png new file mode 100644 index 00000000..20e8643b Binary files /dev/null and b/public/devices/scyrox-v6.png differ diff --git a/public/devices/scyrox-v8.png b/public/devices/scyrox-v8.png new file mode 100644 index 00000000..a7c49184 Binary files /dev/null and b/public/devices/scyrox-v8.png differ diff --git a/public/devices/scyrox-v8s.png b/public/devices/scyrox-v8s.png new file mode 100644 index 00000000..0f024dab Binary files /dev/null and b/public/devices/scyrox-v8s.png differ diff --git a/src/shared/device-images.test.ts b/src/shared/device-images.test.ts index 087754c9..05df7b67 100644 --- a/src/shared/device-images.test.ts +++ b/src/shared/device-images.test.ts @@ -45,6 +45,15 @@ test("Razer Orochi V2 resolves by name", () => { assert.equal(deviceImage(dev(0x1532, 0x0094), "Razer Orochi V2"), CDN + "razer-orochi-v2.png"); }); +test("Scyrox V6, V8 and V8S resolve by the name read from the mouse", () => { + // The V6 and V8 share the 8K dongle's ids; only the reported name differs. + assert.equal(deviceImage(dev(0x3554, 0xf5f7), "Scyrox V6"), "/devices/scyrox-v6.png"); + assert.equal(deviceImage(dev(0x3554, 0xf5f7), "Scyrox V8"), "/devices/scyrox-v8.png"); + assert.equal(deviceImage(dev(0x3554, 0xf515), "Scyrox V8S"), "/devices/scyrox-v8s.png"); + // Before the handshake names the mouse, the receiver keeps the placeholder. + assert.equal(deviceImage(dev(0x3554, 0xf5f7), "SCYROX 8K Dongle"), CDN + "unknown-device.png"); +}); + test("Corsair NIGHTSWORD RGB falls back to the placeholder until art exists", () => { assert.equal(deviceImage(dev(0x1b1c, 0x1b5c), "Corsair NIGHTSWORD RGB"), CDN + "unknown-device.png"); assert.equal(deviceImage(null, "CORSAIR NIGHTSWORD RGB Gaming Mouse"), CDN + "unknown-device.png"); diff --git a/src/shared/device-images.ts b/src/shared/device-images.ts index c424bf4d..b4f36f43 100644 --- a/src/shared/device-images.ts +++ b/src/shared/device-images.ts @@ -138,6 +138,13 @@ function computeDeviceImageFilename(displayName: string): string { if (/\bmaya\s*x\b/i.test(displayName)) return "lamzu-maya-x.png"; // The original Maya shares its ids with the Atlantis family; the driver names it. if (/\blamzu\s+maya$/i.test(displayName)) return "lamzu-maya.png"; + // Scyrox shares CompX's vendor id, and the V6 sits on the V8's product ids + // (0x3554:0xf5f6/0xf5f7), so only the name the driver reads from the mouse's + // handshake tells the models apart. V8S before V8, so "V8S" never lands on + // the V8's render; the receiver's own name ("SCYROX 8K Dongle") matches none. + if (/\bscyrox\s*v8s\b/i.test(displayName)) return "scyrox-v8s.png"; + if (/\bscyrox\s*v8\b/i.test(displayName)) return "scyrox-v8.png"; + if (/\bscyrox\s*v6\b/i.test(displayName)) return "scyrox-v6.png"; if (/\bnoir\s*s1\b/i.test(displayName)) return "noir-s1.png"; if (/k[\s-]*snake/i.test(displayName)) return "ksnake-x11.png"; if (/\bf1\s*v2\b/i.test(displayName)) return "atk-f1-v2-ultra-max.png"; @@ -248,6 +255,9 @@ const LOCAL_OVERRIDES: Readonly> = { "redragon-m991.png": "/devices/redragon-m991.png", "logitech-g915-x-tkl.png": "/devices/logitech-g915-x-tkl.png", "steelseries-aerox-3-wireless.png": "/devices/steelseries-aerox-3-wireless.png", + "scyrox-v6.png": "/devices/scyrox-v6.png", + "scyrox-v8.png": "/devices/scyrox-v8.png", + "scyrox-v8s.png": "/devices/scyrox-v8s.png", }; export type DeviceImageKind = "mouse" | "keyboard";