diff --git a/src/app/OverviewPage.tsx b/src/app/OverviewPage.tsx index 284a5e8..af9a47e 100644 --- a/src/app/OverviewPage.tsx +++ b/src/app/OverviewPage.tsx @@ -15,7 +15,7 @@ import { } from "lucide-react"; import { useEffect, useRef, useState, type KeyboardEvent, type ReactNode } from "react"; import * as control from "../device/controller"; -import { isNoirKsnakeStatus, isNoirS1Status, noirBrandLabel } from "../device/noir.ts"; +import { isNoirE1Status, isNoirKsnakeStatus, isNoirS1Status, noirBrandLabel } from "../device/noir.ts"; import type { ControlSnapshot, WorkspaceTab } from "../device/types"; import { t, tp, connectionText, type I18nKey } from "../i18n"; import { Diagnostics, LogitechDetails } from "./Diagnostics"; @@ -104,6 +104,14 @@ const NOIR_S1_BUTTON_MARKER_POSITIONS: Readonly> = { + left: { x: 0.28, y: 0.2 }, + right: { x: 0.72, y: 0.2 }, + middle: { x: 0.5, y: 0.18 }, + forward: { x: 0.08, y: 0.32 }, + backward: { x: 0.08, y: 0.5 }, +}; + function m2NexButtonMarkerPosition(button: string): ButtonMarkerPosition | null { return M2_NEX_BUTTON_MARKER_POSITIONS[button.trim().toLowerCase()] ?? null; } @@ -112,6 +120,10 @@ function noirS1ButtonMarkerPosition(button: string): ButtonMarkerPosition | null return NOIR_S1_BUTTON_MARKER_POSITIONS[button.trim().toLowerCase()] ?? null; } +function noirE1ButtonMarkerPosition(button: string): ButtonMarkerPosition | null { + return NOIR_E1_BUTTON_MARKER_POSITIONS[button.trim().toLowerCase()] ?? null; +} + // Device artwork requests go straight to the documented GitHub issue form // (public/devices/README.md, .github/ISSUE_TEMPLATE/device-artwork.yml). const ARTWORK_ISSUE_URL = "https://github.com/OpenMouse-Project/openmouse/issues/new?template=device-artwork.yml"; @@ -247,12 +259,12 @@ function M2NexProfileOverview({ snapshot }: { snapshot: ControlSnapshot }): Reac >
{t(locale, "m2nex.overline")} - {t(locale, "m2nex.label")} + {status.name}