Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions public/devices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added public/devices/scyrox-v6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/devices/scyrox-v8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/devices/scyrox-v8s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/shared/device-images.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
10 changes: 10 additions & 0 deletions src/shared/device-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -248,6 +255,9 @@ const LOCAL_OVERRIDES: Readonly<Record<string, string>> = {
"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";
Expand Down