From 5a5f828067279b2bcb624953513dbf22f0c409d2 Mon Sep 17 00:00:00 2001 From: snekxs <26660858+snekxs@users.noreply.github.com> Date: Fri, 4 Dec 2026 18:20:58 -0600 Subject: [PATCH] feat(wlmouse): add Beast X V2 controls and dongle screen UI --- package-lock.json | 8 +- package.json | 2 +- src/device/controller.ts | 159 ++++++ src/features/devices/OverviewPage.tsx | 25 +- src/features/devices/cards/WLMouseCards.tsx | 525 ++++++++++++++++++++ src/features/devices/cards/availability.ts | 17 +- src/features/devices/workspace-tabs.ts | 4 +- src/i18n/index.ts | 39 ++ src/i18n/locales/ar.ts | 39 ++ src/i18n/locales/de.ts | 39 ++ src/i18n/locales/es.ts | 39 ++ src/i18n/locales/fr.ts | 39 ++ src/i18n/locales/ja.ts | 39 ++ src/i18n/locales/ko.ts | 39 ++ src/i18n/locales/pt.ts | 39 ++ src/i18n/locales/ru.ts | 39 ++ src/i18n/locales/tr.ts | 39 ++ src/i18n/locales/vi.ts | 39 ++ src/i18n/locales/zh.ts | 39 ++ 19 files changed, 1193 insertions(+), 15 deletions(-) create mode 100644 src/features/devices/cards/WLMouseCards.tsx diff --git a/package-lock.json b/package-lock.json index ca3046bd..62c97230 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "AGPL-3.0-or-later", "dependencies": { "@openmouse/keyboard-protocol": "1.10.0", - "@openmouse/protocol": "0.67.0", + "@openmouse/protocol": "0.68.0", "lucide-react": "^1.43.0", "posthog-js": "^1.438.17", "preact": "^10.29.8" @@ -493,9 +493,9 @@ } }, "node_modules/@openmouse/protocol": { - "version": "0.67.0", - "resolved": "https://registry.npmjs.org/@openmouse/protocol/-/protocol-0.67.0.tgz", - "integrity": "sha512-IoXXYvsaMd1Cg9+PBrDJO9NIdchLPMOI+EmHN6eMpad/rHP89NQu6NhCExXYa/iFBar2qdO5SPy5+FiqGiL5Ig==", + "version": "0.68.0", + "resolved": "https://registry.npmjs.org/@openmouse/protocol/-/protocol-0.68.0.tgz", + "integrity": "sha512-0uj07ePYkftS+7LbI1D/wGU9usqWvPC3ExZZZzL6fkwZ1XU3G8Lm4PCjLKZaFdS2kOUeRrrRMQcsHasdv2ch+Q==", "license": "AGPL-3.0-or-later", "engines": { "node": ">=20" diff --git a/package.json b/package.json index 1f6ee48b..3475aec3 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@openmouse/keyboard-protocol": "1.10.0", - "@openmouse/protocol": "0.67.0", + "@openmouse/protocol": "0.68.0", "lucide-react": "^1.43.0", "posthog-js": "^1.438.17", "preact": "^10.29.8" diff --git a/src/device/controller.ts b/src/device/controller.ts index cff4a95d..3c15e796 100644 --- a/src/device/controller.ts +++ b/src/device/controller.ts @@ -8449,6 +8449,165 @@ export function applyLunaFuryWheelGuard(guard: { enabled: boolean; windowMs: num }); } +export function applyWLMouseLodMode(mode: "standard" | "precise"): void { + const wl = latestDeviceStatus?.wlmouse; + if (!wl || wl.lodMm == null) return; + const mm = mode === "standard" && ![0.7, 1, 2].includes(wl.lodMm) ? 1 : wl.lodMm; + stageChange({ + key: "wlmouse-lod-mode", + label: `LOD ${mode} (${mm} mm)`, + command: "Change lift-off precision mode", + progress: "Changing lift-off precision mode…", + preview: (status) => { if (status.wlmouse) { status.wlmouse.lodMode = mode; status.wlmouse.lodMm = mm; } }, + apply: async () => { + const client = activeSettingsClient() as { setLiftOffHeight?: (mm: number, mode: "standard" | "precise") => Promise } | null; + if (typeof client?.setLiftOffHeight !== "function") throw new Error("This mouse does not support lift-off precision mode."); + await client.setLiftOffHeight(mm, mode); + }, + }); +} + +export function applyWLMouseBhopWheel(settings: { enabled: boolean; direction: "both" | "up" | "down"; windowMs: number }): void { + if (!latestDeviceStatus?.wlmouse?.bhopWheel) return; + stageChange({ + key: "wlmouse-bhop-wheel", + label: `BHop wheel ${settings.enabled ? `${settings.direction} ${settings.windowMs} ms` : "off"}`, + command: "Change BHop wheel settings", + progress: "Changing BHop wheel settings…", + preview: (status) => { if (status.wlmouse) status.wlmouse.bhopWheel = { ...settings }; }, + apply: () => callClientMethod("setBhopWheel", "BHop wheel", settings), + }); +} + +export function applyWLMouseSensorPosition(position: { x: number; y: number }): void { + if (!latestDeviceStatus?.wlmouse?.sensorPosition) return; + stageChange({ + key: "wlmouse-sensor-position", + label: `Sensor position (${position.x}, ${position.y})`, + command: "Change sensor position", + progress: "Changing sensor position…", + preview: (status) => { if (status.wlmouse) status.wlmouse.sensorPosition = { ...position }; }, + apply: async () => { + const client = activeSettingsClient() as { setSensorPosition?: (x: number, y: number) => Promise } | null; + if (typeof client?.setSensorPosition !== "function") throw new Error("This mouse does not support sensor position."); + await client.setSensorPosition(position.x, position.y); + }, + }); +} + +export function applyWLMouseDynamicDpi(settings: { enabled: boolean; points: Array<{ speed: number; ratio: number }> }): void { + if (!latestDeviceStatus?.wlmouse?.dynamicDpi) return; + const next = { enabled: settings.enabled, points: settings.points.map((point) => ({ ...point })) }; + stageChange({ + key: "wlmouse-dynamic-dpi", + label: `Dynamic DPI ${next.enabled ? "on" : "off"}`, + command: "Change Dynamic DPI curve", + progress: "Changing Dynamic DPI curve…", + preview: (status) => { if (status.wlmouse) status.wlmouse.dynamicDpi = structuredClone(next); }, + apply: () => callClientMethod("setDynamicDpi", "Dynamic DPI", next), + }); +} + +export function applyWLMouseDongleScreenEnabled(enabled: boolean): void { + if (!latestDeviceStatus?.wlmouse?.dongleScreen) return; + stageChange({ + key: "wlmouse-dongle-screen-enabled", + label: `Dongle screen ${enabled ? "on" : "off"}`, + command: "Toggle dongle screen", + progress: "Updating dongle screen…", + preview: (status) => { if (status.wlmouse?.dongleScreen) status.wlmouse.dongleScreen.enabled = enabled; }, + apply: () => callClientMethod("setDongleScreenEnabled", "dongle screen", enabled), + }); +} + +export function applyWLMouseDongleDefaultScreen(screen: "mouse-stats" | "usb-monitor" | "media"): void { + if (!latestDeviceStatus?.wlmouse?.dongleScreen) return; + stageChange({ + key: "wlmouse-dongle-default-screen", + label: `Default screen ${screen}`, + command: "Change dongle default screen", + progress: "Updating dongle default screen…", + preview: (status) => { if (status.wlmouse?.dongleScreen) status.wlmouse.dongleScreen.defaultScreen = screen; }, + apply: () => callClientMethod("setDongleDefaultScreen", "dongle default screen", screen), + }); +} + +export function applyWLMouseDongleDoubleTap(enabled: boolean): void { + if (!latestDeviceStatus?.wlmouse?.dongleScreen) return; + stageChange({ + key: "wlmouse-dongle-double-tap", + label: `Dongle double-tap ${enabled ? "on" : "off"}`, + command: "Toggle dongle touchscreen double-tap", + progress: "Updating dongle double-tap…", + preview: (status) => { if (status.wlmouse?.dongleScreen) status.wlmouse.dongleScreen.doubleTapEnabled = enabled; }, + apply: () => callClientMethod("setDongleDoubleTap", "dongle double-tap", enabled), + }); +} + +export async function uploadWLMouseDongleImages( + images: Array<{ width: number; height: number; format: "gif" | "jpeg" | "png" | "rgb565"; data: Uint8Array }>, +): Promise { + await callClientMethod("uploadDongleImages", "dongle screen images", images); +} + +export async function deleteWLMouseDongleImages(): Promise { + const client = activeSettingsClient() as { deleteDongleImages?: () => Promise } | null; + if (typeof client?.deleteDongleImages !== "function") throw new Error("This receiver does not support dongle screen images."); + await client.deleteDongleImages(); +} + +export async function loadWLMouseMacros(): Promise> } | null>> { + const client = activeSettingsClient() as { readMacros?: () => Promise> } | null>> } | null; + if (typeof client?.readMacros !== "function") return []; + return await client.readMacros(); +} + +export async function saveWLMouseMacro( + slot: number, + name: string, + events: Array>, +): Promise { + const client = activeSettingsClient() as { saveMacro?: (slot: number, name: string, events: Array>) => Promise } | null; + if (typeof client?.saveMacro !== "function") throw new Error("This mouse does not support onboard macros."); + await client.saveMacro(slot, name, events); +} + +export async function deleteWLMouseMacro(slot: number): Promise { + await callClientMethod("deleteMacro", "onboard macro", slot); +} + +export function stageWLMouseResetProfile(): void { + if (!latestDeviceStatus?.wlmouse) return; + stageChange({ + key: "wlmouse-reset-profile", + label: "Reset active profile", + command: "Reset active profile", + progress: "Resetting active profile…", + preview: () => {}, + apply: async () => { + const client = activeSettingsClient() as { resetProfile?: () => Promise } | null; + if (typeof client?.resetProfile !== "function") throw new Error("This mouse does not support profile reset."); + await client.resetProfile(); + }, + }); +} + +export function stageWLMouseFactoryReset(): void { + if (!latestDeviceStatus?.wlmouse) return; + stageChange({ + key: "wlmouse-factory-reset", + label: "Factory reset", + command: "Factory reset", + progress: "Resetting device…", + preview: () => {}, + apply: async () => { + const client = activeSettingsClient() as { factoryReset?: () => Promise } | null; + if (typeof client?.factoryReset !== "function") throw new Error("This mouse does not support factory reset."); + await client.factoryReset(); + }, + }); +} + function startAutomaticRefresh(): void { if (refreshTimer !== null) window.clearInterval(refreshTimer); const client = activeSettingsClient(); diff --git a/src/features/devices/OverviewPage.tsx b/src/features/devices/OverviewPage.tsx index c74786f1..8e6cd781 100644 --- a/src/features/devices/OverviewPage.tsx +++ b/src/features/devices/OverviewPage.tsx @@ -31,6 +31,7 @@ import { FirmwareCard } from "./cards/FirmwareCard"; import { DynamicSensitivityCard, LightforceCard, PollingCard, SensorCard, SensorScanningCard } from "./cards/PerformanceCards"; import { LightingCard } from "./cards/LightingCard"; import { LunaFuryBottomButtonCard, LunaFuryButtonsCard, LunaFuryReceiverLightCard, LunaFuryWheelCard } from "./cards/LunaFuryCards"; +import { WLMouseDongleScreenCard, WLMouseDynamicDpiCard, WLMouseMacroCard, WLMouseResetCard, WLMouseSensorCard } from "./cards/WLMouseCards"; import { MxMasterButtonsCard, MxMasterCards } from "./cards/MxMasterCards"; import { AtkButtonCard, AtkDongleCard, AtkMacroCard, AtkProfileCard, AtkReceiverCard, AtkSensorCard } from "./cards/AtkCards"; import { @@ -418,6 +419,8 @@ export function Workspace({ show(has.lunafuryWheelGuard, ["buttons"]) ? : null, device && show(has.lunafuryBottomButton, ["buttons"]) ? : null, show(status.keychronMouse?.dynamicDpi != null, ["performance"]) ? : null, + show(has.wlmouseSensor, ["performance"]) ? : null, + show(has.wlmouseDynamicDpi, ["performance"]) ? : null, ].filter((node) => node !== null); const macro = [ @@ -432,6 +435,7 @@ export function Workspace({ show(has.xiaomiMacros, ["macro"]) ? : null, show(has.leobogMacros, ["macro"]) ? : null, show(has.atkMacros, ["macro"]) ? : null, + show(has.wlmouseMacros, ["macro"]) ? : null, ].filter((node) => node !== null); const advanced = [ @@ -440,6 +444,7 @@ export function Workspace({ show(has.lightingAdvanced, ["advanced"]) ? : null, device && show(status.keychronMouse?.factoryReset === true, ["advanced"]) ? : null, + device && show(has.wlmouseReset, ["advanced"]) ? : null, device && show(status.keychronMouse?.pairing != null, ["advanced"]) ? : null, show(has.lowPower, ["advanced"]) ? : null, show(has.perfectPolling, ["advanced"]) ? : null, @@ -475,7 +480,7 @@ export function Workspace({ && (status.hapticIntensity != null || status.wheelMode != null || status.friendlyName != null || status.hostCount != null); const showDiagnostics = device && on(tab, ["advanced"]); const showOverview = on(tab, ["overview"]); - const showReceiver = device && show(has.keychronReceiver, ["receiver"]); + const showReceiver = device && show(has.keychronReceiver || has.wlmouseReceiver, ["receiver"]); const showButtonMarkers = on(tab, ["buttons"]) && isNoirKsnakeStatus(status) && status.buttonMappings != null; const anyPanel = performance.length > 0 || macro.length > 0 || advanced.length > 0 || lighting.length > 0 @@ -507,12 +512,18 @@ export function Workspace({ {showTeevolutionProfiles ? : null} {showNapeLayers ? : null} {showReceiver ?
- {status.keychronReceiver ? slotCards([ - , - , - ]) :

{t(locale, "tab.receiver")}

{t(locale, "diag.notReported")}

} - + {has.wlmouseReceiver ? slotCards([ + , + ]) : ( + <> + {status.keychronReceiver ? slotCards([ + , + , + ]) :

{t(locale, "tab.receiver")}

{t(locale, "diag.notReported")}

} + + + )}
: null} {showMagnetic ? : null} diff --git a/src/features/devices/cards/WLMouseCards.tsx b/src/features/devices/cards/WLMouseCards.tsx new file mode 100644 index 00000000..77ccb3f7 --- /dev/null +++ b/src/features/devices/cards/WLMouseCards.tsx @@ -0,0 +1,525 @@ +import { useEffect, useState, type ReactNode } from "react"; +import { + WLMOUSE_BEAST_X_V2_SCREEN, + wlmouseDetectImageFormat, + type WLMouseBhopDirection, + type WLMouseDongleDefaultScreen, + type WLMouseDynamicDpi, + type WLMouseLodMode, + type WLMouseMacro, + type WLMouseMacroEvent, +} from "@openmouse/protocol/wlmouse"; +import * as control from "../../../device/controller"; +import type { ControlSnapshot } from "../../../device/types"; +import { t } from "../../../i18n/index"; +import { OptionMenu, Segmented, StepperSlider, SwitchRow } from "../../../shared/ui"; + +export function WLMouseSensorCard({ snapshot }: { snapshot: ControlSnapshot }): ReactNode { + const wl = snapshot.status?.wlmouse; + if (!wl || (wl.lodMode == null && wl.bhopWheel == null && wl.sensorPosition == null)) return null; + const locale = snapshot.preferences.locale; + const busy = snapshot.settingInProgress || snapshot.settingsPending || snapshot.pending.busy; + const staged = snapshot.pending.keys.some((key) => + key === "wlmouse-lod-mode" || key === "wlmouse-bhop-wheel" || key === "wlmouse-sensor-position"); + + return ( +
+

{t(locale, "wl.sensorExtras")}

+ + {wl.lodMode != null ? ( +
+ {t(locale, "wl.lodMode")} + control.applyWLMouseLodMode(mode as WLMouseLodMode)} + /> +
+ ) : null} + + {wl.sensorPosition != null ? ( +
+ {t(locale, "wl.sensorPos")} + String(v)} + disabled={busy} + pendingKey="wlmouse-sensor-position" + onCommit={(x) => control.applyWLMouseSensorPosition({ x, y: wl.sensorPosition!.y })} + /> + String(v)} + disabled={busy} + pendingKey="wlmouse-sensor-position" + onCommit={(y) => control.applyWLMouseSensorPosition({ x: wl.sensorPosition!.x, y })} + /> + +
+ ) : null} + + {wl.bhopWheel != null ? ( +
+ control.applyWLMouseBhopWheel({ ...wl.bhopWheel!, enabled })} + /> + {wl.bhopWheel.enabled ? ( + <> + control.applyWLMouseBhopWheel({ + ...wl.bhopWheel!, + direction: direction as WLMouseBhopDirection, + })} + /> + `${shown} ms`} + disabled={busy} + pendingKey="wlmouse-bhop-wheel" + onCommit={(windowMs) => control.applyWLMouseBhopWheel({ ...wl.bhopWheel!, windowMs })} + /> + + ) : null} +
+ ) : null} +
+ ); +} + +export function WLMouseDynamicDpiCard({ snapshot }: { snapshot: ControlSnapshot }): ReactNode { + const config = snapshot.status?.wlmouse?.dynamicDpi; + const [draft, setDraft] = useState(config ? structuredClone(config) : null); + const signature = JSON.stringify(config); + useEffect(() => { + setDraft(config ? structuredClone(config) : null); + }, [signature]); + if (!draft || !config) return null; + + const locale = snapshot.preferences.locale; + const busy = snapshot.settingInProgress || snapshot.settingsPending || snapshot.pending.busy; + const valid = draft.points.length > 0 && draft.points.every((point, index) => + Number.isInteger(point.speed) && point.speed >= 0 && point.speed <= 250 + && Number.isFinite(point.ratio) && point.ratio >= 0.1 && point.ratio <= 8 + && (index === 0 || point.speed > draft.points[index - 1]!.speed)); + + return ( +
+

{t(locale, "perf.dynSens")}

+ setDraft({ ...draft, enabled })} + /> +
+
+ + {[0, 2, 4, 6, 8].map((ratio) => ( + + + {ratio} + + ))} + `${32 + p.speed / 250 * 566},${160 - p.ratio / 8 * 150}`).join(" ")} + /> + +
+ + + + + + + + + {draft.points.map((point, index) => ( + + + + + ))} + +
{t(locale, "perf.dynSensSpeed")}{t(locale, "wl.dynDpiRatio")}
+ { + const speed = Number(event.currentTarget.value); + setDraft({ + ...draft, + points: draft.points.map((p, i) => (i === index ? { ...p, speed } : p)), + }); + }} + /> + + { + const ratio = Number(event.currentTarget.value); + setDraft({ + ...draft, + points: draft.points.map((p, i) => (i === index ? { ...p, ratio } : p)), + }); + }} + /> +
+
+ +
+ ); +} + +export function WLMouseDongleScreenCard({ snapshot }: { snapshot: ControlSnapshot }): ReactNode { + const screen = snapshot.status?.wlmouse?.dongleScreen; + const [transferBusy, setTransferBusy] = useState(false); + const [transferError, setTransferError] = useState(null); + if (!screen) return null; + + const locale = snapshot.preferences.locale; + const busy = snapshot.settingInProgress || snapshot.settingsPending || snapshot.pending.busy || transferBusy; + const staged = snapshot.pending.keys.some((key) => key.startsWith("wlmouse-dongle-")); + + async function handleFiles(fileList: FileList | null): Promise { + if (!fileList || fileList.length === 0) return; + setTransferBusy(true); + setTransferError(null); + try { + const files = Array.from(fileList).slice(0, WLMOUSE_BEAST_X_V2_SCREEN.maxSlots); + const images = await Promise.all(files.map(async (file) => { + const data = new Uint8Array(await file.arrayBuffer()); + return { + width: screen!.width, + height: screen!.height, + format: wlmouseDetectImageFormat(data, file.type), + data, + }; + })); + await control.uploadWLMouseDongleImages(images); + } catch (error) { + setTransferError(error instanceof Error ? error.message : String(error)); + } finally { + setTransferBusy(false); + } + } + + async function handleDelete(): Promise { + setTransferBusy(true); + setTransferError(null); + try { + await control.deleteWLMouseDongleImages(); + } catch (error) { + setTransferError(error instanceof Error ? error.message : String(error)); + } finally { + setTransferBusy(false); + } + } + + return ( +
+

{t(locale, "wl.dongleScreen")}

+ + control.applyWLMouseDongleScreenEnabled(enabled)} + /> + +
+ {t(locale, "wl.defaultScreen")} + control.applyWLMouseDongleDefaultScreen(value as WLMouseDongleDefaultScreen)} + /> +
+ + control.applyWLMouseDongleDoubleTap(enabled)} + /> + {t(locale, "wl.doubleTapNote")} + +
+ + {t(locale, "wl.uploadNote")} + + {transferError ? {transferError} : null} +
+
+ ); +} + +export function WLMouseMacroCard({ snapshot }: { snapshot: ControlSnapshot }): ReactNode { + const macroSlots = snapshot.status?.wlmouse?.macroSlots ?? 0; + const [slot, setSlot] = useState(1); + const [macros, setMacros] = useState>([]); + const [name, setName] = useState("Macro1"); + const [events, setEvents] = useState([]); + const [busy, setBusy] = useState(false); + const [error, setError] = useState(null); + + if (macroSlots < 1) return null; + const locale = snapshot.preferences.locale; + const disabled = busy || snapshot.settingInProgress || snapshot.settingsPending; + + function selectSlot(nextSlot: number, source: Array = macros): void { + setSlot(nextSlot); + const existing = source[nextSlot - 1]; + setName(existing?.name ?? `Macro${nextSlot}`); + setEvents(existing ? [...existing.events] : []); + } + + async function handleLoad(): Promise { + setBusy(true); + setError(null); + try { + const loaded = await control.loadWLMouseMacros() as Array; + setMacros(loaded); + selectSlot(slot, loaded); + } catch (err) { + setError(err instanceof Error ? err.message : String(err)); + } finally { + setBusy(false); + } + } + + async function handleSave(): Promise { + setBusy(true); + setError(null); + try { + await control.saveWLMouseMacro(slot, name, events as unknown as Array>); + const next = [...macros]; + next[slot - 1] = { slot, name, events: [...events] }; + setMacros(next); + } catch (err) { + setError(err instanceof Error ? err.message : String(err)); + } finally { + setBusy(false); + } + } + + async function handleDelete(): Promise { + setBusy(true); + setError(null); + try { + await control.deleteWLMouseMacro(slot); + const next = [...macros]; + next[slot - 1] = null; + setMacros(next); + setEvents([]); + setName(`Macro${slot}`); + } catch (err) { + setError(err instanceof Error ? err.message : String(err)); + } finally { + setBusy(false); + } + } + + return ( +
+

{t(locale, "wl.macrosTitle")}

+
+ +
+
+ {t(locale, "wl.macroSlot")} + ({ + value: index + 1, + label: `${index + 1}`, + }))} + value={slot} + disabled={disabled} + onChange={(next) => selectSlot(Number(next))} + /> +
+ +
+ + + +
+ {events.length === 0 ? ( + {t(locale, "wl.macroEmpty")} + ) : ( +
    + {events.map((step, index) => ( +
  • + {step.type === "delay" + ? `${step.ms} ms` + : step.type === "scroll" + ? `${step.type} ${step.direction}` + : "button" in step + ? `${step.type} ${step.button}` + : `${step.type} 0x${step.keyCode.toString(16)}`} +
  • + ))} +
+ )} +
+ + +
+ {error ? {error} : null} +
+ ); +} + +export function WLMouseResetCard({ snapshot }: { snapshot: ControlSnapshot }): ReactNode { + if (!snapshot.status?.wlmouse) return null; + const locale = snapshot.preferences.locale; + const busy = snapshot.settingInProgress || snapshot.settingsPending || snapshot.pending.busy; + return ( +
+

{t(locale, "wl.resetCard")}

+

{t(locale, "wl.resetNote")}

+
+ + +
+
+ ); +} diff --git a/src/features/devices/cards/availability.ts b/src/features/devices/cards/availability.ts index e0125c94..8ebd991d 100644 --- a/src/features/devices/cards/availability.ts +++ b/src/features/devices/cards/availability.ts @@ -7,6 +7,11 @@ import { atkSupportsMacroBindings } from "./atk-capabilities.ts"; export interface CardAvailability { keychronReceiver: boolean; + wlmouseReceiver: boolean; + wlmouseSensor: boolean; + wlmouseDynamicDpi: boolean; + wlmouseMacros: boolean; + wlmouseReset: boolean; dpi: boolean; polling: boolean; sensor: boolean; @@ -69,6 +74,11 @@ export interface CardAvailability { const NOTHING: CardAvailability = { keychronReceiver: false, + wlmouseReceiver: false, + wlmouseSensor: false, + wlmouseDynamicDpi: false, + wlmouseMacros: false, + wlmouseReset: false, dpi: false, polling: false, sensor: false, @@ -164,9 +174,14 @@ function computeCardAvailability(snapshot: ControlSnapshot): CardAvailability { && selectableValues(capabilities.razerLowPowerOptions, status.lowBatteryWarning) !== null; return { - keychronReceiver: Boolean(status.keychronReceiver || ui?.receiverControls + keychronReceiver: Boolean(status.keychronReceiver || (ui?.receiverControls && status.brand === "Keychron") || snapshot.devices?.some(device => device.selected && device.vendorId === 0x3434 && device.productId === 0xd05a)), + wlmouseReceiver: Boolean(status.wlmouse?.dongleScreen), + wlmouseSensor: Boolean(status.wlmouse && (status.wlmouse.lodMode != null || status.wlmouse.bhopWheel != null || status.wlmouse.sensorPosition != null)), + wlmouseDynamicDpi: Boolean(status.wlmouse?.dynamicDpi), + wlmouseMacros: Boolean(status.wlmouse && status.wlmouse.macroSlots > 0), + wlmouseReset: Boolean(status.wlmouse), dpi: ready, // The Attack Shark X11's settings channel is native-only (settingsReady // stays false), but its polling rate is still controllable through diff --git a/src/features/devices/workspace-tabs.ts b/src/features/devices/workspace-tabs.ts index fb7cf65a..82218e77 100644 --- a/src/features/devices/workspace-tabs.ts +++ b/src/features/devices/workspace-tabs.ts @@ -15,10 +15,10 @@ export function availableWorkspaceTabs( const hasProfiles = has.profiles || has.keychronNapeLayers || has.atkProfile || has.onboardProfiles || has.pulsarPro; return WORKSPACE_TAB_ORDER.filter((tab) => { - if (tab === "receiver") return has.keychronReceiver; + if (tab === "receiver") return has.keychronReceiver || has.wlmouseReceiver; if (tab === "lighting") return !options.hideLighting && (has.lighting || has.teevolutionDpiLighting); if (tab === "buttons") return hasButtons; - if (tab === "macro") return has.ksnakeMacros || has.wallhackMacros || has.incottMacros || has.xiaomiMacros || has.leobogMacros || has.atkMacros || has.x11Macros; + if (tab === "macro") return has.ksnakeMacros || has.wallhackMacros || has.incottMacros || has.xiaomiMacros || has.leobogMacros || has.atkMacros || has.x11Macros || has.wlmouseMacros; if (tab === "profiles") return hasProfiles; return true; }); diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 9fd410e4..282129c3 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -68,6 +68,45 @@ const en = { "luna.wheelGuard": "Wheel anti-mistouch", "luna.wheelGuardWindow": "Wheel guard window", "luna.sensorAngle": "Sensor angle", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "Language", "nav.settings": "Settings", "nav.support": "Support", diff --git a/src/i18n/locales/ar.ts b/src/i18n/locales/ar.ts index bf3f5f33..32e856ea 100644 --- a/src/i18n/locales/ar.ts +++ b/src/i18n/locales/ar.ts @@ -73,6 +73,45 @@ export const ar: Record = { "luna.wheelGuard": "منع التمرير غير المقصود", "luna.wheelGuardWindow": "مدة حماية عجلة التمرير", "luna.sensorAngle": "زاوية المستشعر", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "اللغة", "nav.settings": "الإعدادات", "nav.support": "الدعم", diff --git a/src/i18n/locales/de.ts b/src/i18n/locales/de.ts index 81f2df18..a44d54e9 100644 --- a/src/i18n/locales/de.ts +++ b/src/i18n/locales/de.ts @@ -73,6 +73,45 @@ export const de: Record = { "luna.wheelGuard": "Schutz vor versehentlichem Scrollen", "luna.wheelGuardWindow": "Schutzzeit des Mausrads", "luna.sensorAngle": "Sensorwinkel", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "Sprache", "nav.settings": "Einstellungen", "nav.support": "Unterstützen", diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index 983ea869..bb321c2c 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -73,6 +73,45 @@ export const es: Record = { "luna.wheelGuard": "Protección de rueda contra toques accidentales", "luna.wheelGuardWindow": "Ventana de protección de rueda", "luna.sensorAngle": "Ángulo del sensor", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "Idioma", "nav.settings": "Configuración", "nav.support": "Apoyar", diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index 84ff545e..97fc85fb 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -73,6 +73,45 @@ export const fr: Record = { "luna.wheelGuard": "Protection contre les défilements accidentels", "luna.wheelGuardWindow": "Fenêtre de protection de la molette", "luna.sensorAngle": "Angle du capteur", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "Langue", "nav.settings": "Paramètres", "nav.support": "Soutenir", diff --git a/src/i18n/locales/ja.ts b/src/i18n/locales/ja.ts index b0f9370c..4e379e20 100644 --- a/src/i18n/locales/ja.ts +++ b/src/i18n/locales/ja.ts @@ -73,6 +73,45 @@ export const ja: Record = { "luna.wheelGuard": "ホイールの誤操作防止", "luna.wheelGuardWindow": "ホイール保護時間", "luna.sensorAngle": "センサー角度", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "言語", "nav.settings": "設定", "nav.support": "サポート", diff --git a/src/i18n/locales/ko.ts b/src/i18n/locales/ko.ts index 4fb4a282..22ee5529 100644 --- a/src/i18n/locales/ko.ts +++ b/src/i18n/locales/ko.ts @@ -73,6 +73,45 @@ export const ko: Record = { "luna.wheelGuard": "휠 오작동 방지", "luna.wheelGuardWindow": "휠 보호 시간", "luna.sensorAngle": "센서 각도", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "언어", "nav.settings": "설정", "nav.support": "후원", diff --git a/src/i18n/locales/pt.ts b/src/i18n/locales/pt.ts index 8c0005fe..86115eb2 100644 --- a/src/i18n/locales/pt.ts +++ b/src/i18n/locales/pt.ts @@ -73,6 +73,45 @@ export const pt: Record = { "luna.wheelGuard": "Proteção da roda contra toques acidentais", "luna.wheelGuardWindow": "Janela de proteção da roda", "luna.sensorAngle": "Ângulo do sensor", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "Idioma", "nav.settings": "Configurações", "nav.support": "Apoiar", diff --git a/src/i18n/locales/ru.ts b/src/i18n/locales/ru.ts index 0fdfc34f..7ec2f168 100644 --- a/src/i18n/locales/ru.ts +++ b/src/i18n/locales/ru.ts @@ -73,6 +73,45 @@ export const ru: Record = { "luna.wheelGuard": "Защита от случайной прокрутки", "luna.wheelGuardWindow": "Интервал защиты колеса", "luna.sensorAngle": "Угол сенсора", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "Язык", "nav.settings": "Настройки", "nav.support": "Поддержка", diff --git a/src/i18n/locales/tr.ts b/src/i18n/locales/tr.ts index c0ad1a62..42523136 100644 --- a/src/i18n/locales/tr.ts +++ b/src/i18n/locales/tr.ts @@ -72,6 +72,45 @@ export const tr: Record = { "luna.wheelGuard": "Tekerlek yanlış dokunma koruması", "luna.wheelGuardWindow": "Tekerlek koruma süresi", "luna.sensorAngle": "Sensör açısı", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "Dil", "nav.settings": "Ayarlar", "nav.support": "Destek", diff --git a/src/i18n/locales/vi.ts b/src/i18n/locales/vi.ts index aefbe0c0..a89c0bb9 100644 --- a/src/i18n/locales/vi.ts +++ b/src/i18n/locales/vi.ts @@ -73,6 +73,45 @@ export const vi: Record = { "luna.wheelGuard": "Chống cuộn nhầm", "luna.wheelGuardWindow": "Khoảng bảo vệ con lăn", "luna.sensorAngle": "Góc cảm biến", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "Ngôn ngữ", "nav.settings": "Cài đặt", "nav.support": "Hỗ trợ", diff --git a/src/i18n/locales/zh.ts b/src/i18n/locales/zh.ts index 5f444e14..4c6a678e 100644 --- a/src/i18n/locales/zh.ts +++ b/src/i18n/locales/zh.ts @@ -73,6 +73,45 @@ export const zh: Record = { "luna.wheelGuard": "防误触滚轮", "luna.wheelGuardWindow": "防误触窗口", "luna.sensorAngle": "传感器角度", + "wl.sensorExtras": "Sensor & scroll", + "wl.lodMode": "Lift-off precision", + "wl.lodStandard": "Standard", + "wl.lodPrecise": "Precise", + "wl.sensorPos": "Sensor position", + "wl.sensorPosX": "Sensor X", + "wl.sensorPosY": "Sensor Y", + "wl.restore": "Restore", + "wl.bhopWheel": "BHop wheel", + "wl.bhopDirection": "Filter direction", + "wl.bhopBoth": "Both", + "wl.bhopUp": "Up", + "wl.bhopDown": "Down", + "wl.bhopWindow": "Filter window", + "wl.dongleScreen": "Dongle screen", + "wl.screenEffect": "Screen effect", + "wl.defaultScreen": "Default screen", + "wl.screenMouseStats": "Mouse stats", + "wl.screenUsbMonitor": "USB monitor", + "wl.screenMedia": "Media", + "wl.doubleTap": "Double-tap link", + "wl.doubleTapNote": "Double-tap the receiver touchscreen to open the configurator.", + "wl.uploadImages": "Upload images or GIFs", + "wl.uploadNote": "Up to 6 files (1 main + 5 random), 320 x 170, max 13 MB total.", + "wl.deleteImages": "Delete custom images", + "wl.resetProfile": "Reset active profile", + "wl.resetCard": "Reset device", + "wl.resetNote": "Restore the current profile or reset the mouse and receiver to factory defaults.", + "wl.macrosTitle": "Onboard macros", + "wl.loadMacros": "Read from mouse", + "wl.macroSlot": "Slot", + "wl.macroName": "Macro name", + "wl.macroAddKey": "Add key", + "wl.macroAddClick": "Add click", + "wl.macroAddDelay": "Add delay", + "wl.macroSave": "Save macro", + "wl.macroDelete": "Delete macro", + "wl.macroEmpty": "No steps yet.", + "wl.dynDpiRatio": "Ratio", "nav.language": "语言", "nav.settings": "设置", "nav.support": "支持",