mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-04-19 12:48:55 +00:00
feat: change t4g to ccb
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: T4G
|
name: CCB
|
||||||
col:
|
col:
|
||||||
- row:
|
- row:
|
||||||
- switch: { e: 3, n: 5, w: 4, s: 6 }
|
- switch: { e: 3, n: 5, w: 4, s: 6 }
|
||||||
@@ -36,8 +36,8 @@
|
|||||||
import("$lib/assets/layouts/m4gr.layout.yml").then(
|
import("$lib/assets/layouts/m4gr.layout.yml").then(
|
||||||
(it) => it.default as CompiledLayout,
|
(it) => it.default as CompiledLayout,
|
||||||
),
|
),
|
||||||
T4G: () =>
|
CCB: () =>
|
||||||
import("$lib/assets/layouts/t4g.layout.yml").then(
|
import("$lib/assets/layouts/ccb.layout.yml").then(
|
||||||
(it) => it.default as CompiledLayout,
|
(it) => it.default as CompiledLayout,
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export const PORT_FILTERS: Map<string, SerialPortFilter> = new Map([
|
|||||||
["X", { usbProductId: 0x818b, usbVendorId: 0x303a }],
|
["X", { usbProductId: 0x818b, usbVendorId: 0x303a }],
|
||||||
["M4G S3 (pre-production)", { usbProductId: 0x1001, usbVendorId: 0x303a }],
|
["M4G S3 (pre-production)", { usbProductId: 0x1001, usbVendorId: 0x303a }],
|
||||||
["M4G S3", { usbProductId: 0x829a, usbVendorId: 0x303a }],
|
["M4G S3", { usbProductId: 0x829a, usbVendorId: 0x303a }],
|
||||||
["T4G S2", { usbProductId: 0x82f2, usbVendorId: 0x303a }],
|
["CCB S2", { usbProductId: 0x82f2, usbVendorId: 0x303a }],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const DEVICE_ALIASES = new Map<string, Set<string>>([
|
const DEVICE_ALIASES = new Map<string, Set<string>>([
|
||||||
@@ -30,7 +30,7 @@ const DEVICE_ALIASES = new Map<string, Set<string>>([
|
|||||||
["CCX", new Set(["X", "ccx"])],
|
["CCX", new Set(["X", "ccx"])],
|
||||||
["M4G", new Set(["M4G S3", "m4g_s3", "M4G S3 (pre-production)"])],
|
["M4G", new Set(["M4G S3", "m4g_s3", "M4G S3 (pre-production)"])],
|
||||||
["M4G (right)", new Set(["M4GR S3", "m4gr_s3"])],
|
["M4G (right)", new Set(["M4GR S3", "m4gr_s3"])],
|
||||||
["T4G", new Set(["T4G S2", "t4g_s2"])],
|
["CCB", new Set(["T4G S2", "t4g_s2", "CCB S2", "ccb s2"])],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export function getName(alias: string): string {
|
export function getName(alias: string): string {
|
||||||
@@ -67,6 +67,7 @@ const KEY_COUNTS = {
|
|||||||
M4G: 90,
|
M4G: 90,
|
||||||
M4GR: 90,
|
M4GR: 90,
|
||||||
T4G: 7,
|
T4G: 7,
|
||||||
|
CCB: 7,
|
||||||
ZERO: 256,
|
ZERO: 256,
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user