Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
feat(desktop): 设置页加入 Switch / 通用手柄并支持 Switch 2 Pro (#3707)
Dash14a709895f0c
diff --git a/apps/desktop/forge.config.ts b/apps/desktop/forge.config.tsindex 035872286f..0056e46dea 100644--- a/apps/desktop/forge.config.ts+++ b/apps/desktop/forge.config.ts@@ -984,6 +984,18 @@ function buildMacIOSSimulatorHelper(platform: ForgePlatform, arch: ForgeArch): v}}+function compileCObjectForTarget(+ src: string,+ dest: string,+ target: string,+ extraArgs: string[],+ label: string,+): void {+ const r = spawnSync('clang', ['-c', src, '-target', target, ...extraArgs, '-o', dest], { stdio: 'inherit' });+ if (r.error) throw new Error(`[forge] clang spawn failed for ${label}: ${r.error.message}`);+ if (r.status !== 0) throw new Error(`[forge] clang failed for ${label} (${target}) with exit code ${r.status}`);+}+function runSwiftcForTarget(src: string, dest: string, target: string, extraArgs: string[], label: string): void {const r = spawnSync('swiftc', ['-target', target, src, ...extraArgs, '-o', dest], { stdio: 'inherit' });if (r.error) throw new Error(`[forge] swiftc spawn failed for ${label}: ${r.error.message}`);@@ -1019,20 +1031,43 @@ function buildSwiftHelperForForgeArch(function buildMacXboxGamepadHelper(platform: ForgePlatform, arch: ForgeArch): void {if (process.platform !== 'darwin' || !isMacForgePlatform(platform)) return;const src = path.join(__dirname, 'native', 'xbox-gamepad', 'macos-xbox-gamepad-helper.swift');+ const switch2UsbC = path.join(__dirname, 'native', 'xbox-gamepad', 'switch2_usb.c');+ const switch2UsbH = path.join(__dirname, 'native', 'xbox-gamepad', 'switch2_usb.h');const destDir = path.join(__dirname, 'resources', 'tools', 'xbox-gamepad');const dest = path.join(destDir, 'cindy-macos-xbox-gamepad-helper');if (!fs.existsSync(src)) {throw new Error(`[forge] Xbox gamepad helper source missing at ${src}`);}+ if (!fs.existsSync(switch2UsbC) || !fs.existsSync(switch2UsbH)) {+ throw new Error(`[forge] Switch 2 USB helper source missing at ${switch2UsbC}`);+ }fs.mkdirSync(destDir, { recursive: true });- buildSwiftHelperForForgeArch(- src,- dest,- arch,- MACOS_XBOX_GAMEPAD_HELPER_DEPLOYMENT_TARGET,- ['-framework', 'GameController', '-framework', 'IOKit'],- 'Xbox gamepad helper',- );+ const targets = swiftTargetTriplesForForgeArch(arch, MACOS_XBOX_GAMEPAD_HELPER_DEPLOYMENT_TARGET);+ const compileOne = (output: string, target: string, objectDir: string): void => {+ const object = path.join(objectDir, `switch2_usb-${target.split('-')[0]}.o`);+ compileCObjectForTarget(switch2UsbC, object, target, [], 'Xbox gamepad helper C');+ runSwiftcForTarget(+ src,+ output,+ target,+ [object, '-import-objc-header', switch2UsbH, '-framework', 'GameController', '-framework', 'IOKit'],+ 'Xbox gamepad helper',+ );+ };+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'xdt-xbox-gamepad-helper-'));+ try {+ if (targets.length === 1) {+ compileOne(dest, targets[0], tempDir);+ } else {+ const outputs = targets.map((target) => path.join(tempDir, `${path.basename(dest)}-${target.split('-')[0]}`));+ targets.forEach((target, index) => compileOne(outputs[index], target, tempDir));+ const r = spawnSync('lipo', ['-create', ...outputs, '-output', dest], { stdio: 'inherit' });+ if (r.error) throw new Error(`[forge] lipo spawn failed for Xbox gamepad helper: ${r.error.message}`);+ if (r.status !== 0) throw new Error(`[forge] lipo failed for Xbox gamepad helper with exit code ${r.status}`);+ }+ } finally {+ fs.rmSync(tempDir, { recursive: true, force: true });+ }fs.chmodSync(dest, 0o755);}diff --git a/apps/desktop/native/xbox-gamepad/macos-xbox-gamepad-helper.swift b/apps/desktop/native/xbox-gamepad/macos-xbox-gamepad-helper.swiftindex 0388a540a3..ec2bcbab6d 100644--- a/apps/desktop/native/xbox-gamepad/macos-xbox-gamepad-helper.swift+++ b/apps/desktop/native/xbox-gamepad/macos-xbox-gamepad-helper.swift@@ -156,6 +156,8 @@ final class XboxGamepadReporter {/// nil until the first refresh, so an empty device list still gets logged once.private var lastSeenSummary: String?private var lastPresenceSignature: [String: String] = [:]+ private var switch2UsbWanted = false+ private var switch2PollTimer: Timer?func start() {if #available(macOS 11.3, *) {@@ -178,6 +180,28 @@ final class XboxGamepadReporter {refresh()}+ func setSwitch2UsbWanted(_ wanted: Bool) {+ if switch2UsbWanted == wanted { return }+ switch2UsbWanted = wanted+ if wanted {+ _ = switch2_usb_ensure()+ if switch2PollTimer == nil {+ switch2PollTimer = Timer.scheduledTimer(withTimeInterval: 0.008, repeats: true) { [weak self] _ in+ self?.refreshSwitch2IfNeeded()+ }+ }+ refreshSwitch2IfNeeded()+ return+ }+ switch2PollTimer?.invalidate()+ switch2PollTimer = nil+ switch2_usb_shutdown()+ if observed["nintendo"] == nil, lastPresenceSignature["nintendo"] != "absent" {+ lastPresenceSignature["nintendo"] = "absent"+ emit(["kind": "presence", "present": false, "family": "nintendo"])+ }+ }+func refresh() {let all = GCController.controllers()let summary = all@@ -205,6 +229,12 @@ final class XboxGamepadReporter {for family in GAMEPAD_FAMILIES {guard let controller = next[family] else {+ if family == "nintendo" {+ observed[family] = nil+ if switch2UsbWanted {+ continue+ }+ }if observed[family] != nil || lastPresenceSignature[family] != "absent" {observed[family] = nillastPresenceSignature[family] = "absent"@@ -219,6 +249,77 @@ final class XboxGamepadReporter {emitPresence(from: controller, family: family)emitFrame(from: controller, family: family)}+ if next["nintendo"] == nil {+ refreshSwitch2IfNeeded()+ }+ }++ private func refreshSwitch2IfNeeded() {+ if !switch2UsbWanted { return }+ if observed["nintendo"] != nil { return }+ var state = Switch2UsbState()+ switch2_usb_copy_state(&state)+ if !state.present {+ if lastPresenceSignature["nintendo"] != "absent" {+ lastPresenceSignature["nintendo"] = "absent"+ emit(["kind": "presence", "present": false, "family": "nintendo"])+ }+ return+ }+ emitSwitch2(state)+ }++ private func emitSwitch2(_ state: Switch2UsbState) {+ let payload: [String: Any] = [+ "kind": "presence",+ "present": true,+ "name": "Pro Controller",+ "category": "Nintendo Switch 2",+ "family": "nintendo",+ "transport": "usb",+ "batteryState": "unknown",+ ]+ let signature = "switch2-usb:Pro Controller"+ if signature != lastPresenceSignature["nintendo"] {+ lastPresenceSignature["nintendo"] = signature+ emit(payload)+ emit([+ "kind": "log",+ "level": "info",+ "message": "controllers: Nintendo/Pro Controller/family=nintendo (switch2-usb)",+ ])+ }+ emit([+ "kind": "frame",+ "family": "nintendo",+ "buttons": [+ "a": state.a,+ "b": state.b,+ "x": state.x,+ "y": state.y,+ "lb": state.lb,+ "rb": state.rb,+ "lt": state.lt,+ "rt": state.rt,+ "view": state.view,+ "menu": state.menu,+ "xbox": state.xbox,+ "ls": state.ls,+ "rs": state.rs,+ "dpadUp": state.dpad_up,+ "dpadDown": state.dpad_down,+ "dpadLeft": state.dpad_left,+ "dpadRight": state.dpad_right,+ ],+ "axes": [+ "lx": state.lx,+ "ly": state.ly,+ "rx": state.rx,+ "ry": state.ry,+ ],+ "ltAnalog": state.lt ? 1.0 : 0.0,+ "rtAnalog": state.rt ? 1.0 : 0.0,+ ])}private func attach(_ controller: GCController) {@@ -290,6 +391,16 @@ DispatchQueue.global(qos: .utility).async {reporter.refresh()}}+ if trimmed == "switch2-usb on" {+ DispatchQueue.main.async {+ reporter.setSwitch2UsbWanted(true)+ }+ }+ if trimmed == "switch2-usb off" {+ DispatchQueue.main.async {+ reporter.setSwitch2UsbWanted(false)+ }+ }}exit(0)}diff --git a/apps/desktop/native/xbox-gamepad/switch2_usb.c b/apps/desktop/native/xbox-gamepad/switch2_usb.cnew file mode 100644index 0000000000..d7c54d8f87--- /dev/null+++ b/apps/desktop/native/xbox-gamepad/switch2_usb.c@@ -0,0 +1,435 @@+#include "switch2_usb.h"++#include <CoreFoundation/CoreFoundation.h>+#include <IOKit/IOCFPlugIn.h>+#include <IOKit/IOKitLib.h>+#include <IOKit/hid/IOHIDLib.h>+#include <IOKit/usb/IOUSBLib.h>++#include <pthread.h>+#include <stdio.h>+#include <string.h>+#include <unistd.h>++#define NINTENDO_VID 0x057E+#define SWITCH2_PRO_PID 0x2069+#define SWITCH2_IFACE 1++static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER;+static pthread_t g_thread;+static bool g_thread_started = false;+static volatile bool g_stop = false;+static Switch2UsbState g_state;++static IOUSBInterfaceInterface **g_iface = NULL;+static UInt8 g_pipe_out = 0;+static UInt8 g_pipe_in = 0;+static IOHIDManagerRef g_hid_manager = NULL;+static uint8_t g_hid_buffer[128];++static double clamp_axis(double value) {+ if (value > -0.15 && value < 0.15) return 0;+ if (value < -1) return -1;+ if (value > 1) return 1;+ return value;+}++static double axis12(unsigned raw, bool invert) {+ double value = (raw / 4095.0) * 2.0 - 1.0;+ if (invert) value = -value;+ return clamp_axis(value);+}++static void parse_packet(const uint8_t *data, int size) {+ if (size < 17) return;+ Switch2UsbState next;+ memset(&next, 0, sizeof(next));+ next.present = true;+ snprintf(next.name, sizeof(next.name), "Pro Controller");+ next.x = (data[5] & 0x01) != 0;+ next.y = (data[5] & 0x02) != 0;+ next.a = (data[5] & 0x04) != 0;+ next.b = (data[5] & 0x08) != 0;+ next.rb = (data[5] & 0x40) != 0;+ next.rt = (data[5] & 0x80) != 0;+ next.view = (data[6] & 0x01) != 0;+ next.menu = (data[6] & 0x02) != 0;+ next.rs = (data[6] & 0x04) != 0;+ next.ls = (data[6] & 0x08) != 0;+ next.xbox = (data[6] & 0x10) != 0;+ next.dpad_down = (data[7] & 0x01) != 0;+ next.dpad_up = (data[7] & 0x02) != 0;+ next.dpad_right = (data[7] & 0x04) != 0;+ next.dpad_left = (data[7] & 0x08) != 0;+ next.lb = (data[7] & 0x40) != 0;+ next.lt = (data[7] & 0x80) != 0;+ next.lx = axis12((unsigned)(data[11] | ((data[12] & 0x0F) << 8)), false);+ next.ly = axis12((unsigned)((data[12] >> 4) | (data[13] << 4)), false);+ next.rx = axis12((unsigned)(data[14] | ((data[15] & 0x0F) << 8)), false);+ next.ry = axis12((unsigned)((data[15] >> 4) | (data[16] << 4)), false);+ pthread_mutex_lock(&g_lock);+ g_state = next;+ pthread_mutex_unlock(&g_lock);+}++static void hid_report(+ void *context,+ IOReturn result,+ void *sender,+ IOHIDReportType type,+ uint32_t report_id,+ uint8_t *report,+ CFIndex length+) {+ (void)context;+ (void)result;+ (void)sender;+ (void)type;+ if (length <= 0) return;+ uint8_t packet[64];+ memset(packet, 0, sizeof(packet));+ if (report_id != 0 && (length < 1 || report[0] != report_id)) {+ packet[0] = (uint8_t)report_id;+ CFIndex copy = length;+ if (copy > 63) copy = 63;+ memcpy(packet + 1, report, (size_t)copy);+ parse_packet(packet, (int)copy + 1);+ } else {+ CFIndex copy = length;+ if (copy > 64) copy = 64;+ memcpy(packet, report, (size_t)copy);+ parse_packet(packet, (int)copy);+ }+}++static void pick_first_hid(const void *value, void *context) {+ IOHIDDeviceRef *out = (IOHIDDeviceRef *)context;+ if (*out == NULL) *out = (IOHIDDeviceRef)value;+}++static void close_hid(void) {+ if (g_hid_manager) {+ IOHIDManagerUnscheduleFromRunLoop(g_hid_manager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);+ IOHIDManagerClose(g_hid_manager, kIOHIDOptionsTypeNone);+ CFRelease(g_hid_manager);+ g_hid_manager = NULL;+ }+}++static bool open_hid(void) {+ close_hid();+ IOHIDManagerRef manager = IOHIDManagerCreate(kCFAllocatorDefault, kIOHIDOptionsTypeNone);+ if (!manager) return false;+ int vid = NINTENDO_VID;+ int pid = SWITCH2_PRO_PID;+ CFNumberRef vid_num = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &vid);+ CFNumberRef pid_num = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &pid);+ CFMutableDictionaryRef matching = CFDictionaryCreateMutable(+ kCFAllocatorDefault,+ 0,+ &kCFTypeDictionaryKeyCallBacks,+ &kCFTypeDictionaryValueCallBacks+ );+ CFDictionarySetValue(matching, CFSTR(kIOHIDVendorIDKey), vid_num);+ CFDictionarySetValue(matching, CFSTR(kIOHIDProductIDKey), pid_num);+ CFRelease(vid_num);+ CFRelease(pid_num);+ IOHIDManagerSetDeviceMatching(manager, matching);+ CFRelease(matching);+ if (IOHIDManagerOpen(manager, kIOHIDOptionsTypeNone) != kIOReturnSuccess) {+ CFRelease(manager);+ return false;+ }+ CFSetRef devices = IOHIDManagerCopyDevices(manager);+ if (!devices || CFSetGetCount(devices) == 0) {+ if (devices) CFRelease(devices);+ IOHIDManagerClose(manager, kIOHIDOptionsTypeNone);+ CFRelease(manager);+ return false;+ }+ IOHIDDeviceRef device = NULL;+ CFSetApplyFunction(devices, pick_first_hid, &device);+ CFRelease(devices);+ if (!device) {+ IOHIDManagerClose(manager, kIOHIDOptionsTypeNone);+ CFRelease(manager);+ return false;+ }+ IOHIDDeviceRegisterInputReportCallback(device, g_hid_buffer, sizeof(g_hid_buffer), hid_report, NULL);+ IOHIDManagerScheduleWithRunLoop(manager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);+ g_hid_manager = manager;+ return true;+}++static void close_iface(void) {+ close_hid();+ if (g_iface) {+ (*g_iface)->USBInterfaceClose(g_iface);+ (*g_iface)->Release(g_iface);+ g_iface = NULL;+ }+ g_pipe_in = 0;+ g_pipe_out = 0;+}++static int send_bulk(const uint8_t *data, UInt32 size) {+ if (!g_iface || !g_pipe_out) return -1;+ IOReturn kr = (*g_iface)->WritePipe(g_iface, g_pipe_out, (void *)data, size);+ return kr == kIOReturnSuccess ? (int)size : -1;+}++static int recv_bulk(uint8_t *data, UInt32 size, UInt32 timeout_ms) {+ if (!g_iface || !g_pipe_in) return -1;+ UInt32 remaining = size;+ IOReturn kr = (*g_iface)->ReadPipeTO(g_iface, g_pipe_in, data, &remaining, timeout_ms, timeout_ms);+ if (kr == kIOReturnSuccess) return (int)remaining;+ if (kr == kIOUSBTransactionTimeout) return 0;+ return -1;+}++static bool open_interface(io_service_t service) {+ IOCFPlugInInterface **plugin = NULL;+ SInt32 score = 0;+ IOReturn kr = IOCreatePlugInInterfaceForService(+ service,+ kIOUSBInterfaceUserClientTypeID,+ kIOCFPlugInInterfaceID,+ &plugin,+ &score+ );+ if (kr != kIOReturnSuccess || !plugin) return false;++ IOUSBInterfaceInterface **iface = NULL;+ HRESULT hr = (*plugin)->QueryInterface(+ plugin,+ CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID),+ (LPVOID *)&iface+ );+ (*plugin)->Release(plugin);+ if (hr != S_OK || !iface) return false;++ UInt8 number = 0;+ (*iface)->GetInterfaceNumber(iface, &number);+ if (number != SWITCH2_IFACE) {+ (*iface)->Release(iface);+ return false;+ }++ kr = (*iface)->USBInterfaceOpen(iface);+ if (kr != kIOReturnSuccess) {+ (*iface)->Release(iface);+ return false;+ }++ UInt8 pipes = 0;+ (*iface)->GetNumEndpoints(iface, &pipes);+ UInt8 pipe_in = 0;+ UInt8 pipe_out = 0;+ for (UInt8 pipe = 1; pipe <= pipes; pipe++) {+ UInt8 direction = 0;+ UInt8 ep_number = 0;+ UInt8 transfer = 0;+ UInt8 interval = 0;+ UInt16 max_packet = 0;+ kr = (*iface)->GetPipeProperties(iface, pipe, &direction, &ep_number, &transfer, &max_packet, &interval);+ if (kr != kIOReturnSuccess) continue;+ if (transfer != kUSBBulk) continue;+ if (direction == kUSBIn) pipe_in = pipe;+ if (direction == kUSBOut) pipe_out = pipe;+ }+ if (!pipe_in || !pipe_out) {+ (*iface)->USBInterfaceClose(iface);+ (*iface)->Release(iface);+ return false;+ }++ g_iface = iface;+ g_pipe_in = pipe_in;+ g_pipe_out = pipe_out;+ return true;+}++static bool open_device(void) {+ close_iface();+ CFMutableDictionaryRef matching = IOServiceMatching("IOUSBHostDevice");+ if (!matching) matching = IOServiceMatching(kIOUSBDeviceClassName);+ if (!matching) return false;+ int vid = NINTENDO_VID;+ int pid = SWITCH2_PRO_PID;+ CFNumberRef vid_num = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &vid);+ CFNumberRef pid_num = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &pid);+ CFDictionarySetValue(matching, CFSTR(kUSBVendorID), vid_num);+ CFDictionarySetValue(matching, CFSTR(kUSBProductID), pid_num);+ CFRelease(vid_num);+ CFRelease(pid_num);++ io_iterator_t iterator = 0;+ kern_return_t kr = IOServiceGetMatchingServices(kIOMasterPortDefault, matching, &iterator);+ if (kr != KERN_SUCCESS) {+ return false;+ }++ bool opened = false;+ io_service_t device;+ int seen = 0;+ while ((device = IOIteratorNext(iterator))) {+ seen += 1;+ IOCFPlugInInterface **plugin = NULL;+ SInt32 score = 0;+ kr = IOCreatePlugInInterfaceForService(+ device,+ kIOUSBDeviceUserClientTypeID,+ kIOCFPlugInInterfaceID,+ &plugin,+ &score+ );+ IOObjectRelease(device);+ if (kr != kIOReturnSuccess || !plugin) {+ continue;+ }++ IOUSBDeviceInterface **usb = NULL;+ HRESULT hr = (*plugin)->QueryInterface(+ plugin,+ CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID),+ (LPVOID *)&usb+ );+ (*plugin)->Release(plugin);+ if (hr != S_OK || !usb) {+ continue;+ }++ IOReturn device_open = (*usb)->USBDeviceOpenSeize(usb);+ if (device_open != kIOReturnSuccess) {+ device_open = (*usb)->USBDeviceOpen(usb);+ }+ if (device_open != kIOReturnSuccess) {+ (*usb)->Release(usb);+ continue;+ }++ IOUSBFindInterfaceRequest req;+ req.bInterfaceClass = kIOUSBFindInterfaceDontCare;+ req.bInterfaceSubClass = kIOUSBFindInterfaceDontCare;+ req.bInterfaceProtocol = kIOUSBFindInterfaceDontCare;+ req.bAlternateSetting = kIOUSBFindInterfaceDontCare;+ io_iterator_t ifaces = 0;+ kr = (*usb)->CreateInterfaceIterator(usb, &req, &ifaces);+ (*usb)->Release(usb);+ if (kr != kIOReturnSuccess) continue;++ io_service_t iface_service;+ while ((iface_service = IOIteratorNext(ifaces))) {+ if (open_interface(iface_service)) opened = true;+ IOObjectRelease(iface_service);+ if (opened) break;+ }+ IOObjectRelease(ifaces);+ if (opened) break;+ }+ IOObjectRelease(iterator);+ return opened;+}++static bool send_init(void) {+ static const uint8_t pkt0[] = { 0x07, 0x91, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 };+ static const uint8_t pkt1[] = { 0x0c, 0x91, 0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00 };+ static const uint8_t pkt2[] = { 0x11, 0x91, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 };+ static const uint8_t pkt3[] = {+ 0x0a, 0x91, 0x00, 0x08, 0x00, 0x14, 0x00, 0x00,+ 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,+ 0xff, 0x35, 0x00, 0x46, 0x00, 0x00, 0x00, 0x00,+ 0x00, 0x00, 0x00, 0x00,+ };+ static const uint8_t pkt4[] = { 0x0c, 0x91, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00 };+ static const uint8_t pkt5[] = { 0x01, 0x91, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00 };+ static const uint8_t pkt6[] = { 0x01, 0x91, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 };+ static const uint8_t pkt7[] = { 0x08, 0x91, 0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 };+ static const uint8_t pkt8[] = { 0x03, 0x91, 0x00, 0x0a, 0x00, 0x04, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00 };+ static const uint8_t pkt9[] = {+ 0x03, 0x91, 0x00, 0x0d, 0x00, 0x08, 0x00, 0x00,+ 0x01, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,+ };+ const uint8_t *packets[] = { pkt0, pkt1, pkt2, pkt3, pkt4, pkt5, pkt6, pkt7, pkt8, pkt9 };+ const size_t sizes[] = {+ sizeof(pkt0), sizeof(pkt1), sizeof(pkt2), sizeof(pkt3), sizeof(pkt4),+ sizeof(pkt5), sizeof(pkt6), sizeof(pkt7), sizeof(pkt8), sizeof(pkt9),+ };+ uint8_t reply[64];+ for (size_t i = 0; i < sizeof(packets) / sizeof(packets[0]); i++) {+ if (send_bulk(packets[i], (UInt32)sizes[i]) < 0) return false;+ (void)recv_bulk(reply, sizeof(reply), 200);+ }+ return true;+}++static void mark_absent(void) {+ pthread_mutex_lock(&g_lock);+ memset(&g_state, 0, sizeof(g_state));+ pthread_mutex_unlock(&g_lock);+}++static void *poll_thread(void *arg) {+ (void)arg;+ while (!g_stop) {+ if (!g_iface) {+ if (!open_device() || !send_init()) {+ close_iface();+ mark_absent();+ usleep(500 * 1000);+ continue;+ }+ (void)open_hid();+ }+ uint8_t packet[64];+ int n = recv_bulk(packet, sizeof(packet), 20);+ if (n < 0) {+ close_iface();+ mark_absent();+ continue;+ }+ if (n >= 17) parse_packet(packet, n);+ CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.02, true);+ }+ close_iface();+ mark_absent();+ return NULL;+}++bool switch2_usb_ensure(void) {+ pthread_mutex_lock(&g_lock);+ if (g_thread_started) {+ pthread_mutex_unlock(&g_lock);+ return true;+ }+ g_stop = false;+ memset(&g_state, 0, sizeof(g_state));+ if (pthread_create(&g_thread, NULL, poll_thread, NULL) != 0) {+ pthread_mutex_unlock(&g_lock);+ return false;+ }+ g_thread_started = true;+ pthread_mutex_unlock(&g_lock);+ return true;+}++void switch2_usb_copy_state(Switch2UsbState *out) {+ pthread_mutex_lock(&g_lock);+ *out = g_state;+ pthread_mutex_unlock(&g_lock);+}++void switch2_usb_shutdown(void) {+ pthread_mutex_lock(&g_lock);+ if (!g_thread_started) {+ pthread_mutex_unlock(&g_lock);+ return;+ }+ g_stop = true;+ pthread_t thread = g_thread;+ g_thread_started = false;+ pthread_mutex_unlock(&g_lock);+ pthread_join(thread, NULL);+ close_iface();+ mark_absent();+}diff --git a/apps/desktop/native/xbox-gamepad/switch2_usb.h b/apps/desktop/native/xbox-gamepad/switch2_usb.hnew file mode 100644index 0000000000..82c76d24ec--- /dev/null+++ b/apps/desktop/native/xbox-gamepad/switch2_usb.h@@ -0,0 +1,46 @@+#pragma once++#include <stdbool.h>+#include <stdint.h>++#ifdef __cplusplus+extern "C" {+#endif++typedef struct {+ bool present;+ char name[64];+ bool a;+ bool b;+ bool x;+ bool y;+ bool lb;+ bool rb;+ bool lt;+ bool rt;+ bool view;+ bool menu;+ bool xbox;+ bool ls;+ bool rs;+ bool dpad_up;+ bool dpad_down;+ bool dpad_left;+ bool dpad_right;+ double lx;+ double ly;+ double rx;+ double ry;+} Switch2UsbState;++/** Open the Switch 2 Pro over USB bulk, send SDL's init sequence, and start polling. */+bool switch2_usb_ensure(void);++/** Copy the latest parsed state. present=false if the pad is gone. */+void switch2_usb_copy_state(Switch2UsbState *out);++void switch2_usb_shutdown(void);++#ifdef __cplusplus+}+#endifdiff --git a/apps/desktop/src/main/input-devices/__tests__/previewLease.test.ts b/apps/desktop/src/main/input-devices/__tests__/previewLease.test.tsindex 78db627abc..8e15e69604 100644--- a/apps/desktop/src/main/input-devices/__tests__/previewLease.test.ts+++ b/apps/desktop/src/main/input-devices/__tests__/previewLease.test.ts@@ -31,6 +31,23 @@ describe('createLayoutPreviewLease', () => {expect(setActive).toHaveBeenCalledWith(false);});+ it('ignores a stale renderer turning preview off after another window owns it', () => {+ const setActive = vi.fn();+ const lease = createLayoutPreviewLease(setActive);+ const first = fakeOwner(1);+ const second = fakeOwner(2);++ lease.setActive(true, first);+ lease.setActive(true, second);+ setActive.mockClear();++ lease.setActive(false, first);+ expect(setActive).not.toHaveBeenCalled();++ lease.setActive(false, second);+ expect(setActive).toHaveBeenCalledWith(false);+ });+it('ignores a stale owner after another renderer takes the lease', () => {const setActive = vi.fn();const lease = createLayoutPreviewLease(setActive);diff --git a/apps/desktop/src/main/xbox-gamepad/__tests__/host.test.ts b/apps/desktop/src/main/xbox-gamepad/__tests__/host.test.tsindex 800e76cdee..a4af00522f 100644--- a/apps/desktop/src/main/xbox-gamepad/__tests__/host.test.ts+++ b/apps/desktop/src/main/xbox-gamepad/__tests__/host.test.ts@@ -227,6 +227,27 @@ describe('XboxGamepadHost', () => {expect(spawnHelper).not.toHaveBeenCalled();});+ it('tells the helper when Switch 2 USB should claim the pad', async () => {+ const child = fakeChild();+ const chunks: string[] = [];+ child.stdin.on('data', (chunk: string | Buffer) => {+ chunks.push(String(chunk));+ });+ const host = createXboxGamepadHost(vi.fn(), {+ resolveHelperPath: async () => '/helper',+ spawnHelper: () => child,+ });++ host.start();+ await flush();+ host.setSwitch2UsbWanted(true);+ host.setSwitch2UsbWanted(false);++ expect(chunks.join('')).toContain('switch2-usb on');+ expect(chunks.join('')).toContain('switch2-usb off');+ host.stop();+ });+it('does not report host-error when the helper is stopped on purpose', async () => {const onMessage = vi.fn();const child = fakeChild();@@ -270,11 +291,53 @@ describe('Xbox gamepad helper packaging contract', () => {expect(source).toContain('return "generic"');expect(source).not.toContain('func isXboxController');expect(source).not.toContain('all.first(where: isXboxController)');+ expect(source).toContain('switch2_usb_ensure');+ expect(source).toContain('switch2-usb on');+ expect(source).toContain('switch2-usb off');+ expect(source).toContain('switch2_usb_shutdown');+ expect(source).toContain('func setSwitch2UsbWanted');+ const startFn = source.match(/func start\(\) \{[\s\S]*?\n \}/)?.[0] ?? '';+ expect(startFn).not.toContain('switch2_usb_ensure');+ expect(startFn).not.toContain('scheduledTimer');+ expect(source).toContain('switch2PollTimer');+ expect(source).toMatch(+ /if family == "nintendo" \{[\s\S]*?if switch2UsbWanted \{[\s\S]*?continue/,+ );+ expect(source).not.toMatch(+ /if family == "nintendo" \{\s*observed\[family\] = nil\s*continue\s*\}/,+ );+ });++ it('compiles switch2_usb.c with clang before linking the object into swiftc', () => {+ const forge = readFileSync(new URL('../../../../forge.config.ts', import.meta.url), 'utf8');+ const host = readFileSync(new URL('../host.ts', import.meta.url), 'utf8');+ expect(forge).toContain("MACOS_XBOX_GAMEPAD_HELPER_DEPLOYMENT_TARGET = 'macos11.0'");+ expect(forge).toContain('compileCObjectForTarget');+ expect(forge).toContain("'clang'");+ expect(forge).toContain('switch2_usb.c');+ expect(forge).toContain('switch2_usb.h');+ expect(host).toContain("'clang'");+ expect(host).toContain("'-c'");+ expect(host).toContain('switch2_usb.o');+ expect(host).not.toMatch(/swiftc',[\s\S]*switch2UsbC/);+ expect(host).toContain('setSwitch2UsbWanted');+ const index = readFileSync(new URL('../index.ts', import.meta.url), 'utf8');+ expect(index).toContain('setSwitch2UsbWanted');+ expect(index).toContain('computeSwitch2UsbWanted');+ expect(index).toContain('taskSlotsSuspended');+ expect(index).toContain('layoutPreviewLease.setActive(false, owner)');+ expect(index).not.toMatch(/previewFamily = family;\s*layoutPreviewLease\.setActive\(active/);+ expect(index).not.toMatch(+ /setSwitch2UsbWanted\(\s*controller\.getAccessories\(\)\.nintendo\.settings\.deviceEnabled \|\| previewFamily === 'nintendo'/,+ );});- it('compiles the helper for macOS 11 so GameController Xbox APIs are available', () => {- const source = readFileSync(new URL('../../../../forge.config.ts', import.meta.url), 'utf8');- expect(source).toContain("MACOS_XBOX_GAMEPAD_HELPER_DEPLOYMENT_TARGET = 'macos11.0'");- expect(source).toContain('MACOS_XBOX_GAMEPAD_HELPER_DEPLOYMENT_TARGET');+ it('copies the matching HID set into a buffer sized for every device', () => {+ const source = readFileSync(+ new URL('../../../../native/xbox-gamepad/switch2_usb.c', import.meta.url),+ 'utf8',+ );+ expect(source).toContain('CFSetApplyFunction');+ expect(source).not.toContain('CFSetGetValues(devices, (const void **)&device)');});});diff --git a/apps/desktop/src/main/xbox-gamepad/__tests__/switch2UsbWanted.test.ts b/apps/desktop/src/main/xbox-gamepad/__tests__/switch2UsbWanted.test.tsnew file mode 100644index 0000000000..07cbf11418--- /dev/null+++ b/apps/desktop/src/main/xbox-gamepad/__tests__/switch2UsbWanted.test.ts@@ -0,0 +1,53 @@+import { describe, expect, it } from 'vitest';++import { computeSwitch2UsbWanted } from '../switch2UsbWanted.js';++describe('computeSwitch2UsbWanted', () => {+ it('turns USB off while task slots are suspended even if preview still claims Nintendo', () => {+ expect(+ computeSwitch2UsbWanted({+ taskSlotsSuspended: true,+ nintendoDeviceEnabled: true,+ previewFamily: 'nintendo',+ }),+ ).toBe(false);+ expect(+ computeSwitch2UsbWanted({+ taskSlotsSuspended: true,+ nintendoDeviceEnabled: false,+ previewFamily: 'nintendo',+ }),+ ).toBe(false);+ });++ it('allows USB when slots are live and Nintendo is enabled or previewed', () => {+ expect(+ computeSwitch2UsbWanted({+ taskSlotsSuspended: false,+ nintendoDeviceEnabled: true,+ previewFamily: null,+ }),+ ).toBe(true);+ expect(+ computeSwitch2UsbWanted({+ taskSlotsSuspended: false,+ nintendoDeviceEnabled: false,+ previewFamily: 'nintendo',+ }),+ ).toBe(true);+ expect(+ computeSwitch2UsbWanted({+ taskSlotsSuspended: false,+ nintendoDeviceEnabled: false,+ previewFamily: 'xbox',+ }),+ ).toBe(false);+ expect(+ computeSwitch2UsbWanted({+ taskSlotsSuspended: false,+ nintendoDeviceEnabled: false,+ previewFamily: null,+ }),+ ).toBe(false);+ });+});diff --git a/apps/desktop/src/main/xbox-gamepad/host.ts b/apps/desktop/src/main/xbox-gamepad/host.tsindex c317698188..9aa4b6cda9 100644--- a/apps/desktop/src/main/xbox-gamepad/host.ts+++ b/apps/desktop/src/main/xbox-gamepad/host.ts@@ -5,10 +5,7 @@ import { promisify } from 'node:util';import { app } from 'electron';import { createLogger } from '../logger.js';-import {- isXboxGamepadHostMessage,- type XboxGamepadHostMessage,-} from './protocol.js';+import { isXboxGamepadHostMessage, type XboxGamepadHostMessage } from './protocol.js';const execFilePromise = promisify(execFile);const log = createLogger('xbox-gamepad-host');@@ -23,6 +20,7 @@ export interface XboxGamepadHost {start(): void;probe(): void;stop(): void;+ setSwitch2UsbWanted(wanted: boolean): void;}export interface XboxGamepadHostDeps {@@ -41,6 +39,7 @@ export function createXboxGamepadHost(let child: ChildProcessWithoutNullStreams | null = null;let starting = false;let wanted = false;+ let switch2UsbWanted = false;let buffer = '';let consecutiveFailures = 0;let crashAccounted = false;@@ -102,6 +101,9 @@ export function createXboxGamepadHost(}};+ const writeSwitch2UsbWanted = (): boolean =>+ writeHelper(switch2UsbWanted ? 'switch2-usb on\n' : 'switch2-usb off\n');+const attach = (next: ChildProcessWithoutNullStreams): void => {child = next;starting = false;@@ -139,6 +141,7 @@ export function createXboxGamepadHost(reportHostFailure(`Xbox gamepad helper exited unexpectedly (${code ?? signal ?? 'unknown'})`);noteChildGone();});+ writeSwitch2UsbWanted();};const reportHostFailure = (message: string): void => {@@ -178,6 +181,11 @@ export function createXboxGamepadHost(if (writeHelper('probe\n')) return;void startChild();},+ setSwitch2UsbWanted(next: boolean) {+ if (switch2UsbWanted === next) return;+ switch2UsbWanted = next;+ writeSwitch2UsbWanted();+ },stop() {wanted = false;clearRestart();@@ -188,7 +196,8 @@ export function createXboxGamepadHost(try {if (!current.stdin.destroyed) {current.stdin.write('stop\n', (error) => {- if (error) log.debug('xbox gamepad helper stdin write failed', { error: error.message });+ if (error)+ log.debug('xbox gamepad helper stdin write failed', { error: error.message });});current.stdin.end();}@@ -214,11 +223,22 @@ async function resolveMacHelperPath(): Promise<string> {if (app.isPackaged && fs.existsSync(packaged)) return packaged;const source = resolveMacHelperSource();- const binary = path.join(app.getPath('userData'), 'xbox-gamepad', 'cindy-macos-xbox-gamepad-helper');+ const helperDir = path.dirname(source);+ const switch2UsbC = path.join(helperDir, 'switch2_usb.c');+ const switch2UsbH = path.join(helperDir, 'switch2_usb.h');+ const binary = path.join(+ app.getPath('userData'),+ 'xbox-gamepad',+ 'cindy-macos-xbox-gamepad-helper',+ );if (!fs.existsSync(source)) {throw new Error(`Xbox gamepad helper source missing at ${source}`);}- const sourceMtime = fs.statSync(source).mtimeMs;+ const sourceMtime = Math.max(+ fs.statSync(source).mtimeMs,+ fs.existsSync(switch2UsbC) ? fs.statSync(switch2UsbC).mtimeMs : 0,+ fs.existsSync(switch2UsbH) ? fs.statSync(switch2UsbH).mtimeMs : 0,+ );if (fs.existsSync(binary) && fs.statSync(binary).mtimeMs >= sourceMtime) {failedHelperSourceMtime = 0;return binary;@@ -227,11 +247,16 @@ async function resolveMacHelperPath(): Promise<string> {throw new Error('Xbox gamepad helper compile failed; waiting for source change');}fs.mkdirSync(path.dirname(binary), { recursive: true });+ const object = `${binary}.switch2_usb.o`;try {+ await execFilePromise('clang', ['-c', switch2UsbC, '-o', object], { timeout: 30_000 });await execFilePromise('swiftc',[source,+ object,+ '-import-objc-header',+ switch2UsbH,'-O','-framework','Foundation',@@ -242,7 +267,7 @@ async function resolveMacHelperPath(): Promise<string> {'-o',binary,],- { timeout: 20_000 },+ { timeout: 30_000 },);} catch (error) {failedHelperSourceMtime = sourceMtime;diff --git a/apps/desktop/src/main/xbox-gamepad/index.ts b/apps/desktop/src/main/xbox-gamepad/index.tsindex 3f94e73e68..647ee8e99e 100644--- a/apps/desktop/src/main/xbox-gamepad/index.ts+++ b/apps/desktop/src/main/xbox-gamepad/index.ts@@ -23,17 +23,24 @@ import {type GamepadFamily,type XboxGamepadPreviewInput,} from '../../shared/xboxGamepad.js';-import { assertTrustedAppRendererEvent, isTrustedAppRendererWindow } from '../security/trustedAppRenderer.js';+import {+ assertTrustedAppRendererEvent,+ isTrustedAppRendererWindow,+} from '../security/trustedAppRenderer.js';import { createWorkLouderCodexActiveWindowRouter } from '../worklouder-codex/actionWindow.js';import { XboxGamepadController } from './controller.js';import { createXboxGamepadHost } from './host.js';-import { createLayoutPreviewLease, layoutPreviewOwnerFromEvent } from '../input-devices/previewLease.js';+import {+ createLayoutPreviewLease,+ layoutPreviewOwnerFromEvent,+} from '../input-devices/previewLease.js';import { createXboxGamepadSettingsIpc } from './settingsIpc.js';import {readXboxGamepadSettings,resetXboxGamepadSettings,writeXboxGamepadSettingsPatch,} from './settingsStore.js';+import { computeSwitch2UsbWanted } from './switch2UsbWanted.js';const log = createLogger('xbox-gamepad');@@ -97,10 +104,23 @@ const host = createXboxGamepadHost((message) => {controller.handleHostMessage(message);});let previewFamily: GamepadFamily | null = null;+let taskSlotsSuspended = false;const layoutPreviewLease = createLayoutPreviewLease((active) => {+ if (!active) previewFamily = null;controller.setLayoutPreviewActive(active, active ? previewFamily : null);+ syncSwitch2Usb();});+function syncSwitch2Usb(): void {+ host.setSwitch2UsbWanted(+ computeSwitch2UsbWanted({+ taskSlotsSuspended,+ nintendoDeviceEnabled: controller.getAccessories().nintendo.settings.deviceEnabled,+ previewFamily,+ }),+ );+}+let inputDeviceRegistered = false;let settingsIpcRegistered = false;let focusHooksInstalled = false;@@ -116,13 +136,17 @@ export function registerXboxGamepadInputDevice(): void {},updateSessionActivity: () => undefined,resumeTaskSlots: async () => {+ taskSlotsSuspended = false;controller.applySettings(family, readXboxGamepadSettings(family));+ syncSwitch2Usb();},suspendTaskSlots: () => {+ taskSlotsSuspended = true;controller.applySettings(family, {...readXboxGamepadSettings(family),deviceEnabled: false,});+ syncSwitch2Usb();},dispose: async () => {host.stop();@@ -137,8 +161,12 @@ export function registerXboxGamepadSettingsIpc(): void {for (const family of GAMEPAD_FAMILIES) {controller.applySettings(family, readXboxGamepadSettings(family));}- if (process.platform === 'darwin') host.start();- else controller.markUnavailable();+ if (process.platform === 'darwin') {+ host.start();+ syncSwitch2Usb();+ } else {+ controller.markUnavailable();+ }installFocusHooks();const handlers = createXboxGamepadSettingsIpc({@@ -146,12 +174,22 @@ export function registerXboxGamepadSettingsIpc(): void {getState: () => controller.getAccessories(),writeSettings: writeXboxGamepadSettingsPatch,resetSettings: resetXboxGamepadSettings,- applySettings: (family, settings) => controller.applySettings(family, settings),+ applySettings: (family, settings) => {+ controller.applySettings(family, settings);+ syncSwitch2Usb();+ },probeDevice: () => host.probe(),setLayoutPreviewActive: (active, family, event) => {- previewFamily = family;- layoutPreviewLease.setActive(active, layoutPreviewOwnerFromEvent(event));- if (active) controller.setLayoutPreviewActive(true, family);+ const owner = layoutPreviewOwnerFromEvent(event);+ if (active) {+ if (!owner) return;+ previewFamily = family;+ layoutPreviewLease.setActive(true, owner);+ controller.setLayoutPreviewActive(true, family);+ syncSwitch2Usb();+ return;+ }+ layoutPreviewLease.setActive(false, owner);},});diff --git a/apps/desktop/src/main/xbox-gamepad/switch2UsbWanted.ts b/apps/desktop/src/main/xbox-gamepad/switch2UsbWanted.tsnew file mode 100644index 0000000000..310c620ebb--- /dev/null+++ b/apps/desktop/src/main/xbox-gamepad/switch2UsbWanted.ts@@ -0,0 +1,11 @@+import type { GamepadFamily } from '../../shared/xboxGamepad.js';++/** Switch 2 USB claim is wanted iff Nintendo hardware is allowed to run right now. */+export function computeSwitch2UsbWanted(input: {+ taskSlotsSuspended: boolean;+ nintendoDeviceEnabled: boolean;+ previewFamily: GamepadFamily | null;+}): boolean {+ if (input.taskSlotsSuspended) return false;+ return input.nintendoDeviceEnabled || input.previewFamily === 'nintendo';+}diff --git a/apps/desktop/src/renderer/components/settings/GenericGamepadLayout.tsx b/apps/desktop/src/renderer/components/settings/GenericGamepadLayout.tsxnew file mode 100644index 0000000000..c86760203c--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/GenericGamepadLayout.tsx@@ -0,0 +1,222 @@+import type { XboxGamepadButtonId, XboxGamepadStickId } from '../../../shared/xboxGamepad';++import {+ AnalogStick,+ GamepadArtBoard,+ GeomHit,+ GeomShape,+ GeomShapes,+ Hit,+ PressGeom,+} from './gamepadLayoutPrimitives';+import * as Art from './ultimateC1Silhouette';+import type { XboxGamepadLayoutProps } from './XboxGamepadLayout';++/** Ultimate C1 / 8BitDo-style pad: Xbox positions and Xbox printed letters. */+export function GenericGamepadLayout({+ disabled = false,+ hintFor,+ onEdit,+ preview,+}: XboxGamepadLayoutProps) {+ const pressed = (id: XboxGamepadButtonId) => preview?.buttons[id] ?? false;+ const analog = (id: XboxGamepadStickId) => preview?.sticks[id] ?? { x: 0, y: 0 };+ const trigger = (id: 'lt' | 'rt') => preview?.triggers[id] ?? 0;++ return (+ <GamepadArtBoard+ testId="generic-gamepad-layout"+ hits={+ <>+ <GeomHit+ part="lt"+ geom={Art.PRESS_LT}+ hint={hintFor('lt')}+ disabled={disabled}+ pressed={pressed('lt')}+ onEdit={onEdit}+ />+ <GeomHit+ part="rt"+ geom={Art.PRESS_RT}+ hint={hintFor('rt')}+ disabled={disabled}+ pressed={pressed('rt')}+ onEdit={onEdit}+ />+ <GeomHit+ part="lb"+ geom={Art.PRESS_LB}+ hint={hintFor('lb')}+ disabled={disabled}+ pressed={pressed('lb')}+ onEdit={onEdit}+ />+ <GeomHit+ part="rb"+ geom={Art.PRESS_RB}+ hint={hintFor('rb')}+ disabled={disabled}+ pressed={pressed('rb')}+ onEdit={onEdit}+ />+ <g data-testid="generic-gamepad-dpad">+ <GeomHit+ part="dpadUp"+ geom={Art.PRESS_DPAD_UP}+ hint={hintFor('dpadUp')}+ disabled={disabled}+ pressed={pressed('dpadUp')}+ onEdit={onEdit}+ />+ <GeomHit+ part="dpadDown"+ geom={Art.PRESS_DPAD_DOWN}+ hint={hintFor('dpadDown')}+ disabled={disabled}+ pressed={pressed('dpadDown')}+ onEdit={onEdit}+ />+ <GeomHit+ part="dpadLeft"+ geom={Art.PRESS_DPAD_LEFT}+ hint={hintFor('dpadLeft')}+ disabled={disabled}+ pressed={pressed('dpadLeft')}+ onEdit={onEdit}+ />+ <GeomHit+ part="dpadRight"+ geom={Art.PRESS_DPAD_RIGHT}+ hint={hintFor('dpadRight')}+ disabled={disabled}+ pressed={pressed('dpadRight')}+ onEdit={onEdit}+ />+ </g>+ <g data-testid="generic-gamepad-face">+ <GeomHit+ part="a"+ geom={Art.PRESS_A}+ hint={hintFor('a')}+ disabled={disabled}+ pressed={pressed('a')}+ onEdit={onEdit}+ />+ <GeomHit+ part="b"+ geom={Art.PRESS_B}+ hint={hintFor('b')}+ disabled={disabled}+ pressed={pressed('b')}+ onEdit={onEdit}+ />+ <GeomHit+ part="x"+ geom={Art.PRESS_X}+ hint={hintFor('x')}+ disabled={disabled}+ pressed={pressed('x')}+ onEdit={onEdit}+ />+ <GeomHit+ part="y"+ geom={Art.PRESS_Y}+ hint={hintFor('y')}+ disabled={disabled}+ pressed={pressed('y')}+ onEdit={onEdit}+ />+ </g>+ <GeomHit+ part="view"+ geom={Art.PRESS_MINUS}+ hint={hintFor('view')}+ disabled={disabled}+ pressed={pressed('view')}+ onEdit={onEdit}+ />+ <GeomHit+ part="menu"+ geom={Art.PRESS_PLUS}+ hint={hintFor('menu')}+ disabled={disabled}+ pressed={pressed('menu')}+ onEdit={onEdit}+ />+ </>+ }+ overlays={+ <>+ <Hit+ part="left"+ hint={hintFor('left')}+ disabled={disabled}+ pressed={pressed('ls')}+ onEdit={onEdit}+ box={[153.6, 233.4, 111.0, 110.1]}+ round+ testId="generic-gamepad-stick-left"+ />+ <Hit+ part="right"+ hint={hintFor('right')}+ disabled={disabled}+ pressed={pressed('rs')}+ onEdit={onEdit}+ box={[631.0, 368.4, 113.5, 112.2]}+ round+ testId="generic-gamepad-stick-right"+ />+ </>+ }+ >+ <GeomShapes geoms={Art.BODY} />+ <GeomShapes geoms={Art.USB} />+ <GeomShapes geoms={Art.PAIRING} />+ <GeomShape geom={Art.CHARGE_LED} />++ <PressGeom geom={Art.PRESS_LT} on={pressed('lt') || trigger('lt') > 0.08} />+ <PressGeom geom={Art.PRESS_RT} on={pressed('rt') || trigger('rt') > 0.08} />+ <PressGeom geom={Art.PRESS_LB} on={pressed('lb')} />+ <PressGeom geom={Art.PRESS_RB} on={pressed('rb')} />++ <AnalogStick+ well={Art.STICK_LEFT.slice(0, 2)}+ socket={Art.STICK_LEFT_SOCKET}+ moving={Art.STICK_LEFT.slice(2, 4)}+ press={Art.PRESS_STICK_LEFT}+ analog={analog('left')}+ clicked={pressed('ls')}+ />+ <AnalogStick+ well={Art.STICK_RIGHT.slice(0, 2)}+ socket={Art.STICK_RIGHT_SOCKET}+ moving={Art.STICK_RIGHT.slice(2, 4)}+ press={Art.PRESS_STICK_RIGHT}+ analog={analog('right')}+ clicked={pressed('rs')}+ />++ <GeomShapes geoms={Art.DPAD} />+ <PressGeom geom={Art.PRESS_DPAD_UP} on={pressed('dpadUp')} />+ <PressGeom geom={Art.PRESS_DPAD_DOWN} on={pressed('dpadDown')} />+ <PressGeom geom={Art.PRESS_DPAD_LEFT} on={pressed('dpadLeft')} />+ <PressGeom geom={Art.PRESS_DPAD_RIGHT} on={pressed('dpadRight')} />++ <GeomShapes geoms={Art.FACE_Y} />+ <GeomShapes geoms={Art.FACE_X} />+ <GeomShapes geoms={Art.FACE_B} />+ <GeomShapes geoms={Art.FACE_A} />+ <PressGeom geom={Art.PRESS_Y} on={pressed('y')} />+ <PressGeom geom={Art.PRESS_X} on={pressed('x')} />+ <PressGeom geom={Art.PRESS_B} on={pressed('b')} />+ <PressGeom geom={Art.PRESS_A} on={pressed('a')} />++ <GeomShapes geoms={Art.MINUS} />+ <GeomShapes geoms={Art.PLUS} />+ <PressGeom geom={Art.PRESS_MINUS} on={pressed('view')} />+ <PressGeom geom={Art.PRESS_PLUS} on={pressed('menu')} />+ </GamepadArtBoard>+ );+}diff --git a/apps/desktop/src/renderer/components/settings/JoyConGamepadLayout.tsx b/apps/desktop/src/renderer/components/settings/JoyConGamepadLayout.tsxnew file mode 100644index 0000000000..7135eaf360--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/JoyConGamepadLayout.tsx@@ -0,0 +1,241 @@+import type { XboxGamepadButtonId, XboxGamepadStickId } from '../../../shared/xboxGamepad';++import {+ AnalogStick,+ GamepadArtBoard,+ GeomHit,+ GeomShape,+ GeomShapes,+ Hit,+ PressGeom,+} from './gamepadLayoutPrimitives';+import * as Art from './joyConSilhouette';+import type { XboxGamepadLayoutProps } from './XboxGamepadLayout';++/**+ * Bindings stay on Apple/Xbox positions (A=bottom, B=right, X=left, Y=top).+ * Joy-Con prints Nintendo letters, so physical B/A/Y/X map onto a/b/x/y.+ */+export function JoyConGamepadLayout({+ disabled = false,+ hintFor,+ onEdit,+ preview,+}: XboxGamepadLayoutProps) {+ const pressed = (id: XboxGamepadButtonId) => preview?.buttons[id] ?? false;+ const analog = (id: XboxGamepadStickId) => preview?.sticks[id] ?? { x: 0, y: 0 };+ const trigger = (id: 'lt' | 'rt') => preview?.triggers[id] ?? 0;++ return (+ <GamepadArtBoard+ testId="joycon-gamepad-layout"+ hits={+ <>+ <GeomHit+ part="lt"+ geom={Art.PRESS_ZL}+ hint={hintFor('lt')}+ disabled={disabled}+ pressed={pressed('lt')}+ onEdit={onEdit}+ />+ <GeomHit+ part="rt"+ geom={Art.PRESS_ZR}+ hint={hintFor('rt')}+ disabled={disabled}+ pressed={pressed('rt')}+ onEdit={onEdit}+ />+ <GeomHit+ part="lb"+ geom={Art.PRESS_L}+ hint={hintFor('lb')}+ disabled={disabled}+ pressed={pressed('lb')}+ onEdit={onEdit}+ />+ <GeomHit+ part="rb"+ geom={Art.PRESS_R}+ hint={hintFor('rb')}+ disabled={disabled}+ pressed={pressed('rb')}+ onEdit={onEdit}+ />+ <g data-testid="joycon-gamepad-dpad">+ <GeomHit+ part="dpadUp"+ geom={Art.PRESS_DPAD_UP}+ hint={hintFor('dpadUp')}+ disabled={disabled}+ pressed={pressed('dpadUp')}+ onEdit={onEdit}+ />+ <GeomHit+ part="dpadDown"+ geom={Art.PRESS_DPAD_DOWN}+ hint={hintFor('dpadDown')}+ disabled={disabled}+ pressed={pressed('dpadDown')}+ onEdit={onEdit}+ />+ <GeomHit+ part="dpadLeft"+ geom={Art.PRESS_DPAD_LEFT}+ hint={hintFor('dpadLeft')}+ disabled={disabled}+ pressed={pressed('dpadLeft')}+ onEdit={onEdit}+ />+ <GeomHit+ part="dpadRight"+ geom={Art.PRESS_DPAD_RIGHT}+ hint={hintFor('dpadRight')}+ disabled={disabled}+ pressed={pressed('dpadRight')}+ onEdit={onEdit}+ />+ </g>+ <g data-testid="joycon-gamepad-face">+ <GeomHit+ part="a"+ geom={Art.PRESS_B}+ hint={hintFor('a')}+ disabled={disabled}+ pressed={pressed('a')}+ onEdit={onEdit}+ />+ <GeomHit+ part="b"+ geom={Art.PRESS_A}+ hint={hintFor('b')}+ disabled={disabled}+ pressed={pressed('b')}+ onEdit={onEdit}+ />+ <GeomHit+ part="x"+ geom={Art.PRESS_Y}+ hint={hintFor('x')}+ disabled={disabled}+ pressed={pressed('x')}+ onEdit={onEdit}+ />+ <GeomHit+ part="y"+ geom={Art.PRESS_X}+ hint={hintFor('y')}+ disabled={disabled}+ pressed={pressed('y')}+ onEdit={onEdit}+ />+ </g>+ <GeomHit+ part="view"+ geom={Art.PRESS_MINUS}+ hint={hintFor('view')}+ disabled={disabled}+ pressed={pressed('view')}+ onEdit={onEdit}+ />+ <GeomHit+ part="menu"+ geom={Art.PRESS_PLUS}+ hint={hintFor('menu')}+ disabled={disabled}+ pressed={pressed('menu')}+ onEdit={onEdit}+ />+ <GeomHit+ part="xbox"+ geom={Art.PRESS_HOME}+ hint={hintFor('xbox')}+ disabled={disabled}+ pressed={pressed('xbox')}+ onEdit={onEdit}+ />+ </>+ }+ overlays={+ <>+ <Hit+ part="left"+ hint={hintFor('left')}+ disabled={disabled}+ pressed={pressed('ls')}+ onEdit={onEdit}+ box={[297, 182, 90, 83]}+ round+ testId="joycon-gamepad-stick-left"+ />+ <Hit+ part="right"+ hint={hintFor('right')}+ disabled={disabled}+ pressed={pressed('rs')}+ onEdit={onEdit}+ box={[661, 360, 90, 83]}+ round+ testId="joycon-gamepad-stick-right"+ />+ </>+ }+ >+ <GeomShapes geoms={Art.BODY_LEFT} />+ <GeomShapes geoms={Art.RAIL_LEFT} />+ <GeomShape geom={Art.L_BUTTON} />+ <GeomShapes geoms={Art.BODY_RIGHT} />+ <GeomShapes geoms={Art.RAIL_RIGHT} />+ <GeomShape geom={Art.R_BUTTON} />++ <PressGeom geom={Art.PRESS_ZL} on={pressed('lt') || trigger('lt') > 0.08} />+ <PressGeom geom={Art.PRESS_ZR} on={pressed('rt') || trigger('rt') > 0.08} />+ <PressGeom geom={Art.PRESS_L} on={pressed('lb')} />+ <PressGeom geom={Art.PRESS_R} on={pressed('rb')} />++ <AnalogStick+ well={Art.LEFT_STICK.slice(3)}+ socket={Art.STICK_LEFT_SOCKET}+ moving={Art.LEFT_STICK.slice(0, 2)}+ press={Art.PRESS_STICK_LEFT}+ analog={analog('left')}+ clicked={pressed('ls')}+ />+ <AnalogStick+ well={Art.RIGHT_STICK.slice(3)}+ socket={Art.STICK_RIGHT_SOCKET}+ moving={Art.RIGHT_STICK.slice(0, 2)}+ press={Art.PRESS_STICK_RIGHT}+ analog={analog('right')}+ clicked={pressed('rs')}+ />++ <GeomShapes geoms={Art.DPAD_UP} />+ <GeomShapes geoms={Art.DPAD_RIGHT} />+ <GeomShapes geoms={Art.DPAD_DOWN} />+ <GeomShapes geoms={Art.DPAD_LEFT} />+ <PressGeom geom={Art.PRESS_DPAD_UP} on={pressed('dpadUp')} />+ <PressGeom geom={Art.PRESS_DPAD_DOWN} on={pressed('dpadDown')} />+ <PressGeom geom={Art.PRESS_DPAD_LEFT} on={pressed('dpadLeft')} />+ <PressGeom geom={Art.PRESS_DPAD_RIGHT} on={pressed('dpadRight')} />++ <GeomShapes geoms={Art.FACE_B} />+ <GeomShapes geoms={Art.FACE_A} />+ <GeomShapes geoms={Art.FACE_X} />+ <GeomShapes geoms={Art.FACE_Y} />+ <PressGeom geom={Art.PRESS_B} on={pressed('a')} />+ <PressGeom geom={Art.PRESS_A} on={pressed('b')} />+ <PressGeom geom={Art.PRESS_Y} on={pressed('x')} />+ <PressGeom geom={Art.PRESS_X} on={pressed('y')} />++ <GeomShapes geoms={Art.MINUS} />+ <GeomShapes geoms={Art.PLUS} />+ <GeomShapes geoms={Art.HOME} />+ <GeomShapes geoms={Art.CAPTURE} />+ <PressGeom geom={Art.PRESS_MINUS} on={pressed('view')} />+ <PressGeom geom={Art.PRESS_PLUS} on={pressed('menu')} />+ <PressGeom geom={Art.PRESS_HOME} on={pressed('xbox')} />+ </GamepadArtBoard>+ );+}diff --git a/apps/desktop/src/renderer/components/settings/SwitchProGamepadLayout.tsx b/apps/desktop/src/renderer/components/settings/SwitchProGamepadLayout.tsxnew file mode 100644index 0000000000..ba5cc6b314--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/SwitchProGamepadLayout.tsx@@ -0,0 +1,239 @@+import type { XboxGamepadButtonId, XboxGamepadStickId } from '../../../shared/xboxGamepad';++import {+ AnalogStick,+ GamepadArtBoard,+ GeomHit,+ GeomShape,+ GeomShapes,+ Hit,+ PressGeom,+} from './gamepadLayoutPrimitives';+import * as Art from './switchProSilhouette';+import type { XboxGamepadLayoutProps } from './XboxGamepadLayout';++/**+ * Bindings stay on Apple/Xbox positions (A=bottom, B=right, X=left, Y=top).+ * Switch Pro prints Nintendo letters, so physical B/A/Y/X map onto a/b/x/y.+ */+export function SwitchProGamepadLayout({+ disabled = false,+ hintFor,+ onEdit,+ preview,+}: XboxGamepadLayoutProps) {+ const pressed = (id: XboxGamepadButtonId) => preview?.buttons[id] ?? false;+ const analog = (id: XboxGamepadStickId) => preview?.sticks[id] ?? { x: 0, y: 0 };+ const trigger = (id: 'lt' | 'rt') => preview?.triggers[id] ?? 0;++ return (+ <GamepadArtBoard+ testId="switch-pro-gamepad-layout"+ hits={+ <>+ <GeomHit+ part="lt"+ geom={Art.PRESS_ZL}+ hint={hintFor('lt')}+ disabled={disabled}+ pressed={pressed('lt')}+ onEdit={onEdit}+ />+ <GeomHit+ part="rt"+ geom={Art.PRESS_ZR}+ hint={hintFor('rt')}+ disabled={disabled}+ pressed={pressed('rt')}+ onEdit={onEdit}+ />+ <GeomHit+ part="lb"+ geom={Art.PRESS_L}+ hint={hintFor('lb')}+ disabled={disabled}+ pressed={pressed('lb')}+ onEdit={onEdit}+ />+ <GeomHit+ part="rb"+ geom={Art.PRESS_R}+ hint={hintFor('rb')}+ disabled={disabled}+ pressed={pressed('rb')}+ onEdit={onEdit}+ />+ <g data-testid="switch-pro-gamepad-dpad">+ <GeomHit+ part="dpadUp"+ geom={Art.PRESS_DPAD_UP}+ hint={hintFor('dpadUp')}+ disabled={disabled}+ pressed={pressed('dpadUp')}+ onEdit={onEdit}+ />+ <GeomHit+ part="dpadDown"+ geom={Art.PRESS_DPAD_DOWN}+ hint={hintFor('dpadDown')}+ disabled={disabled}+ pressed={pressed('dpadDown')}+ onEdit={onEdit}+ />+ <GeomHit+ part="dpadLeft"+ geom={Art.PRESS_DPAD_LEFT}+ hint={hintFor('dpadLeft')}+ disabled={disabled}+ pressed={pressed('dpadLeft')}+ onEdit={onEdit}+ />+ <GeomHit+ part="dpadRight"+ geom={Art.PRESS_DPAD_RIGHT}+ hint={hintFor('dpadRight')}+ disabled={disabled}+ pressed={pressed('dpadRight')}+ onEdit={onEdit}+ />+ </g>+ <g data-testid="switch-pro-gamepad-face">+ <GeomHit+ part="a"+ geom={Art.PRESS_B}+ hint={hintFor('a')}+ disabled={disabled}+ pressed={pressed('a')}+ onEdit={onEdit}+ />+ <GeomHit+ part="b"+ geom={Art.PRESS_A}+ hint={hintFor('b')}+ disabled={disabled}+ pressed={pressed('b')}+ onEdit={onEdit}+ />+ <GeomHit+ part="x"+ geom={Art.PRESS_Y}+ hint={hintFor('x')}+ disabled={disabled}+ pressed={pressed('x')}+ onEdit={onEdit}+ />+ <GeomHit+ part="y"+ geom={Art.PRESS_X}+ hint={hintFor('y')}+ disabled={disabled}+ pressed={pressed('y')}+ onEdit={onEdit}+ />+ </g>+ <GeomHit+ part="view"+ geom={Art.PRESS_MINUS}+ hint={hintFor('view')}+ disabled={disabled}+ pressed={pressed('view')}+ onEdit={onEdit}+ />+ <GeomHit+ part="menu"+ geom={Art.PRESS_PLUS}+ hint={hintFor('menu')}+ disabled={disabled}+ pressed={pressed('menu')}+ onEdit={onEdit}+ />+ <GeomHit+ part="xbox"+ geom={Art.PRESS_HOME}+ hint={hintFor('xbox')}+ disabled={disabled}+ pressed={pressed('xbox')}+ onEdit={onEdit}+ />+ </>+ }+ overlays={+ <>+ <Hit+ part="left"+ hint={hintFor('left')}+ disabled={disabled}+ pressed={pressed('ls')}+ onEdit={onEdit}+ box={[205, 275, 116, 112]}+ round+ testId="switch-pro-gamepad-stick-left"+ />+ <Hit+ part="right"+ hint={hintFor('right')}+ disabled={disabled}+ pressed={pressed('rs')}+ onEdit={onEdit}+ box={[630, 400, 116, 112]}+ round+ testId="switch-pro-gamepad-stick-right"+ />+ </>+ }+ >+ <GeomShapes geoms={Art.BODY} />+ <GeomShapes geoms={Art.SHOULDER} />+ <GeomShapes geoms={Art.TOP_PANEL} />+ <GeomShapes geoms={Art.USB} />+ <GeomShape geom={Art.SYNC} />+ <GeomShape geom={Art.RECHARGE_LED} />+ <GeomShapes geoms={Art.NFC_TOUCHPOINT} />++ <PressGeom geom={Art.PRESS_ZL} on={pressed('lt') || trigger('lt') > 0.08} />+ <PressGeom geom={Art.PRESS_ZR} on={pressed('rt') || trigger('rt') > 0.08} />+ <PressGeom geom={Art.PRESS_L} on={pressed('lb')} />+ <PressGeom geom={Art.PRESS_R} on={pressed('rb')} />++ <AnalogStick+ well={Art.STICK_LEFT.slice(0, 2)}+ socket={Art.STICK_LEFT_SOCKET}+ moving={Art.STICK_LEFT.slice(2, 4)}+ press={Art.PRESS_STICK_LEFT}+ analog={analog('left')}+ clicked={pressed('ls')}+ />+ <AnalogStick+ well={Art.STICK_RIGHT.slice(0, 2)}+ socket={Art.STICK_RIGHT_SOCKET}+ moving={Art.STICK_RIGHT.slice(2, 4)}+ press={Art.PRESS_STICK_RIGHT}+ analog={analog('right')}+ clicked={pressed('rs')}+ />++ <GeomShapes geoms={Art.DPAD} />+ <PressGeom geom={Art.PRESS_DPAD_UP} on={pressed('dpadUp')} />+ <PressGeom geom={Art.PRESS_DPAD_DOWN} on={pressed('dpadDown')} />+ <PressGeom geom={Art.PRESS_DPAD_LEFT} on={pressed('dpadLeft')} />+ <PressGeom geom={Art.PRESS_DPAD_RIGHT} on={pressed('dpadRight')} />++ <GeomShapes geoms={Art.FACE_B} />+ <GeomShapes geoms={Art.FACE_A} />+ <GeomShapes geoms={Art.FACE_X} />+ <GeomShapes geoms={Art.FACE_Y} />+ <PressGeom geom={Art.PRESS_B} on={pressed('a')} />+ <PressGeom geom={Art.PRESS_A} on={pressed('b')} />+ <PressGeom geom={Art.PRESS_Y} on={pressed('x')} />+ <PressGeom geom={Art.PRESS_X} on={pressed('y')} />++ <GeomShapes geoms={Art.MINUS} />+ <GeomShapes geoms={Art.PLUS} />+ <GeomShapes geoms={Art.HOME} />+ <GeomShapes geoms={Art.CAPTURE} />+ <PressGeom geom={Art.PRESS_MINUS} on={pressed('view')} />+ <PressGeom geom={Art.PRESS_PLUS} on={pressed('menu')} />+ <PressGeom geom={Art.PRESS_HOME} on={pressed('xbox')} />+ </GamepadArtBoard>+ );+}diff --git a/apps/desktop/src/renderer/components/settings/XboxGamepadSettings.tsx b/apps/desktop/src/renderer/components/settings/XboxGamepadSettings.tsxindex 5b2517f159..aec135c4d5 100644--- a/apps/desktop/src/renderer/components/settings/XboxGamepadSettings.tsx+++ b/apps/desktop/src/renderer/components/settings/XboxGamepadSettings.tsx@@ -29,7 +29,10 @@ import {workLouderCodexCommandDescription,workLouderCodexCommandName,} from './workLouderCodexCommandCopy';+import { GenericGamepadLayout } from './GenericGamepadLayout';+import { JoyConGamepadLayout } from './JoyConGamepadLayout';import { PlayStationGamepadLayout } from './PlayStationGamepadLayout';+import { SwitchProGamepadLayout } from './SwitchProGamepadLayout';import {XboxGamepadLayout,type XboxGamepadEditablePart,@@ -40,6 +43,7 @@ import {cloneXboxGamepadLayout,createXboxGamepadDefaultLayout,createXboxGamepadDefaultSettings,+ isNintendoJoyConDevice,XBOX_GAMEPAD_STICK_DIRECTIONS,type GamepadFamily,type XboxGamepadBinding,@@ -206,13 +210,7 @@ function stickClickButton(stick: XboxGamepadStickId): XboxGamepadButtonId {return stick === 'left' ? 'ls' : 'rs';}-export function XboxGamepadSettings({- family,- onBack,-}: {- family: GamepadFamily;- onBack(): void;-}) {+export function XboxGamepadSettings({ family, onBack }: { family: GamepadFamily; onBack(): void }) {const { t } = useTranslation();const ns = gamepadCopyNs(family);const { state, loading, saving, error, setSettings, resetSettings, reload } = useXboxGamepad({@@ -286,6 +284,18 @@ export function XboxGamepadSettings({};};+ const layoutProps = {+ layout: settings.layout,+ disabled: !state || saving,+ hintFor,+ onEdit: setEditing,+ preview,+ labels: {+ leftStick: t(familyControlKey(family, 'leftStick')),+ rightStick: t(familyControlKey(family, 'rightStick')),+ },+ };+return (<div className="flex flex-col gap-[14px]"><div className="flex items-center justify-between gap-3">@@ -357,30 +367,17 @@ export function XboxGamepadSettings({</div><div className="flex justify-center">{family === 'playstation' ? (- <PlayStationGamepadLayout- layout={settings.layout}- disabled={!state || saving}- hintFor={hintFor}- onEdit={setEditing}- preview={preview}- labels={{- leftStick: t(familyControlKey(family, 'leftStick')),- rightStick: t(familyControlKey(family, 'rightStick')),- }}- />+ <PlayStationGamepadLayout {...layoutProps} />+ ) : family === 'nintendo' ? (+ isNintendoJoyConDevice(state?.device) ? (+ <JoyConGamepadLayout {...layoutProps} />+ ) : (+ <SwitchProGamepadLayout {...layoutProps} />+ )+ ) : family === 'generic' ? (+ <GenericGamepadLayout {...layoutProps} />) : (- <XboxGamepadLayout- layout={settings.layout}- disabled={!state || saving}- hintFor={hintFor}- onEdit={setEditing}- preview={preview}- variant={family === 'nintendo' ? 'nintendo' : 'xbox'}- labels={{- leftStick: t(familyControlKey(family, 'leftStick')),- rightStick: t(familyControlKey(family, 'rightStick')),- }}- />+ <XboxGamepadLayout {...layoutProps} />)}</div></SettingsCard>diff --git a/apps/desktop/src/renderer/components/settings/__tests__/ColleagueGamepadLayouts.test.tsx b/apps/desktop/src/renderer/components/settings/__tests__/ColleagueGamepadLayouts.test.tsxnew file mode 100644index 0000000000..3227f35ad5--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/__tests__/ColleagueGamepadLayouts.test.tsx@@ -0,0 +1,80 @@+// @vitest-environment jsdom++import type { ComponentType } from 'react';+import { fireEvent, render, screen } from '@testing-library/react';+import { describe, expect, it, vi } from 'vitest';++import { createXboxGamepadDefaultLayout } from '../../../../shared/xboxGamepad';+import { GenericGamepadLayout } from '../GenericGamepadLayout';+import { JoyConGamepadLayout } from '../JoyConGamepadLayout';+import { SwitchProGamepadLayout } from '../SwitchProGamepadLayout';+import type {+ XboxGamepadEditablePart,+ XboxGamepadKeyHint,+ XboxGamepadLayoutProps,+} from '../XboxGamepadLayout';++function hintFor(part: XboxGamepadEditablePart): XboxGamepadKeyHint {+ return { legend: part };+}++const labels = { leftStick: '左摇杆', rightStick: '右摇杆' };++const CONTROLS = ['a', 'b', 'x', 'y', 'lb', 'rb', 'lt', 'rt', 'view', 'menu', 'xbox'] as const;++function renderLayout(Layout: ComponentType<XboxGamepadLayoutProps>, onEdit = vi.fn()) {+ render(+ <Layout+ layout={createXboxGamepadDefaultLayout()}+ hintFor={hintFor}+ onEdit={onEdit}+ preview={null}+ labels={labels}+ />,+ );+ return onEdit;+}++describe('colleague gamepad layouts', () => {+ it.each([+ ['Switch Pro', SwitchProGamepadLayout, 'switch-pro-gamepad-layout', CONTROLS],+ ['Joy-Con', JoyConGamepadLayout, 'joycon-gamepad-layout', CONTROLS],+ [+ 'Ultimate C1',+ GenericGamepadLayout,+ 'generic-gamepad-layout',+ CONTROLS.filter((part) => part !== 'xbox'),+ ],+ ] as const)('exposes every bindable control on %s', (_name, Layout, testId, parts) => {+ renderLayout(Layout);+ expect(screen.getByTestId(testId)).toBeTruthy();+ for (const part of parts) {+ expect(screen.getByRole('button', { name: part })).toBeTruthy();+ }+ if (Layout === GenericGamepadLayout) {+ expect(screen.queryByRole('button', { name: 'xbox' })).toBeNull();+ }+ });++ it('opens the matching Nintendo face binding when the physical B (bottom) is clicked', () => {+ const onEdit = renderLayout(SwitchProGamepadLayout);+ fireEvent.click(screen.getByRole('button', { name: 'a' }));+ expect(onEdit).toHaveBeenCalledWith('a');+ });++ it('opens the matching Xbox face binding on Ultimate C1', () => {+ const onEdit = renderLayout(GenericGamepadLayout);+ fireEvent.click(screen.getByRole('button', { name: 'a' }));+ expect(onEdit).toHaveBeenCalledWith('a');+ });++ it.each([+ ['Switch Pro', SwitchProGamepadLayout, 'switch-pro-gamepad-stick'],+ ['Joy-Con', JoyConGamepadLayout, 'joycon-gamepad-stick'],+ ['Ultimate C1', GenericGamepadLayout, 'generic-gamepad-stick'],+ ] as const)('keeps %s stick hotspots on Tip without a native title', (_name, Layout, prefix) => {+ renderLayout(Layout);+ expect(screen.getByTestId(`${prefix}-left`).getAttribute('title')).toBeNull();+ expect(screen.getByTestId(`${prefix}-right`).getAttribute('title')).toBeNull();+ });+});diff --git a/apps/desktop/src/renderer/components/settings/__tests__/KeyboardShortcutsSection.accessories.test.tsx b/apps/desktop/src/renderer/components/settings/__tests__/KeyboardShortcutsSection.accessories.test.tsxindex 81c3f53edb..38d8afa9ff 100644--- a/apps/desktop/src/renderer/components/settings/__tests__/KeyboardShortcutsSection.accessories.test.tsx+++ b/apps/desktop/src/renderer/components/settings/__tests__/KeyboardShortcutsSection.accessories.test.tsx@@ -151,8 +151,8 @@ describe('KeyboardShortcutsSection accessories', () => {).toBeTruthy();expect(screen.getByRole('button', { name: GAMEPAD_OPEN.xbox })).toBeTruthy();expect(screen.getByRole('button', { name: GAMEPAD_OPEN.playstation })).toBeTruthy();- expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.nintendo })).toBeNull();- expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.generic })).toBeNull();+ expect(screen.getByRole('button', { name: GAMEPAD_OPEN.nintendo })).toBeTruthy();+ expect(screen.getByRole('button', { name: GAMEPAD_OPEN.generic })).toBeTruthy();});it('shows a detected device here and keeps the rest behind Accessories', () => {@@ -170,8 +170,8 @@ describe('KeyboardShortcutsSection accessories', () => {).toBeTruthy();expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.xbox })).toBeNull();expect(screen.getByRole('button', { name: GAMEPAD_OPEN.playstation })).toBeTruthy();- expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.nintendo })).toBeNull();- expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.generic })).toBeNull();+ expect(screen.getByRole('button', { name: GAMEPAD_OPEN.nintendo })).toBeTruthy();+ expect(screen.getByRole('button', { name: GAMEPAD_OPEN.generic })).toBeTruthy();});it('shows an enabled device here even when it is not detected', () => {@@ -199,21 +199,18 @@ describe('KeyboardShortcutsSection accessories', () => {).toBeTruthy();expect(screen.getByRole('button', { name: GAMEPAD_OPEN.xbox })).toBeTruthy();expect(screen.getByRole('button', { name: GAMEPAD_OPEN.playstation })).toBeTruthy();- expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.nintendo })).toBeNull();- expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.generic })).toBeNull();+ expect(screen.getByRole('button', { name: GAMEPAD_OPEN.nintendo })).toBeTruthy();+ expect(screen.getByRole('button', { name: GAMEPAD_OPEN.generic })).toBeTruthy();});- it('does not surface Switch or generic accessories even when they are present', () => {+ it('surfaces Switch and generic accessories when they are present', () => {mocks.present.nintendo = true;mocks.present.generic = true;mocks.enabled.nintendo = true;mocks.enabled.generic = true;render(<KeyboardShortcutsSection />);- expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.nintendo })).toBeNull();- expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.generic })).toBeNull();- fireEvent.click(screen.getByRole('button', { name: 'settings.shortcuts.accessories.openAria' }));- expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.nintendo })).toBeNull();- expect(screen.queryByRole('button', { name: GAMEPAD_OPEN.generic })).toBeNull();+ expect(screen.getByRole('button', { name: GAMEPAD_OPEN.nintendo })).toBeTruthy();+ expect(screen.getByRole('button', { name: GAMEPAD_OPEN.generic })).toBeTruthy();});});diff --git a/apps/desktop/src/renderer/components/settings/__tests__/XboxGamepadSettings.test.tsx b/apps/desktop/src/renderer/components/settings/__tests__/XboxGamepadSettings.test.tsxindex 66fc8ec794..f368dd8c68 100644--- a/apps/desktop/src/renderer/components/settings/__tests__/XboxGamepadSettings.test.tsx+++ b/apps/desktop/src/renderer/components/settings/__tests__/XboxGamepadSettings.test.tsx@@ -117,19 +117,38 @@ describe('XboxGamepadSettings', () => {expect(screen.queryByTestId('xbox-gamepad-layout')).toBeNull();});- it('draws Switch chrome on the Nintendo accessory page', () => {+ it('draws Switch Pro art on the Nintendo accessory page', () => {mocks.state = loadedState();mocks.loading = false;render(<XboxGamepadSettings family="nintendo" onBack={vi.fn()} />);- expect(screen.getByTestId('switch-gamepad-layout')).toBeTruthy();+ expect(screen.getByTestId('switch-pro-gamepad-layout')).toBeTruthy();expect(screen.queryByTestId('xbox-gamepad-layout')).toBeNull();+ expect(screen.queryByTestId('joycon-gamepad-layout')).toBeNull();});- it('reuses the Xbox silhouette on the generic accessory page', () => {+ it('draws Joy-Con art when the connected Switch pad is a Joy-Con', () => {+ mocks.state = {+ ...loadedState(),+ deviceName: 'Joy-Con (L)',+ device: {+ ...loadedState().device,+ name: 'Joy-Con (L)',+ category: 'Nintendo Switch',+ family: 'nintendo',+ },+ };+ mocks.loading = false;+ render(<XboxGamepadSettings family="nintendo" onBack={vi.fn()} />);+ expect(screen.getByTestId('joycon-gamepad-layout')).toBeTruthy();+ expect(screen.queryByTestId('switch-pro-gamepad-layout')).toBeNull();+ });++ it('draws Ultimate C1 art on the generic accessory page', () => {mocks.state = loadedState();mocks.loading = false;render(<XboxGamepadSettings family="generic" onBack={vi.fn()} />);- expect(screen.getByTestId('xbox-gamepad-layout')).toBeTruthy();+ expect(screen.getByTestId('generic-gamepad-layout')).toBeTruthy();+ expect(screen.queryByTestId('xbox-gamepad-layout')).toBeNull();expect(screen.getByText('settings.shortcuts.genericGamepad.title')).toBeTruthy();});});diff --git a/apps/desktop/src/renderer/components/settings/gamepadLayoutPrimitives.tsx b/apps/desktop/src/renderer/components/settings/gamepadLayoutPrimitives.tsxnew file mode 100644index 0000000000..fb87a28b71--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/gamepadLayoutPrimitives.tsx@@ -0,0 +1,323 @@+import type { CSSProperties, KeyboardEvent, ReactNode } from 'react';++import { Tip } from '@/components/ui/tooltip';+import { cn } from '@/lib/utils';++import type { GamepadGeom } from './gamepadSilhouetteGeom';+import type { XboxGamepadEditablePart, XboxGamepadKeyHint } from './XboxGamepadLayout';++/** Colleague gamepad art, already cropped to the display board. */+export const GAMEPAD_VIEWBOX = { x: 0, y: 0, w: 1050, h: 660 };++export const GAMEPAD_PRESS_FILL = 'currentColor';+export const GAMEPAD_PRESS_OPACITY = 0.2;+export const GAMEPAD_STICK_TRAVEL = 14;+/** Cap fill so the moving stick occludes the well behind it. */+export const GAMEPAD_CARVE = 'var(--settings-theme-card-bg)';++export function analogTranslate(+ analog: { x: number; y: number },+ travel = GAMEPAD_STICK_TRAVEL,+): string {+ const dx = Math.max(-1, Math.min(1, analog.x)) * travel;+ const dy = -Math.max(-1, Math.min(1, analog.y)) * travel;+ return `translate(${dx} ${dy})`;+}++export function GeomShape({+ geom,+ fill,+ fillOpacity,+ stroke,+ strokeWidth,+}: {+ geom: GamepadGeom;+ fill?: string;+ fillOpacity?: number;+ stroke?: string;+ strokeWidth?: number;+}) {+ const filled = geom.paint === 'fill';+ const common = {+ fill: fill ?? (filled ? 'currentColor' : 'none'),+ fillOpacity,+ stroke: stroke ?? (filled ? 'none' : undefined),+ strokeWidth: strokeWidth ?? geom.strokeWidth,+ };+ switch (geom.kind) {+ case 'path':+ return <path d={geom.d} {...common} />;+ case 'line':+ return <line x1={geom.x1} y1={geom.y1} x2={geom.x2} y2={geom.y2} {...common} />;+ case 'polyline':+ return <polyline points={geom.points} {...common} />;+ case 'polygon':+ return <polygon points={geom.points} {...common} />;+ case 'ellipse':+ return <ellipse cx={geom.cx} cy={geom.cy} rx={geom.rx} ry={geom.ry} {...common} />;+ case 'circle':+ return <circle cx={geom.cx} cy={geom.cy} r={geom.r} {...common} />;+ case 'rect':+ return (+ <rect+ x={geom.x}+ y={geom.y}+ width={geom.width}+ height={geom.height}+ rx={geom.rx}+ ry={geom.ry}+ transform={geom.transform}+ {...common}+ />+ );+ }+}++export function GeomShapes({ geoms }: { geoms: readonly GamepadGeom[] }) {+ return (+ <>+ {geoms.map((geom, index) => (+ <GeomShape key={index} geom={geom} />+ ))}+ </>+ );+}++export function PressGeom({ geom, on }: { geom: GamepadGeom; on: boolean }) {+ if (!on) return null;+ return (+ <GeomShape+ geom={geom}+ fill={GAMEPAD_PRESS_FILL}+ fillOpacity={GAMEPAD_PRESS_OPACITY}+ stroke="none"+ />+ );+}++export function AnalogStick({+ well,+ socket,+ moving,+ press,+ analog,+ clicked,+}: {+ well: readonly GamepadGeom[];+ /** Completed hole under the cap; colleague art only drew the top crescent. */+ socket: { cx: number; cy: number; r: number };+ moving: readonly GamepadGeom[];+ press: GamepadGeom;+ analog: { x: number; y: number };+ clicked: boolean;+}) {+ return (+ <g>+ <GeomShapes geoms={well} />+ <circle cx={socket.cx} cy={socket.cy} r={socket.r} />+ <g transform={analogTranslate(analog)}>+ {moving.map((geom, index) => (+ <GeomShape key={index} geom={geom} fill={index === 0 ? GAMEPAD_CARVE : undefined} />+ ))}+ <PressGeom geom={press} on={clicked} />+ </g>+ </g>+ );+}++export function KeyHint({ hint }: { hint: XboxGamepadKeyHint }) {+ return (+ <span className="flex flex-col gap-0.5">+ <span className="font-semibold">{hint.legend}</span>+ {hint.name && <span>{hint.name}</span>}+ {hint.description && <span className="text-[var(--text-tertiary)]">{hint.description}</span>}+ </span>+ );+}++function hitHandlers(+ part: XboxGamepadEditablePart,+ hint: XboxGamepadKeyHint,+ disabled: boolean,+ pressed: boolean,+ onEdit: (part: XboxGamepadEditablePart) => void,+) {+ const label = [hint.legend, hint.name].filter(Boolean).join(' ');+ return {+ role: 'button' as const,+ tabIndex: disabled ? -1 : 0,+ 'aria-label': label,+ 'aria-pressed': pressed,+ 'aria-disabled': disabled || undefined,+ className: cn(+ 'fill-transparent stroke-none hover:fill-current/20',+ disabled ? 'pointer-events-none' : 'pointer-events-auto cursor-pointer',+ 'focus-visible:outline-none focus-visible:stroke-[var(--focus-ring-soft)] focus-visible:stroke-2',+ ),+ onClick: () => {+ if (!disabled) onEdit(part);+ },+ onKeyDown: (event: KeyboardEvent<SVGElement>) => {+ if (disabled) return;+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ onEdit(part);+ }+ },+ };+}++export function GeomHit({+ part,+ geom,+ hint,+ disabled,+ pressed,+ onEdit,+}: {+ part: XboxGamepadEditablePart;+ geom: GamepadGeom;+ hint: XboxGamepadKeyHint;+ disabled: boolean;+ pressed: boolean;+ onEdit(part: XboxGamepadEditablePart): void;+}) {+ const handlers = hitHandlers(part, hint, disabled, pressed, onEdit);+ let shape: ReactNode;+ switch (geom.kind) {+ case 'path':+ shape = <path d={geom.d} {...handlers} />;+ break;+ case 'ellipse':+ shape = <ellipse cx={geom.cx} cy={geom.cy} rx={geom.rx} ry={geom.ry} {...handlers} />;+ break;+ case 'circle':+ shape = <circle cx={geom.cx} cy={geom.cy} r={geom.r} {...handlers} />;+ break;+ case 'rect':+ shape = (+ <rect+ x={geom.x}+ y={geom.y}+ width={geom.width}+ height={geom.height}+ rx={geom.rx}+ ry={geom.ry}+ transform={geom.transform}+ {...handlers}+ />+ );+ break;+ case 'polygon':+ shape = <polygon points={geom.points} {...handlers} />;+ break;+ case 'polyline':+ shape = <polyline points={geom.points} {...handlers} />;+ break;+ case 'line':+ shape = <line x1={geom.x1} y1={geom.y1} x2={geom.x2} y2={geom.y2} {...handlers} />;+ break;+ }+ return (+ <Tip text={<KeyHint hint={hint} />} side="top">+ {shape}+ </Tip>+ );+}++function boxStyle(+ viewBox: typeof GAMEPAD_VIEWBOX,+ [x, y, w, h]: [number, number, number, number],+): CSSProperties {+ return {+ left: `${((x - viewBox.x) / viewBox.w) * 100}%`,+ top: `${((y - viewBox.y) / viewBox.h) * 100}%`,+ width: `${(w / viewBox.w) * 100}%`,+ height: `${(h / viewBox.h) * 100}%`,+ };+}++export function Hit({+ part,+ hint,+ disabled,+ pressed,+ onEdit,+ box,+ round = false,+ testId,+}: {+ part: XboxGamepadEditablePart;+ hint: XboxGamepadKeyHint;+ disabled: boolean;+ pressed: boolean;+ onEdit(part: XboxGamepadEditablePart): void;+ box: [number, number, number, number];+ round?: boolean;+ testId?: string;+}) {+ const label = [hint.legend, hint.name].filter(Boolean).join(' ');+ return (+ <Tip text={<KeyHint hint={hint} />} side="top">+ <button+ type="button"+ aria-label={label}+ aria-pressed={pressed}+ disabled={disabled}+ data-testid={testId}+ onClick={() => onEdit(part)}+ style={boxStyle(GAMEPAD_VIEWBOX, box)}+ className={cn(+ 'absolute z-[1] border-0 bg-transparent',+ round ? 'rounded-full' : 'rounded-[8px]',+ !disabled && 'cursor-pointer',+ 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring-soft)]',+ disabled && 'cursor-not-allowed opacity-60',+ )}+ />+ </Tip>+ );+}++export function GamepadArtBoard({+ testId,+ children,+ hits,+ overlays,+}: {+ testId: string;+ children: ReactNode;+ hits: ReactNode;+ overlays?: ReactNode;+}) {+ const { x, y, w, h } = GAMEPAD_VIEWBOX;+ return (+ <div+ className="relative mx-auto w-full max-w-[560px] text-[var(--text-primary)]"+ data-testid={testId}+ style={{ aspectRatio: `${w} / ${h}` }}+ >+ <svg+ viewBox={`${x} ${y} ${w} ${h}`}+ className="pointer-events-none absolute inset-0 h-full w-full"+ aria-hidden="true"+ fill="none"+ stroke="currentColor"+ strokeWidth="2.6"+ strokeLinejoin="round"+ strokeLinecap="round"+ >+ {children}+ </svg>+ <svg+ viewBox={`${x} ${y} ${w} ${h}`}+ className="pointer-events-none absolute inset-0 z-[2] h-full w-full"+ fill="none"+ stroke="none"+ >+ {hits}+ </svg>+ {overlays}+ </div>+ );+}diff --git a/apps/desktop/src/renderer/components/settings/gamepadSilhouetteGeom.ts b/apps/desktop/src/renderer/components/settings/gamepadSilhouetteGeom.tsnew file mode 100644index 0000000000..b9776c1ac4--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/gamepadSilhouetteGeom.ts@@ -0,0 +1,29 @@+/**+ * Geometry primitives for colleague gamepad SVGs (viewBox 0 0 1050 660).+ * Layout components own stroke/fill theming; these files are coordinates only.+ */++export type GamepadPaint = 'stroke' | 'fill';++interface GamepadGeomBase {+ paint: GamepadPaint;+ strokeWidth?: number;+}++export type GamepadGeom =+ | (GamepadGeomBase & { kind: 'path'; d: string })+ | (GamepadGeomBase & { kind: 'line'; x1: number; y1: number; x2: number; y2: number })+ | (GamepadGeomBase & { kind: 'polyline'; points: string })+ | (GamepadGeomBase & { kind: 'polygon'; points: string })+ | (GamepadGeomBase & { kind: 'ellipse'; cx: number; cy: number; rx: number; ry: number })+ | (GamepadGeomBase & { kind: 'circle'; cx: number; cy: number; r: number })+ | (GamepadGeomBase & {+ kind: 'rect';+ x: number;+ y: number;+ width: number;+ height: number;+ rx?: number;+ ry?: number;+ transform?: string;+ });diff --git a/apps/desktop/src/renderer/components/settings/joyConSilhouette.ts b/apps/desktop/src/renderer/components/settings/joyConSilhouette.tsnew file mode 100644index 0000000000..15a7b35182--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/joyConSilhouette.ts@@ -0,0 +1,173 @@+/**+ * Switch Joy-Con pair line-art from the colleague SVG (viewBox 0 0 1050 660).+ * Stroke/fill theming happens in JoyConGamepadLayout — geometry only.+ */++import type { GamepadGeom } from "./gamepadSilhouetteGeom";++export const R_BUTTON: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M640.2606201171875,26.356687545776367s-1.22283935546875,7.788949966430664.839111328125,11.957586288452148,10.84326171875,8.184467315673828,27.53253173828125,7.847846984863281c16.68927001953125-.336624145507812,38.8468017578125-1.11920166015625,52.08026123046875,2.374099731445312s43.5457763671875,14.818721771240234,55.7781982421875,25.179996490478516,27.22406005859375,27.60595703125,32.38592529296875,35.009765625c5.16192626953125,7.40380859375,3.283203125,4.690994262695312,3.283203125,4.690994262695312l7.88214111328125-2.695587158203125s-17.50933837890625-29.475013732910156-34.07135009765625-41.125259399414062c-16.56207275390625-11.650245666503906-37.2427978515625-22.606044769287109-47.15252685546875-25.823482513427734s-26.33984375-7.666534423828125-40.729736328125-7.983814239501953-29.23785400390625-.425468444824219-38.58349609375-1.193378448486328-14.9434814453125-1.638980865478516-16.5509033203125-7.084476470947266c0,0-1.8936767578125-4.607303619384766-1.45904541015625-5.931156158447266s2.25677490234375-2.220256805419922,12.43975830078125-1.878545761108398,28.4986572265625.303871154785156,39.638427734375.937870025634766,25.57904052734375,2.618518829345703,38.2716064453125,6.072431564331055c0,0,13.46337890625,4.47117805480957,16.74383544921875,6.043048858642578,3.28045654296875,1.571872711181641,16.9488525390625,8.269397735595703,21.8011474609375,11.071426391601562s11.1397705078125,6.834213256835938,13.73675537109375,8.816135406494141" };++export const BODY_RIGHT: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 3, d: "M583.913818359375,600.78106689453125c.33148193359375-.00927734375,10.3612060546875-.0775146484375,10.3612060546875-.0775146484375l-.13397216796875,33.27691650390625.62420654296875,16.57147216796875c.06732177734375,1.78692626953125.84039306640625,4.014892578125,1.7203369140625,5.88702392578125l67.9659423828125-.1478271484375,14.16046142578125-.786376953125c26.8846435546875-2.70489501953125,52.45819091796875-10.42022705078125,75.3951416015625-24.72900390625,39.83001708984375-24.84716796875,65.690673828125-65.48602294921875,67.454833984375-112.65325927734375l.76715087890625-20.511810302734375.80364990234375-22.856689453125.853759765625-25.684814453125.61236572265625-16.719482421875.29400634765625-8.021209716796875,2.9478759765625-87.9898681640625.82293701171875-19.80706787109375.89056396484375-27.16510009765625.60601806640625-18.8985595703125.85174560546875-25.216812133789062.78204345703125-23.357711791992188.86993408203125-20.76422119140625.4161376953125-16.3153076171875c.6539306640625-25.638214111328125-3.11859130859375-50.490768432617188-12.93817138671875-74.092582702636719,1.79547119140625-2.032379150390625,2.87640380859375-4.587921142578125,2.27679443359375-6.889068603515625-1.2818603515625-4.919319152832031-2.3131103515625-9.855751037597656-4.7532958984375-14.234458923339844-8.3529052734375-14.988441467285156-19.81646728515625-27.258743286132812-33.48992919921875-37.571342468261719-8.53314208984375-12.216461181640625-18.69036865234375-22.406028747558594-31.6846923828125-29.943378448486328-24.56829833984375-14.2508544921875-46.9310302734375-17.689556121826172-75.0335693359375-18.233757019042969-9.86614990234375-.191056251525879-19.57147216796875,1.515433788299561-28.17449951171875,5.717433929443359-6.638916015625,3.242653846740723-8.9385986328125,17.07618522644043-8.73699951171875,15.921897888183594-1.811767578125-3.07000732421875-3.2890625-4.843395233154297-6.5009765625-4.849571228027344l-28.536376953125-.054868698120117c-5.34674072265625-.010280609130859-8.7073974609375,3.153087615966797-8.828369140625,8.563459396362305l.3089599609375,22.419731140136719-12.658203125.151153564453125c-3.48089599609375.04156494140625-5.57562255859375,3.41119384765625-5.6036376953125,6.599441528320312l-.29669189453125,62.729736328125,6.12847900390625,12.89697265625-6.48724365234375,8.206405639648438-.12982177734375,84.234054565429688,6.07183837890625,9.037506103515625-6.634033203125,9.21270751953125-.32489013671875,166.2012939453125,6.4896240234375,12.59228515625-6.90167236328125,7.2412109375-.05499267578125,83.77923583984375,6.46978759765625,6.59967041015625-6.77099609375,23.114013671875,1.320556640625,52.2774658203125c.19720458984375,3.289306640625,2.498291015625,4.45013427734375,6.4066162109375,4.3404541015625l.00006103515625.0001220703125Z" },+ { kind: "line", paint: "stroke", strokeWidth: 2, x1: 596.485595703125, y1: 656.43902587890625, x2: 604.99298095703125, y2: 53.959815979003906 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M832.98016357421875,184.81396484375s2.64306640625-23.314727783203125-18.94970703125-58.800376892089844c-8.22210693359375-13.51214599609375-27.02545166015625-43.08807373046875-75.59478759765625-63.014865875244141-22.07562255859375-9.057086944580078-77.65069580078125-7.821281433105469-77.65069580078125-7.821281433105469l-55.569580078125.438087463378906-4.47613525390625-33.319240570068359" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M633.94482421875,20.639141082763672s.3070068359375,7.776758193969727,2.04058837890625,13.860149383544922c.7750244140625,2.719650268554688,2.52484130859375,5.375648498535156,6.968505859375,6.935218811035156s2.17791748046875.667522430419922,2.17791748046875.667522430419922" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M812.15985107421875,113.416969299316406s2.74481201171875,4.389785766601562,4.83026123046875,6.797096252441406,4.86871337890625,4.326057434082031,6.69183349609375,5.398460388183594,3.5252685546875,6.358970642089844,3.5252685546875,6.358970642089844" },+];++export const RAIL_RIGHT: GamepadGeom[] = [+ { kind: "polyline", paint: "stroke", strokeWidth: 2, points: "584.23089599609375 51.718616485595703 585.79669189453125 71.131202697753906 583.913818359375 600.78106689453125" },+ { kind: "polyline", paint: "stroke", strokeWidth: 3, points: "585.79669189453125 71.131202697753906 603.46087646484375 71.131202697753906 596.485595703125 50.451766967773438" },+];++/** [cap, inner, highlight, ring, well] */+export const RIGHT_STICK: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M705.06982421875,443.334075927734375c-24.6722412109375,0-44.74456787109375-18.640655517578125-44.74456787109375-41.553131103515625,0-22.912689208984375,20.072265625-41.553375244140625,44.74456787109375-41.553375244140625s44.74456787109375,18.64068603515625,44.74456787109375,41.553375244140625c0,22.9124755859375-20.072265625,41.553131103515625-44.74456787109375,41.553131103515625Z" },+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 705.06982421875, cy: 406.242279052734375, rx: 30.0360107421875, ry: 26.844696044921875 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M676.42742919921875,369.52801513671875c-.6351318359375-2.996826171875,12.19488525390625-15.5576171875,27.6614990234375-15.5576171875s28.12469482421875,9.81500244140625,28.12469482421875,15.3594970703125" },+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 705.06982421875, cy: 394.63330078125, rx: 50.59356689453125, ry: 48.76324462890625 },+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 705.06982421875, cy: 387.857421875, rx: 57.60394287109375, ry: 55.520019531250007 },+];++export const PLUS: GamepadGeom[] = [+ { kind: "polygon", paint: "stroke", strokeWidth: 2, points: "653.86798095703125 105.753700256347656 653.86798095703125 115.80059814453125 639.90533447265625 115.80059814453125 639.90533447265625 128.576766967773438 631.24285888671875 128.576766967773438 631.24285888671875 115.80059814453125 618.84246826171875 115.80059814453125 618.84246826171875 105.753700256347656 631.24285888671875 105.753700256347656 631.24285888671875 93.056716918945312 639.90533447265625 93.056716918945312 639.90533447265625 105.753700256347656 653.86798095703125 105.753700256347656" },+ { kind: "polyline", paint: "stroke", strokeWidth: 2, points: "618.84246826171875 105.521476745605469 618.84246826171875 102.743934631347656 631.24285888671875 102.743934631347656 631.24285888671875 90.046951293945312 639.90533447265625 90.046951293945312 639.90533447265625 102.743934631347656 653.86798095703125 102.743934631347656 653.86798095703125 105.521476745605469" },+];++/** Physical X (top) */+export const FACE_X: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 707.63134765625, cy: 163.347686767578125, rx: 24.080322265625, ry: 21.807891845703125 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M707.487548828125,185.236251831054688c-14.542236328125,0-26.33099365234375-10.676300048828125-26.33099365234375-23.84619140625s11.788818359375-23.846176147460938,26.33099365234375-23.846176147460938c14.542236328125,0,26.33099365234375,10.676300048828125,26.33099365234375,23.846176147460938s-11.788818359375,23.84619140625-26.33099365234375,23.84619140625" },+ { kind: "path", paint: "fill", d: "M714.6466064453125,151.35931396484375l-7.02764892578125,10.148468017578125-5.8631591796875-9.56622314453125h-3.49346923828125l6.4395751953125,12.541488647460938-.58221435546875.582244873046875-7.6331787109375,10.165939331054688h4.657958984375l5.85736083984375-7.761276245117188,5.886474609375,7.761276245117188h4.07568359375l-7.03350830078125-10.7481689453125,8.82098388671875-13.123733520507812h-4.10479736328125l-.00006103515625-.000015258789062Z" },+];++/** Physical Y (left) */+export const FACE_Y: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 651.97607421875, cy: 211.659957885742188, rx: 24.080322265625, ry: 21.807891845703125 },+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 651.83221435546875, cy: 209.702316284179688, rx: 26.33099365234375, ry: 23.84619140625 },+ { kind: "path", paint: "fill", d: "M646.2939453125,199.981460571289062l5.43756103515625,12.181869506835938,8.14825439453125-12.732650756835938h3.77984619140625l-10.3243408203125,17.165863037109375v7.754058837890625h-3.77984619140625v-8.31024169921875l-7.08453369140625-16.05889892578125h3.82305908203125Z" },+];++/** Physical B (bottom) */+export const FACE_B: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 706.5601806640625, cy: 260.40643310546875, rx: 24.080322265625, ry: 21.807891845703125 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M706.4163818359375,282.29498291015625c-14.542236328125,0-26.33099365234375-10.676300048828125-26.33099365234375-23.84619140625,0-13.169876098632812,11.788818359375-23.84619140625,26.33099365234375-23.84619140625,14.542236328125,0,26.33099365234375,10.676300048828125,26.33099365234375,23.84619140625,0,13.16986083984375-11.788818359375,23.84619140625-26.33099365234375,23.84619140625" },+ { kind: "path", paint: "fill", d: "M711.25262451171875,259.27783203125s5.52874755859375-4.249557495117188,2.71014404296875-9.68072509765625c-1.6640625-1.73992919921875-6.27679443359375-1.729095458984375-14.67828369140625-.878097534179688l-.51495361328125,23.795333862304688s6.55859375.856414794921875,11.45318603515625-1.669464111328125,8.57501220703125-8.276885986328125,1.0299072265625-11.567047119140625ZM703.62078857421875,252.610809326171875c7.10064697265625-1.084075927734375,6.57489013671875,2.119354248046875,6.57489013671875,2.119354248046875,0,5.268585205078125-7.08984375,3.886383056640625-7.08984375,3.886383056640625l.51495361328125-6.005752563476562v.000015258789062ZM711.29058837890625,265.28900146484375c-.85101318359375,3.864715576171875-8.72674560546875,4.4447021484375-8.72674560546875,4.4447021484375l.54205322265625-7.225311279296875c8.54791259765625-1.22503662109375,8.1846923828125,2.780609130859375,8.1846923828125,2.780609130859375v.000030517578125-.000030517578125Z" },+];++/** Physical A (right) */+export const FACE_A: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 761.70849609375, cy: 210.971038818359375, rx: 24.080322265625, ry: 21.807891845703125 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M761.564697265625,232.859588623046875c-14.542236328125,0-26.33099365234375-10.676300048828125-26.33099365234375-23.84619140625,0-13.169876098632812,11.788818359375-23.84619140625,26.33099365234375-23.84619140625,14.542236328125,0,26.33099365234375,10.676300048828125,26.33099365234375,23.84619140625,0,13.169876098632812-11.788818359375,23.84619140625-26.33099365234375,23.84619140625" },+ { kind: "path", paint: "fill", d: "M760.3472900390625,199.314315795898438l-9.81732177734375,23.906326293945312h3.2525634765625s1.1275634765625-2.439422607421875,2.5640869140625-5.5618896484375h10.55999755859375l1.62628173828125,4.445175170898438h4.33673095703125l-8.18023681640625-22.767929077148438-4.3421630859375-.021682739257812h.00006103515625ZM765.96337890625,214.791091918945312h-8.25067138671875v-.048782348632812l4.808349609375-10.408203125,3.3609619140625,10.272674560546875c.0433349609375.048782348632812.05963134765625.108413696289062.081298828125.184310913085938h.00006103515625Z" },+];++export const HOME: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M668.8114013671875,524.11053466796875c13.97686767578125-3.59539794921875,22.72589111328125-16.91119384765625,19.56219482421875-29.741302490234375s-17.08660888671875-20.304229736328125-31.02972412109375-16.708831787109375-22.7191162109375,16.917938232421875-19.56219482421875,29.741302490234375c3.15692138671875,12.823333740234375,17.0595703125,20.304229736328125,31.02972412109375,16.708831787109375Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M669.000244140625,523.46295166015625c12.6884765625-3.2716064453125,20.6280517578125-15.40692138671875,17.7274169921875-27.103759765625-2.90057373046875-11.69683837890625-15.51483154296875-18.536865234375-28.237060546875-15.2652587890625-12.72216796875,3.2716064453125-20.6280517578125,15.400177001953125-17.7274169921875,27.103759765625,2.90057373046875,11.70361328125,15.54180908203125,18.5301513671875,28.237060546875,15.2652587890625Z" },+ { kind: "path", paint: "fill", d: "M679.10211181640625,499.706512451171875l-5.90899658203125-4.818145751953125-9.313232421875-6.4703369140625-13.738525390625,9.814178466796875c-.45452880859375.3245849609375-1.31646728515625,1.6806640625-1.3841552734375,2.11065673828125-.07220458984375.45733642578125.2491455078125.784332275390625.6807861328125.802398681640625l2.40435791015625.10015869140625.349853515625,12.3507080078125,23.31500244140625.22064208984375.322509765625-12.37469482421875,3.17315673828125-.2691650390625c.32220458984375-.027374267578125.15740966796875-.703643798828125.09930419921875-1.466400146484375h-.00006103515625ZM658.814697265625,508.14105224609375l-.07562255859375-7.823455810546875,9.9866943359375.041046142578125.29852294921875,7.838531494140625-10.2095947265625-.05615234375v.000030517578125Z" },+];++export const L_BUTTON: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M409.7393798828125,26.082656860351562s1.222808837890625,7.788951873779297-.839141845703125,11.957588195800781-10.84326171875,8.184471130371094-27.532501220703125,7.847846984863281-38.8468017578125-1.11920166015625-52.080291748046875,2.374099731445312-43.545745849609375,14.818717956542969-55.778167724609375,25.17999267578125-27.224044799804688,27.60595703125-32.385940551757812,35.009765625-3.283172607421875,4.690994262695312-3.283172607421875,4.690994262695312l-7.88214111328125-2.695587158203125s17.509307861328125-29.475013732910156,34.071365356445312-41.125259399414062c16.56207275390625-11.650245666503906,37.2427978515625-22.606044769287109,47.15252685546875-25.823482513427734s26.339874267578125-7.666534423828125,40.729736328125-7.983814239501953c14.389892578125-.317279815673828,29.23785400390625-.425468444824219,38.58349609375-1.193378448486328s14.9434814453125-1.638980865478516,16.5509033203125-7.084476470947266c0,0,1.893707275390625-4.607303619384766,1.459075927734375-5.931156158447266s-2.256805419921875-2.220256805419922-12.439788818359375-1.878545761108398-28.498687744140625.303871154785156-39.638458251953125.937870025634766-25.57904052734375,2.618518829345703-38.2716064453125,6.072431564331055c0,0-13.463409423828125,4.47117805480957-16.74383544921875,6.043048858642578-3.280426025390625,1.571868896484375-16.9488525390625,8.269397735595703-21.8011474609375,11.071426391601562s-11.1397705078125,6.834213256835938-13.736785888671875,8.816135406494141" };++export const BODY_LEFT: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 3, d: "M466.086151123046875,600.507080078125c-.331451416015625-.00927734375-10.361175537109375-.0775146484375-10.361175537109375-.0775146484375l.13397216796875,33.27691650390625-.624176025390625,16.57147216796875c-.06732177734375,1.78692626953125-.84039306640625,4.014892578125-1.7203369140625,5.88702392578125l-67.965972900390625-.1478271484375-14.16046142578125-.786376953125c-26.8846435546875-2.70489501953125-52.45819091796875-10.42022705078125-75.3951416015625-24.72900390625-39.83001708984375-24.84716796875-65.690689086914062-65.48602294921875-67.454833984375-112.65325927734375l-.767181396484375-20.511810302734375-.80364990234375-22.856689453125-.853790283203125-25.684814453125-.612350463867188-16.719482421875-.293975830078125-8.021209716796875-2.947860717773438-87.9898681640625-.822921752929688-19.80706787109375-.890579223632812-27.16510009765625-.60601806640625-18.8985595703125-.85174560546875-25.216812133789062-.782028198242188-23.357711791992188-.869918823242188-20.76422119140625-.416152954101562-16.3153076171875c-.653961181640625-25.638214111328125,3.11859130859375-50.490768432617188,12.938186645507812-74.092582702636719-1.795455932617188-2.032379150390625-2.876419067382812-4.587921142578125-2.276809692382812-6.889068603515625,1.281829833984375-4.919319152832031,2.313095092773438-9.855751037597656,4.7532958984375-14.234458923339844,8.352890014648438-14.988441467285156,19.816482543945312-27.258743286132812,33.489913940429688-37.571342468261719,8.53314208984375-12.216461181640625,18.690399169921875-22.406028747558594,31.6846923828125-29.943378448486328,24.568328857421875-14.2508544921875,46.931060791015625-17.689556121826172,75.033599853515625-18.233757019042969,9.866119384765625-.191056251525879,19.571441650390625,1.515433788299561,28.174468994140625,5.717433929443359,6.638916015625,3.242653846740723,8.9385986328125,17.07618522644043,8.736968994140625,15.921897888183594,1.811798095703125-3.07000732421875,3.2890625-4.843395233154297,6.501007080078125-4.849571228027344l28.536346435546875-.054868698120117c5.346771240234375-.010280609130859,8.7073974609375,3.153087615966797,8.828338623046875,8.563459396362305l-.308990478515625,22.419731140136719,12.658233642578125.151153564453125c3.48089599609375.04156494140625,5.575653076171875,3.41119384765625,5.603607177734375,6.599441528320312l.29669189453125,62.729736328125-6.12847900390625,12.89697265625,6.48724365234375,8.206405639648438.12982177734375,84.234054565429688-6.071807861328125,9.037506103515625,6.634033203125,9.21270751953125.32489013671875,166.2012939453125-6.4896240234375,12.59228515625,6.90167236328125,7.2412109375.055023193359375,83.77923583984375-6.469757080078125,6.59967041015625,6.77099609375,23.114013671875-1.320556640625,52.2774658203125c-.19720458984375,3.289306640625-2.498291015625,4.45013427734375-6.406646728515625,4.3404541015625l-.00006103515625.0001220703125Z" },+ { kind: "line", paint: "stroke", strokeWidth: 2, x1: 453.514434814453125, y1: 656.16497802734375, x2: 445.006988525390625, y2: 53.685787200927734 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M217.01983642578125,184.539932250976562s-2.643051147460938-23.314727783203125,18.949722290039062-58.800376892089844c8.22210693359375-13.51214599609375,27.025436401367188-43.08807373046875,75.594772338867188-63.014865875244141,22.07562255859375-9.057086944580078,77.65069580078125-7.821281433105469,77.65069580078125-7.821281433105469l55.569549560546875.438087463378906,4.47613525390625-33.319240570068359" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M416.05517578125,20.365110397338867s-.3070068359375,7.776758193969727-2.04058837890625,13.860151290893555c-.7750244140625,2.719654083251953-2.52484130859375,5.375648498535156-6.968475341796875,6.935218811035156-4.44366455078125,1.5595703125-2.177947998046875.667522430419922-2.177947998046875.667522430419922" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M237.840179443359375,113.1429443359375s-2.744796752929688,4.389785766601562-4.830245971679688,6.797096252441406-4.868728637695312,4.326057434082031-6.691818237304688,5.398460388183594-3.525283813476562,6.358963012695312-3.525283813476562,6.358963012695312" },+];++export const RAIL_LEFT: GamepadGeom[] = [+ { kind: "polyline", paint: "stroke", strokeWidth: 2, points: "465.769134521484375 51.444587707519531 464.20330810546875 70.857170104980469 466.086151123046875 600.507080078125" },+ { kind: "polyline", paint: "stroke", strokeWidth: 3, points: "464.20330810546875 70.857170104980469 446.53912353515625 70.857170104980469 453.514434814453125 50.177738189697266" },+];++/** [cap, inner, highlight, ring, well] */+export const LEFT_STICK: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M343.099822998046875,265.0296630859375c24.672271728515625,0,44.744537353515625-18.640655517578125,44.744537353515625-41.553131103515625,0-22.912704467773438-20.072265625-41.553375244140625-44.744537353515625-41.553375244140625s-44.744537353515625,18.640670776367188-44.744537353515625,41.553375244140625c0,22.912490844726562,20.072265625,41.553131103515625,44.744537353515625,41.553131103515625Z" },+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 343.099822998046875, cy: 227.937896728515625, rx: 30.036041259765621, ry: 26.844680786132812 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M371.74224853515625,191.223617553710938c.6351318359375-2.996841430664062-12.194915771484375-15.5576171875-27.6614990234375-15.5576171875s-28.12469482421875,9.81500244140625-28.12469482421875,15.3594970703125" },+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 343.099822998046875, cy: 216.328903198242188, rx: 50.59356689453125, ry: 48.763259887695312 },+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 343.099822998046875, cy: 209.553024291992188, rx: 57.60394287109375, ry: 55.520004272460938 },+];++/** Socket behind the cap, sized like Xbox (~r 34.7) so the carved cap reveals the hole when it moves. */+export const STICK_LEFT_SOCKET = { cx: 343.1, cy: 209.62, r: 34.7 };+export const STICK_RIGHT_SOCKET = { cx: 705.07, cy: 387.93, r: 34.7 };++export const DPAD_UP: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 345.31011962890625, cy: 338.752044677734375, rx: 24.080322265625, ry: 21.807891845703125 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M345.45391845703125,360.640594482421875c14.542236328125,0,26.330963134765625-10.676300048828125,26.330963134765625-23.84619140625s-11.788787841796875-23.84619140625-26.330963134765625-23.84619140625c-14.542236328125,0-26.330963134765625,10.676300048828125-26.330963134765625,23.84619140625,0,13.16986083984375,11.788787841796875,23.84619140625,26.330963134765625,23.84619140625" },+ { kind: "polygon", paint: "fill", points: "345.240631103515625 329.26300048828125 356.854522705078125 346.93865966796875 333.62677001953125 346.93865966796875 345.240631103515625 329.26300048828125" },+];++export const DPAD_RIGHT: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 400.965423583984375, cy: 387.064300537109375, rx: 24.080322265625, ry: 21.807891845703125 },+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 401.1092529296875, cy: 385.106658935546875, rx: 26.330963134765625, ry: 23.84619140625 },+ { kind: "polygon", paint: "fill", points: "411.76416015625 387.701904296875 394.0885009765625 376.088043212890625 394.0885009765625 399.3157958984375 411.76416015625 387.701904296875" },+];++export const DPAD_DOWN: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 346.381317138671875, cy: 435.810760498046875, rx: 24.080322265625, ry: 21.807891845703125 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M346.525115966796875,457.699310302734375c14.542236328125,0,26.330963134765625-10.676300048828125,26.330963134765625-23.84619140625,0-13.16986083984375-11.788787841796875-23.84619140625-26.330963134765625-23.84619140625-14.542236328125,0-26.330963134765625,10.676300048828125-26.330963134765625,23.84619140625,0,13.16986083984375,11.788787841796875,23.84619140625,26.330963134765625,23.84619140625" },+ { kind: "polygon", paint: "fill", points: "346.829193115234375 446.746795654296875 358.44305419921875 429.0711669921875 335.21533203125 429.0711669921875 346.829193115234375 446.746795654296875" },+];++export const DPAD_LEFT: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 291.233001708984375, cy: 386.375396728515625, rx: 24.080322265625, ry: 21.807891845703125 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M291.376800537109375,408.263946533203125c14.542236328125,0,26.330963134765625-10.676300048828125,26.330963134765625-23.84619140625,0-13.16986083984375-11.788787841796875-23.84619140625-26.330963134765625-23.84619140625-14.542236328125,0-26.330963134765625,10.676300048828125-26.330963134765625,23.84619140625,0,13.16986083984375,11.788787841796875,23.84619140625,26.330963134765625,23.84619140625" },+ { kind: "polygon", paint: "fill", points: "280.67962646484375 387.064300537109375 298.35528564453125 398.67816162109375 298.35528564453125 375.450408935546875 280.67962646484375 387.064300537109375" },+];++/** Decoration; no binding slot */+export const CAPTURE: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M373.988555908203125,519.715576171875h28.132171630859375c2.965789794921875,0,5.370025634765625-2.40423583984375,5.370025634765625-5.3699951171875v-25.174774169921875c0-2.965789794921875-2.40423583984375-5.370025634765625-5.370025634765625-5.370025634765625h-28.132171630859375c-2.965789794921875,0-5.370025634765625,2.40423583984375-5.370025634765625,5.370025634765625v25.174774169921875c0,2.96575927734375,2.40423583984375,5.3699951171875,5.370025634765625,5.3699951171875ZM373.88507080078125,519.72918701171875h28.132171630859375c2.965789794921875,0,5.370025634765625-2.40423583984375,5.370025634765625-5.3699951171875v-28.132171630859375c0-2.965789794921875-2.40423583984375-5.370025634765625-5.370025634765625-5.370025634765625h-28.132171630859375c-2.965789794921875,0-5.370025634765625,2.40423583984375-5.370025634765625,5.370025634765625v28.132171630859375c0,2.96575927734375,2.40423583984375,5.3699951171875,5.370025634765625,5.3699951171875Z" },+ { kind: "ellipse", paint: "stroke", strokeWidth: 4, cx: 388.69573974609375, cy: 501.100578308105469, rx: 12.424316406252622, ry: 11.743293762207031 },+];++export const MINUS: GamepadGeom[] = [+ { kind: "rect", paint: "stroke", strokeWidth: 2, x: 396.115234375, y: 105.406425476074219, width: 35.025482177734375, height: 10.046897888183594 },+ { kind: "rect", paint: "stroke", strokeWidth: 2, x: 396.115234375, y: 102.326187133789062, width: 35.025482177734375, height: 13.12713623046875 },+];++export const PRESS_STICK_LEFT: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M342.142269192011554,265.0296630859375c24.672271728515625,0,44.744537353515625-18.640655517578125,44.744537353515625-41.553131103515625,0-22.912704467773438-20.072265625-41.553375244140625-44.744537353515625-41.553375244140625s-44.744537353515625,18.640670776367188-44.744537353515625,41.553375244140625c0,22.912490844726562,20.072265625,41.553131103515625,44.744537353515625,41.553131103515625Z" };++export const PRESS_DPAD_UP: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 345.45391845703125, cy: 338.752044677734375, rx: 24.080322265625, ry: 21.807891845703125 };++export const PRESS_DPAD_RIGHT: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 401.1092529296875, cy: 387.064300537109375, rx: 24.080322265625, ry: 21.807891845703125 };++export const PRESS_DPAD_DOWN: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 346.381317138671875, cy: 435.810760498046875, rx: 24.080322265625, ry: 21.807891845703125 };++export const PRESS_DPAD_LEFT: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 291.233001708984375, cy: 386.375396728515625, rx: 24.080322265625, ry: 21.807891845703125 };++export const PRESS_STICK_RIGHT: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M706.592700900760974,360.154632568359375c-24.672271728515625,0-44.744537353515625,18.640655517578125-44.744537353515625,41.553131103515625,0,22.912704467773438,20.072265625,41.553375244140625,44.744537353515625,41.553375244140625,24.672271728517444,0,44.744537353517444-18.640670776367188,44.744537353517444-41.553375244140625-.000000000001819-22.912490844726562-20.072265625-41.553131103515625-44.744537353517444-41.553131103515625Z" };++/** Physical B → binding a */+export const PRESS_B: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 707.133590698242188, cy: 259.986724099554522, rx: 24.080322265625, ry: 21.807891845703125 };++/** Physical Y → binding x */+export const PRESS_Y: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 651.478256225585938, cy: 211.674468240179522, rx: 24.080322265625, ry: 21.807891845703125 };++/** Physical X → binding y */+export const PRESS_X: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 707.487548828125, cy: 163.295272827148438, rx: 24.080322265625, ry: 21.807891845703125 };++/** Physical A → binding b */+export const PRESS_A: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 761.838043212890625, cy: 210.971038818359375, rx: 24.080322265625, ry: 21.807891845703125 };++/** Decoration */+export const PRESS_CAPTURE: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 5.3699951171875, ry: 5.3699951171875, x: 368.6185302734375, y: 483.80078125, width: 38.872222900390625, height: 35.914794921875 };++export const PRESS_HOME: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 664.592118231203131, cy: 502.50577603699594, rx: 24.428219707175231, ry: 22.229517617710826 };++export const PRESS_PLUS: GamepadGeom = { kind: "polygon", paint: "stroke", strokeWidth: 2, points: "653.86798095703125 105.753700256347656 653.86798095703125 115.80059814453125 639.90533447265625 115.80059814453125 639.90533447265625 128.576766967773438 631.24285888671875 128.576766967773438 631.24285888671875 115.80059814453125 618.84246826171875 115.80059814453125 618.84246826171875 105.753700256347656 631.24285888671875 105.753700256347656 631.24285888671875 93.056716918945312 639.90533447265625 93.056716918945312 639.90533447265625 105.753700256347656 653.86798095703125 105.753700256347656" };++export const PRESS_MINUS: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, x: 396.115234375, y: 105.406425476074219, width: 35.025482177734375, height: 10.046897888183594 };++export const PRESS_L: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M407.739545845989596,20.365110397338867h-20.846708516245599s-41.080035771534313.148488171624194-58.615693327878034,4.242564315880372c-15.64083981771455,3.651690218521253-31.507264208347806,9.990997615739616-38.95059978781228,13.839030090402957s-26.054756539186201,16.338220597663167-29.669407113890884,19.808285149378207-15.320506395637494,12.422953090608644-21.816957656803424,22.844591632128868-7.882156372070312,16.771978666626637-7.882156372070312,16.771978666626637c0,0-2.1676361452528,4.601130908356936-1.820638982545461,7.53486522431831s1.820638982545461,2.441570361865161,1.820638982545461,2.441570361865161l1.938597615146136,2.581878582226636,5.942988800533385,2.713870930633675s4.661988470814322-8.362281364424234,11.957324571390018-17.084646118587443c11.239097721329927-13.437559076322941,26.29760123773849-25.444969588180356,36.385057840574518-31.259856500083515,13.309876533749957-7.672442113246689,41.547060983723895-16.844552882897915,48.289023591298246-17.961680407990571,14.283372501537997-2.366721606359533,41.999358287371251-.738245188342262,43.451353465749889-1.022193791219252s18.582082734328651.490721923085403,23.980441220476678-2.617115764476694,7.583727193341474-6.170041463888992,7.61715990896937-7.617343995278134c.219409797385197-9.49825191281252-1.780424239437707-15.215798375825216-1.780424239437707-15.215798375825216Z" };++export const PRESS_ZL: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M406.791973940576099,18.701564106316255s-32.884973898887438.41952629676598-42.29649841540504.65265841974815-23.25200174668953,1.340370301395524-35.431621709240972,3.776294293906176-26.02009719272337,8.093023753965099-26.02009719272337,8.093023753965099c0,0-22.144763568276176,10.840749096910258-27.570230642502793,13.941015996469105s-6.089809981274811,3.875333624448103-6.089809981274811,3.875333624448103c0,0,2.878819263875812-4.282866736442884,5.204019438544492-6.957919444321305s14.172648683696025-13.636710674174537,14.172648683696025-13.636710674174537c0,0,15.720949348570684-10.694337345660642,21.276217271381029-13.026996786241398s24.359610164309743-8.252019746812948,30.333176464600911-9.158282410043284,20.453294438808371-2.414096000135942,27.32766876063215-2.555248214011954,17.392659025382272,1.045630392241947,20.825097378465216,1.931420934973175,10.075867423565796,3.432438353082944,10.075867423565796,3.432438353082944c0,0,5.335266483304622,2.746951851491758,5.692190978976214,3.231488235036522s2.39064772344409,2.304702657032976,2.501371541285152,6.401483917163205Z" };++export const PRESS_R: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M642.550577527959831,20.506790349365474h20.846708516244689s41.080035771534313.148488171624194,58.615693327878034,4.242564315880372c15.640839817713641,3.651690218521253,31.507264208348715,9.990997615739616,38.950599787813189,13.839030090402957,7.443335579462655,3.848032474663341,26.054756539184382,16.338220597663167,29.669407113889974,19.808285149378207s15.320506395637494,12.422953090608644,21.816957656803424,22.844591632128868,7.882156372070312,16.771978666626637,7.882156372070312,16.771978666626637c0,0,2.16763614525189,4.601130908356936,1.82063898254637,7.53486522431831-.346997162709158,2.933734315961374-1.82063898254637,2.441570361865161-1.82063898254637,2.441570361865161l-1.938597615146136,2.581878582226636-5.942988800532476,2.713870930633675s-4.661988470816141-8.362281364424234-11.957324571390927-17.084646118587443c-11.239097721329017-13.437559076322941-26.29760123773849-25.444969588180356-36.385057840574518-31.259856500083515-13.309876533749048-7.672442113246689-41.547060983724805-16.844552882897915-48.289023591298246-17.961680407990571-14.283372501538906-2.366721606359533-41.999358287370342-.738245188342262-43.451353465750799-1.022193791219252-1.451995178376819-.28394860287699-18.582082734326832.490721923085403-23.980441220475768-2.617115764476694s-7.583727193341474-6.170041463888992-7.617159908968461-7.617343995278134c-.219409797386106-9.49825191281252,1.780424239437707-15.215798375825216,1.780424239437707-15.215798375825216Z" };++export const PRESS_ZR: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M643.395165675272438,19.20750447663886s32.987957656987419.055265878469982,42.399482173505021.288398001452151,23.252001746690439,1.340370301395524,35.431621709240062,3.776294293906176c12.179619962553261,2.435923992510652,26.020097192724279,8.093023753965099,26.020097192724279,8.093023753965099,0,0,21.682881916236511,10.731248547886935,27.108348990463128,13.831515447445781s6.691426836920073,4.602580432841933,6.691426836920073,4.602580432841933c.44537353515625-.1563720703125-2.7943115234375-4.9793701171875-5.34375-7.57568359375-2.4832763671875-2.5289306640625-14.172653325846113-13.636692784116349-14.172653325846113-13.636692784116349,0,0-15.720949348569775-10.694337345660642-21.276217271381029-13.026996786241398s-24.359610164310652-8.252019746812948-30.333176464600911-9.158282410043284-20.453294438808371-2.414096000135942-27.32766876063215-2.555248214011954-17.392659025381363,1.045630392241947-20.825097378465216,1.931420934973175-10.075867423565796,3.432438353082944-10.075867423565796,3.432438353082944c0,0-5.335266483303712,2.746951851491758-5.692190978976214,3.231488235036522s-2.493631481544071,2.668963075328975-2.604355299385134,6.765744335459203Z" };diff --git a/apps/desktop/src/renderer/components/settings/switchProSilhouette.ts b/apps/desktop/src/renderer/components/settings/switchProSilhouette.tsnew file mode 100644index 0000000000..d5202594f8--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/switchProSilhouette.ts@@ -0,0 +1,192 @@+/**+ * Nintendo Switch Pro line-art from the colleague SVG (viewBox 0 0 1050 660).+ * Stroke/fill theming happens in SwitchProGamepadLayout — geometry only.+ */++import type { GamepadGeom } from "./gamepadSilhouetteGeom";++/** Main outline, then handle seams */+export const BODY: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 3, d: "M791.41436767578125,554.232421875l11.2437744140625,14.26385498046875,30.76446533203125,43.59747314453125c7.5167236328125,10.6522216796875,15.6917724609375,20.17144775390625,25.42547607421875,28.73138427734375,8.32904052734375,7.3245849609375,17.69757080078125,12.355712890625,28.54156494140625,14.91986083984375,11.33660888671875,2.68060302734375,22.966796875,3.10296630859375,34.38134765625.45880126953125,32.84893798828125-7.609375,62.39141845703125-33.69091796875,78.514892578125-62.89471435546875,12.6285400390625-22.87353515625,17.2999267578125-48.8497314453125,15.3463134765625-74.88970947265625l-7.9818115234375-64.1856689453125-13.9931640625-79.11285400390625-12.70416259765625-60.7261962890625-26.59075927734375-107.566238403320312-17.0047607421875-54.622085571289062c-6.41436767578125-16.146514892578125-16.32421875-29.807235717773438-28.494140625-42.306243896484375-2.470947265625-10.622787475585938-6.26788330078125-20.562179565429688-10.8475341796875-30.698982238769531-17.0150146484375-37.661861419677734-45.80224609375-67.151809692382812-87.6158447265625-74.137901306152344-14.4993896484375-2.675725698471069-28.14434814453125-.049258708953857-40.6260986328125,7.321207046508789-11.47259521484375,6.774543762207031-22.12945556640625,14.296113967895508-31.05413818359375,24.244779586791992l-34.13812255859375-4.318103790283203-33.11907958984375-2.975088119506836c-50.4537353515625-3.426877975463867-100.4818115234375-5.008382797241211-151.063720703125-4.597261428833008l-41.5269775390625.3375244140625c-33.545257568359375.272649765014648-66.628936767578125,1.384620666503906-100.04742431640625,4.407602310180664l-32.06549072265625,2.900590896606445-33.860198974609375,4.109642028808594c-10.014984130859375-11.517026901245117-23.864654541015625-20.32774543762207-37.310455322265625-27.191930770874023-7.22760009765625-3.461350440979004-14.63519287109375-4.806256771087646-22.791641235351562-5.409496307373047-16.0589599609375.538158416748047-31.113372802734375,5.143847465515137-45.280120849609375,12.752241134643555-18.91497802734375,10.158473968505859-33.7481689453125,25.479396820068359-44.593032836914062,43.964542388916016-7.946014404296875,13.544021606445312-14.360641479492188,27.466224670410156-18.892105102539062,42.515472412109375l-1.263763427734375,5.589790344238281c-9.504257202148438,10.193145751953125-18.312690734863281,20.841224670410156-24.639892578125,33.431190490722656-6.419219970703125,12.773056030273438-10.73175048828125,25.898574829101562-14.627456665039062,39.591354370117188l-8.626953125,30.322357177734375-11.365554809570312,43.850997924804688-6.485282897949219,26.820343017578125-7.721885681152344,32.256866455078125-7.946327209472656,37.231781005859375-7.685344696044922,38.00714111328125-7.374740600585938,41.74822998046875-7.553447723388672,49.450897216796875c-5.155509948730469,33.752105712890625-8.7490234375,61.331268310546875,3.311695098876953,94.353912353515625,7.154319763183594,19.58880615234375,18.606845855712891,37.05523681640625,33.965145111083984,51.176513671875,14.253623962402344,13.1055908203125,30.5982666015625,23.1563720703125,49.382568359375,28.38726806640625,13.098190307617188,3.6474609375,27.178298950195312,3.548828125,40.08428955078125-.3577880859375,10.99395751953125-3.327880859375,20.322952270507812-9.3995361328125,28.598175048828125-17.01629638671875,6.506271362304688-5.98858642578125,12.276901245117188-12.15277099609375,17.348190307617188-19.35845947265625l19.10931396484375-27.15185546875,16.530471801757812-23.51904296875c5.234283447265625-7.4471435546875,10.896026611328125-14.094482421875,17.78375244140625-20.01324462890625,12.694732666015625-10.9088134765625,30.02349853515625-15.3214111328125,46.8271484375-15.32183837890625l116.096893310546875-.00311279296875,131.373809814453125.02191162109375,43.12493896484375.0316162109375,82.7257080078125-.00830078125,56.28472900390625.03173828125c19.0706787109375.0107421875,38.2900390625,6.5374755859375,50.12689208984375,21.5537109375l-.0001220703125-.00018310546875Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M275.553955078125,540.72760009765625s-8.263214111328125-4.98675537109375-35.874954223632812-34.028411865234375c-26.965957641601562-28.36248779296875-63.736129760742188-73.900726318359375-83.624252319335938-101.1197509765625-12.145355224609375-16.622222900390625-41.063613891601562-57.81793212890625-48.501815795898438-71.7894287109375,0,0-26.990402221679688-47.478424072265625-27.176193237304688-64.931243896484375" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M774.4635009765625,539.79437255859375s8.26324462890625-4.98675537109375,35.87493896484375-34.028411865234375c26.9659423828125-28.36248779296875,63.73614501953125-73.900726318359375,83.624267578125-101.1197509765625,12.14532470703125-16.622222900390625,41.0635986328125-57.81793212890625,48.5018310546875-71.7894287109375,0,0,26.99041748046875-47.478424072265625,27.17620849609375-64.931243896484375" },+];++/** [well, ring, cap, dish, highlight] */+export const STICK_RIGHT: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M760.05609130859375,426.218475341796875c1.9466552734375-44.209228515625-33.5611572265625-81.748809814453125-79.30218505859375-83.844390869140625s-84.4188232421875,32.040008544921875-86.365478515625,76.206695556640625,33.5611572265625,81.748748779296875,79.30218505859375,83.844390869140625c45.74102783203125,2.095611572265625,84.41876220703125-31.997467041015625,86.36541748046875-76.206695556640625h.00006103515625Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M747.429443359375,422.729400634765625c-2.79766845703125-35.880126953125-32.263427734375-68.164764404296875-70.2071533203125-68.175384521484375-38.10333251953125,0-67.38818359375,32.539947509765625-70.2071533203125,67.52655029296875-3.40399169921875,42.35833740234375,32.39105224609375,83.1741943359375,74.7918701171875,80.482940673828125,38.65643310546875-2.457244873046875,68.707275390625-40.145751953125,65.6224365234375-79.834075927734375v-.000030517578125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M692.8167724609375,500.4891357421875c33.6356201171875-8.658905029296875,54.2509765625-42.65618896484375,45.97503662109375-75.919464111328125s-42.20941162109375-53.187225341796875-75.85565185546875-44.560272216796875-54.2509765625,42.65618896484375-45.97509765625,75.93011474609375,42.20947265625,53.24041748046875,75.855712890625,44.54962158203125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M678.47747802734375,486.66046142578125c24.16827392578125-.393585205078125,43.48590087890625-18.2113037109375,43.1455078125-39.8052978515625s-20.21112060546875-38.794769287109375-44.358154296875-38.40118408203125-43.4752197265625,18.2113037109375-43.1455078125,39.80535888671875c.32977294921875,21.59405517578125,20.20050048828125,38.7415771484375,44.358154296875,38.401153564453125v-.000030517578125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M652.0008544921875,384.360107421875s5.6378173828125-15.488128662109375,26.82763671875-13.22235107421875c6.029052734375.367401123046875,11.462158203125,3.762542724609375,14.43499755859375,9.02056884765625" },+];++/** [well, ring, cap, dish, highlight] */+export const STICK_LEFT: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M334.3731689453125,297.5234375c2.007110595703125-45.58203125-34.603302001953125-84.28729248046875-81.764694213867188-86.447952270507812-47.161392211914062-2.16064453125-87.040252685546875,33.034942626953125-89.047317504882812,78.573104858398438-2.007049560546875,45.53814697265625,34.603302001953125,84.287261962890625,81.764694213867188,86.447967529296875,47.161392211914062,2.160675048828125,87.040176391601562-32.991058349609375,89.047317504882812-78.5731201171875Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M321.354461669921875,293.925994873046875c-2.884521484375-36.994293212890625-33.2652587890625-70.28143310546875-72.38726806640625-70.29241943359375-39.28656005859375,0-69.48077392578125,33.550384521484375-72.38726806640625,69.623382568359375-3.50970458984375,43.67364501953125,33.396865844726562,85.7569580078125,77.1143798828125,82.98211669921875,39.856842041015625-2.533538818359375,70.840789794921875-41.392364501953125,67.66015625-82.3131103515625v.000030517578125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M265.0458984375,374.10040283203125c34.680084228515625-8.927764892578125,55.93560791015625-43.980743408203125,47.40264892578125-78.276947021484375s-43.52008056640625-54.838836669921875-78.211151123046875-45.944000244140625c-34.691055297851562,8.89483642578125-55.93560791015625,43.980743408203125-47.402725219726562,78.287933349609375,8.532882690429688,34.307159423828125,43.520156860351562,54.893646240234375,78.211227416992188,45.933013916015625Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M250.261367797851562,359.84228515625c24.918746948242188-.405792236328125,44.836227416992188-18.776824951171875,44.485275268554688-41.0413818359375-.350982666015625-22.264556884765625-20.8387451171875-39.99945068359375-45.735595703125-39.593658447265625s-44.82525634765625,18.776824951171875-44.485260009765625,41.041412353515625,20.827774047851562,39.944580078125,45.735595703125,39.5936279296875h-.000015258789062Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M222.96258544921875,254.365264892578125s5.812896728515625-15.969070434570312,27.660675048828125-13.6329345703125c6.21630859375.378829956054688,11.81805419921875,3.879379272460938,14.883270263671875,9.300674438476562" },+];++/** Socket behind the cap, sized like Xbox (~r 34.7) so the carved cap reveals the hole when it moves. */+export const STICK_LEFT_SOCKET = { cx: 249.64, cy: 275.51, r: 34.7 };+export const STICK_RIGHT_SOCKET = { cx: 677.88, cy: 405.7, r: 34.7 };++/** Cross, inner dish, four arrows */+export const DPAD: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M444.445953369140625,396.019439697265625h-35.760528564453125c-4.840576171875,0-8.764617919921875-3.924041748046875-8.764617919921875-8.764617919921875v-26.106658935546875c0-4.568450927734375-3.703460693359375-8.271942138671875-8.271942138671875-8.271942138671875h-34.58563232421875c-4.568450927734375,0-8.271942138671875,3.703460693359375-8.271942138671875,8.271942138671875v26.106658935546875c0,4.840576171875-3.924041748046875,8.764617919921875-8.764617919921875,8.764617919921875h-35.760772705078125c-4.568450927734375,0-8.271942138671875,3.703460693359375-8.271942138671875,8.271942138671875v30.8995361328125c0,4.568450927734375,3.703460693359375,8.271942138671875,8.271942138671875,8.271942138671875h35.760772705078125c4.840576171875,0,8.764617919921875,3.924041748046875,8.764617919921875,8.764617919921875v26.17083740234375c0,4.568450927734375,3.703460693359375,8.271942138671875,8.271942138671875,8.271942138671875h34.58563232421875c4.568450927734375,0,8.271942138671875-3.703460693359375,8.271942138671875-8.271942138671875v-26.17083740234375c0-4.840576171875,3.924041748046875-8.764617919921875,8.764617919921875-8.764617919921875h35.760528564453125c4.568450927734375,0,8.271942138671875-3.703460693359375,8.271942138671875-8.271942138671875v-30.8995361328125c0-4.568450927734375-3.703460693359375-8.271942138671875-8.271942138671875-8.271942138671875Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M452.717926025390625,407.15435791015625v-7.8826904296875c0-4.568450927734375-3.703460693359375-8.271942138671875-8.271942138671875-8.271942138671875h-35.760528564453125c-4.840576171875,0-8.764617919921875-3.924041748046875-8.764617919921875-8.764617919921875v-26.106658935546875c0-4.568450927734375-3.703460693359375-8.271942138671875-8.271942138671875-8.271942138671875h-34.58563232421875c-4.568450927734375,0-8.271942138671875,3.703460693359375-8.271942138671875,8.271942138671875v26.106658935546875c0,4.840576171875-3.924041748046875,8.764617919921875-8.764617919921875,8.764617919921875h-35.760772705078125c-4.568450927734375,0-8.271942138671875,3.703460693359375-8.271942138671875,8.271942138671875l-.000030517578125,8.6107177734375" },+ { kind: "polygon", paint: "fill", points: "364.38232421875 379.1337890625 374.35595703125 361.857421875 384.32958984375 379.1337890625 364.38232421875 379.1337890625" },+ { kind: "polygon", paint: "fill", points: "313.228515625 418.94140625 330.50439453125 408.9677734375 330.50439453125 428.916015625 313.228515625 418.94140625" },+ { kind: "polygon", paint: "fill", points: "417.44189453125 408.4541015625 434.71728515625 418.427734375 417.44189453125 428.4013671875 417.44189453125 408.4541015625" },+ { kind: "polygon", paint: "fill", points: "364.38232421875 457.3349609375 384.32958984375 457.3349609375 374.35595703125 474.6103515625 364.38232421875 457.3349609375" },+];++/** Physical B (bottom) */+export const FACE_B: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M802.26458740234375,384.556976318359375c17.73541259765625-4.560791015625,28.620361328125-22.4808349609375,24.2349853515625-40.022369384765625-4.41888427734375-17.4429931640625-22.1414794921875-28.001129150390625-39.58441162109375-23.58221435546875-.1339111328125.033905029296875-.267578125.06866455078125-.4010009765625.104278564453125-17.73541259765625,4.560791015625-28.620361328125,22.4808349609375-24.2349853515625,40.022369384765625,4.41888427734375,17.4429931640625,22.1414794921875,28.001129150390625,39.58447265625,23.582244873046875.1339111328125-.033935546875.267578125-.068695068359375.4010009765625-.10430908203125h-.00006103515625Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M801.7568359375,384.372344970703125c16.6182861328125-4.27459716796875,26.77392578125-21.0498046875,22.6839599609375-37.464996337890625-4.11859130859375-16.31451416015625-20.6829833984375-26.201263427734375-36.99755859375-22.082611083984375-.140625.0355224609375-.2811279296875.072021484375-.4212646484375.10955810546875-16.6182861328125,4.27459716796875-26.77392578125,21.04058837890625-22.6839599609375,37.45574951171875,4.11383056640625,16.31573486328125,20.67529296875,26.20733642578125,36.99102783203125,22.093505859375.142822265625-.036041259765625.285400390625-.073089599609375.427734375-.111175537109375l.00006103515625-.000030517578125Z" },+ { kind: "path", paint: "fill", d: "M804.31414794921875,351.38507080078125s9.41705322265625-7.238189697265625,4.6162109375-16.489013671875c-2.8343505859375-2.963592529296875-10.69110107421875-2.94512939453125-25.00128173828125-1.495635986328125l-.8770751953125,40.530120849609375s11.171142578125,1.458709716796875,19.50799560546875-2.84356689453125,14.605712890625-14.097900390625,1.754150390625-19.701934814453125v.000030517578125ZM791.31494140625,340.02923583984375c12.09442138671875-1.846466064453125,11.1988525390625,3.60986328125,11.1988525390625,3.60986328125,0,8.973876953125-12.07598876953125,6.61962890625-12.07598876953125,6.61962890625l.8770751953125-10.2294921875h.00006103515625ZM804.3787841796875,361.623779296875c-1.449462890625,6.58270263671875-14.8641357421875,7.570556640625-14.8641357421875,7.570556640625l.9232177734375-12.3067626953125c14.5594482421875-2.086578369140625,13.94085693359375,4.73614501953125,13.94085693359375,4.73614501953125v.000030517578125l.00006103515625.000030517578125Z" },+];++/** Physical A (right) */+export const FACE_A: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M878.22857666015625,319.84259033203125c17.40301513671875-4.47772216796875,28.121826171875-21.769927978515625,23.9395751953125-38.6190185546875-4.18231201171875-16.849090576171875-21.66839599609375-26.866226196289062-39.0714111328125-22.388519287109375-17.403076171875,4.47772216796875-28.11260986328125,21.769927978515625-23.9302978515625,38.619049072265625s21.66839599609375,26.8662109375,39.06219482421875,22.38848876953125h-.00006103515625Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M878.191650390625,319.62103271484375c16.13818359375-4.117645263671875,26.016845703125-20.31121826171875,22.05615234375-36.0709228515625-3.960693359375-15.759674072265625-20.255859375-25.27825927734375-36.39404296875-21.160614013671875s-26.026123046875,20.255828857421875-22.0377197265625,36.08013916015625,20.22808837890625,25.269012451171875,36.3756103515625,21.151397705078125Z" },+ { kind: "path", paint: "fill", d: "M869.51318359375,266.57177734375l-16.7198486328125,40.71478271484375h5.5394287109375s1.92034912109375-4.154571533203125,4.36688232421875-9.472442626953125h17.98468017578125l2.76971435546875,7.570556640625h7.38592529296875l-13.93170166015625-38.7760009765625-7.39508056640625-.03692626953125v.000030517578125ZM879.077880859375,292.930206298828125h-14.0516357421875v-.083099365234375l8.1890869140625-17.726165771484375,5.72406005859375,17.495361328125c.07379150390625.083099365234375.1015625.18463134765625.138427734375.31390380859375h.00006103515625Z" },+];++/** Physical X (top) */+export const FACE_X: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M802.91461181640625,258.69598388671875c18.787841796875-4.837753295898438,30.46685791015625-23.15478515625,26.05377197265625-40.899429321289062-4.4130859375-17.74462890625-23.20098876953125-28.214141845703125-41.99810791015625-23.367141723632812s-30.46685791015625,23.145584106445312-26.06298828125,40.890213012695312,23.210205078125,28.214126586914062,42.00732421875,23.376358032226562Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M802.52685546875,258.31744384765625c17.3660888671875-4.477706909179688,28.1402587890625-21.474517822265625,24.05035400390625-37.9727783203125-4.0899658203125-16.498260498046875-21.5299072265625-26.238418579101562-38.86834716796875-21.723785400390625-17.33843994140625,4.5146484375-28.1402587890625,21.474517822265625-24.05035400390625,37.9727783203125,4.0899658203125,16.498260498046875,21.49298095703125,26.1922607421875,38.86834716796875,21.723785400390625Z" },+ { kind: "path", paint: "fill", d: "M806.67218017578125,207.853256225585938l-11.14349365234375,16.092025756835938-9.2969970703125-15.168792724609375h-5.5394287109375l10.21099853515625,19.886550903320312-.9232177734375.923233032226562-12.1036376953125,16.119720458984375h7.38592529296875l9.28778076171875-12.306747436523438,9.33392333984375,12.306747436523438h6.462646484375l-11.1527099609375-17.04296875,13.987060546875-20.809783935546875h-6.5087890625l-.00006103515625.000015258789062Z" },+];++/** Physical Y (left) */+export const FACE_Y: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M726.29400634765625,321.088958740234375c17.73541259765625-4.560791015625,28.620361328125-22.4808349609375,24.2349853515625-40.022369384765625-4.41888427734375-17.4429931640625-22.1414794921875-28.001129150390625-39.58441162109375-23.58221435546875-.1339111328125.033905029296875-.267578125.06866455078125-.4010009765625.104278564453125-17.73541259765625,4.560791015625-28.620361328125,22.4808349609375-24.2349853515625,40.022369384765625,4.41888427734375,17.4429931640625,22.1414794921875,28.001129150390625,39.58447265625,23.582244873046875.1339111328125-.033935546875.267578125-.068695068359375.4010009765625-.10430908203125h-.00006103515625Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M725.7862548828125,320.904327392578125c16.6182861328125-4.27459716796875,26.77392578125-21.0498046875,22.6839599609375-37.464996337890625-4.11859130859375-16.31451416015625-20.6829833984375-26.201263427734375-36.99755859375-22.082611083984375-.140625.0355224609375-.2811279296875.072021484375-.4212646484375.10955810546875-16.6182861328125,4.27459716796875-26.77392578125,21.04058837890625-22.6839599609375,37.45574951171875,4.11383056640625,16.31573486328125,20.67529296875,26.20733642578125,36.99102783203125,22.093505859375.142822265625-.036041259765625.285400390625-.073089599609375.427734375-.111175537109375l.00006103515625-.000030517578125Z" },+ { kind: "path", paint: "fill", d: "M708.60223388671875,270.892852783203125l9.2969970703125,20.8282470703125,13.93170166015625-21.76995849609375h6.462646484375l-17.65228271484375,29.3497314453125v13.2576904296875h-6.462646484375v-14.2086181640625l-12.1129150390625-27.45709228515625h6.53656005859375-.00006103515625Z" },+];++export const HOME: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 594.31207275390625, cy: 331.353851318359375, rx: 26.514404296875, ry: 24.633270263671875 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M594.09405517578125,351.24505615234375c-11.79620361328125,0-21.39300537109375-9.07061767578125-21.39300537109375-20.219970703125,0-11.148956298828125,9.59674072265625-20.219573974609375,21.39300537109375-20.219573974609375,11.796630859375,0,21.39337158203125,9.07061767578125,21.39337158203125,20.219573974609375,0,11.14935302734375-9.59674072265625,20.219970703125-21.39337158203125,20.219970703125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M594.175537109375,351.24505615234375c-11.45111083984375,0-20.76708984375-8.412933349609375-20.76708984375-18.753936767578125,0-10.340606689453125,9.31597900390625-18.7535400390625,20.76708984375-18.7535400390625,11.45147705078125,0,20.7674560546875,8.412933349609375,20.7674560546875,18.7535400390625,0,10.340972900390625-9.31597900390625,18.753936767578125-20.7674560546875,18.753936767578125Z" },+ { kind: "path", paint: "fill", d: "M607.27008056640625,331.797393798828125l.007080078125.505615234375c-.17889404296875.79278564453125-.94158935546875,1.366546630859375-1.889892578125,1.3656005859375l-1.3895263671875-.001373291015625.001708984375,6.916259765625c.00030517578125,1.18255615234375-1.04290771484375,2.1417236328125-2.40472412109375,2.14202880859375l-13.4132080078125.003143310546875c-1.4114990234375.000335693359375-2.46051025390625-.95538330078125-2.4593505859375-2.190582275390625l.00634765625-6.870208740234375-1.38934326171875.000762939453125c-.94854736328125.000518798828125-1.711181640625-.57269287109375-1.8900146484375-1.3656005859375l.0069580078125-.505584716796875c.0909423828125-.386322021484375.282958984375-.67742919921875.61224365234375-.9677734375l10.3807373046875-9.15283203125c.83660888671875-.737640380859375,1.99139404296875-.737762451171875,2.82806396484375-.000030517578125l10.38079833984375,9.15283203125c.32928466796875.290313720703125.52130126953125.58172607421875.612060546875.9677734375l.00006103515625-.000030517578125ZM597.65167236328125,339.678253173828125l-.002197265625-2.6761474609375c.05035400390625-1.420196533203125-1.233154296875-2.552764892578125-2.80340576171875-2.54345703125-1.5743408203125.00933837890625-2.781982421875,1.13525390625-2.77703857421875,2.544219970703125l.00946044921875,2.67913818359375,5.57318115234375-.003753662109375Z" },+];++/** Decoration; no binding slot */+export const CAPTURE: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M444.4638671875,348.43341064453125h28.595458984375c3.014617919921875,0,5.458465576171875-2.309906005859375,5.458465576171875-5.1593017578125v-24.18701171875c0-2.84942626953125-2.443817138671875-5.159332275390625-5.458465576171875-5.159332275390625h-28.595458984375c-3.014617919921875,0-5.458465576171875,2.309906005859375-5.458465576171875,5.159332275390625v24.18701171875c0,2.849395751953125,2.443817138671875,5.1593017578125,5.458465576171875,5.1593017578125ZM444.358673095703125,348.44647216796875h28.595458984375c3.014617919921875,0,5.458465576171875-2.309906005859375,5.458465576171875-5.1593017578125v-27.02838134765625c0-2.84942626953125-2.443817138671875-5.159332275390625-5.458465576171875-5.159332275390625h-28.595458984375c-3.014617919921875,0-5.458465576171875,2.309906005859375-5.458465576171875,5.159332275390625v27.02838134765625c0,2.849395751953125,2.443817138671875,5.1593017578125,5.458465576171875,5.1593017578125Z" },+ { kind: "ellipse", paint: "stroke", strokeWidth: 4, cx: 458.74078369140625, cy: 331.594207763671875, rx: 12.313385009765625, ry: 11.638427734375 },+];++export const MINUS: GamepadGeom[] = [+ { kind: "rect", paint: "fill", x: 392.15838623046875, y: 220.562301635742188, width: 22.00067138671875, height: 3.592864990234375 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M403.017974853515625,242.142837524414062c-12.34552001953125,0-22.38916015625-9.49298095703125-22.38916015625-21.161529541015625,0-11.668121337890625,10.04364013671875-21.161102294921875,22.38916015625-21.161102294921875,12.345916748046875,0,22.389556884765625,9.49298095703125,22.389556884765625,21.161102294921875,0,11.668548583984375-10.04364013671875,21.161529541015625-22.389556884765625,21.161529541015625Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M403.103240966796875,242.142837524414062c-11.984344482421875,0-21.734130859375-8.804702758789062-21.734130859375-19.627212524414062,0-10.822128295898438,9.749786376953125-19.626815795898438,21.734130859375-19.626815795898438,11.984710693359375,0,21.734527587890625,8.804702758789062,21.734527587890625,19.626815795898438,0,10.822509765625-9.749786376953125,19.627212524414062-21.734527587890625,19.627212524414062Z" },+];++export const PLUS: GamepadGeom[] = [+ { kind: "rect", paint: "fill", x: 641.957763671875, y: 220.231643676757812, width: 22.2352294921875, height: 3.631179809570312 },+ { kind: "rect", paint: "fill", x: 651.25982666015625, y: 210.677871704101562, width: 3.63116455078125, height: 22.2352294921875 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M652.7080078125,242.284469604492188c-12.5360107421875,0-22.73468017578125-9.639480590820312-22.73468017578125-21.488082885742188,0-11.848175048828125,10.1986083984375-21.487655639648438,22.73468017578125-21.487655639648438,12.53643798828125,0,22.73504638671875,9.639480590820312,22.73504638671875,21.487655639648438,0,11.848602294921875-10.1986083984375,21.488067626953125-22.73504638671875,21.488067626953125v.000015258789062Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M652.79461669921875,242.284469604492188c-12.16925048828125,0-22.06951904296875-8.940567016601562-22.06951904296875-19.930084228515625,0-10.989120483398438,9.9002685546875-19.9296875,22.06951904296875-19.9296875,12.169677734375,0,22.06988525390625,8.940567016601562,22.06988525390625,19.9296875,0,10.989517211914062-9.9002685546875,19.930084228515625-22.06988525390625,19.930084228515625Z" },+];++export const SHOULDER: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M935.08233642578125,143.802688598632812s-.36749267578125,6.873199462890625-2.7862548828125,9.976974487304688c-2.4188232421875,3.103775024414062-10.80889892578125,9.704345703125-26.5040283203125,5.558013916015625-15.69512939453125-4.146316528320312-51.02630615234375-15.800506591796875-65.45892333984375-19.525039672851562-14.43255615234375-3.724533081054688-34.021484375-7.473281860351562-55.247314453125-10.220443725585938,0,0-50.285400390625-3.495254516601562-71.8525390625-4.779937744140625-21.56719970703125-1.284683227539062-113.598388671875-1.139289855957031-113.598388671875-1.139289855957031l-139.214935302734375-.004951477050781s-103.72894287109375-.069221496582031-121.41497802734375.631942749023438-73.87158203125,3.94696044921875-93.528274536132812,7.821380615234375-54.631515502929688,13.732269287109375-68.3614501953125,18.07489013671875c-13.729949951171875,4.342620849609375-27.7686767578125,10.804534912109375-39.883377075195312,10.470367431640625-5.72015380859375-.157791137695312-20.90478515625-3.099044799804688-18.113151550292969-19.520797729492188" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M675.35003662109375,99.149505615234375s25.33056640625-37.555912017822266,37.53057861328125-46.995182037353516c12.199951171875-9.43927001953125,16.5230712890625-12.230270385742188,51.3572998046875-9.014217376708984,34.834228515625,3.216056823730469,61.88983154296875,15.659652709960938,80.30755615234375,25.26910400390625s47.59710693359375,27.482505798339844,63.30108642578125,41.2269287109375c4.9288330078125,4.313827514648438,16.1563720703125,17.105690002441406,9.16650390625,22.43133544921875-6.2220458984375,4.740615844726562-20.41827392578125,1.599746704101562-39.55450439453125-5.259124755859375-20.6661376953125-7.407211303710938-44.04461669921875-12.614395141601562-76.47381591796875-18.809684753417969-24.85052490234375-4.747451782226562-93.506591796875-6.410942077636719-108.728515625-8.151947021484375-2.799560546875-.320198059082031-9.3221435546875-.553382873535156-18.1036376953125-.720733642578125-38.9658203125-.742584228515625-122.40771484375-.188896179199219-122.40771484375-.188896179199219h-145.4114990234375s-79.37921142578125,1.224388122558594-108.560455322265625,3.265037536621094c-29.1812744140625,2.0406494140625-62.443817138671875,8.366653442382812-80.19744873046875,12.8560791015625s-37.154998779296875,13.592781066894531-51.57110595703125,16.733314514160156-21.843795776367188,4.436981201171875-29.64666748046875-2.199325561523438c-7.8028564453125-6.636299133300781,3.218460083007812-18.06964111328125,7.79229736328125-21.593536376953125,17.145980834960938-13.2100830078125,59.7479248046875-38.480194091796875,73.375625610351562-44.578102111816406,13.627700805664062-6.097911834716797,31.970733642578125-13.233814239501953,54.010848999023438-17.782638549804688,22.04010009765625-4.548820495605469,36.7880859375-7.133602142333984,48.777740478515625-3.777141571044922s28.221160888671875,15.000064849853516,38.342681884765625,27.392932891845703c10.121551513671875,12.392868041992188,19.656707763671875,30.592994689941406,19.656707763671875,30.592994689941406" },+ { kind: "line", paint: "stroke", strokeWidth: 2, x1: 311.066925048828125, y1: 34.979377746582031, x2: 315.929840087890625, y2: 40.946022033691406 },+ { kind: "line", paint: "stroke", strokeWidth: 2, x1: 739.91259765625, y1: 35.948078155517578, x2: 735.04974365234375, y2: 41.914722442626953 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M787.47064208984375,46.774028778076172s30.503173828125,3.262550354003906,49.60321044921875,9.081104278564453,39.84130859375,14.841461181640625,48.69879150390625,20.997390747070312c7.076416015625,4.918106079101562,14.10052490234375,10.474456787109375,18.62628173828125,16.601219177246094" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M898.4554443359375,101.469444274902344s-1.33221435546875,5.187820434570312-8.8302001953125,5.168632507324219-39.68603515625-13.527519226074219-39.68603515625-13.527519226074219c0,0-34.23297119140625-11.168540954589844-43.62432861328125-13.892112731933594s-37.5654296875-8.636985778808594-47.10821533203125-9.997268676757812c-9.5428466796875-1.36029052734375-17.84881591796875-2.977455139160156-31.8094482421875,2.479232788085938-13.9605712890625,5.456680297851562-46.3154296875,25.336883544921875-51.62286376953125,26.823905944824219" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M155.363021850585938,100.525360107421875s1.765289306640625,5.47381591796875,9.263275146484375,5.454627990722656,39.68603515625-13.527519226074219,39.68603515625-13.527519226074219c0,0,34.232986450195312-11.168540954589844,43.624343872070312-13.892112731933594s37.565399169921875-8.636985778808594,47.108245849609375-9.997276306152344c9.542816162109375-1.36029052734375,17.84881591796875-2.977455139160156,31.809417724609375,2.479232788085938,13.960601806640625,5.456680297851562,44.826690673828125,25.269157409667969,50.1341552734375,26.756179809570312" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M265.5765380859375,46.950176239013672s-30.421722412109375,3.141654968261719-49.521759033203125,8.960212707519531c-19.10003662109375,5.818553924560547-39.841293334960938,14.841457366943359-48.698776245117188,20.997394561767578-7.076431274414062,4.918113708496094-14.981597900390625,10.514747619628906-19.50738525390625,16.641502380371094" },+];++export const TOP_PANEL: GamepadGeom[] = [+ { kind: "polyline", paint: "stroke", strokeWidth: 2, points: "340.7130126953125 32.238445281982422 381.928619384765625 94.597999572753906 672.0648193359375 94.759567260742188 711.439208984375 32.053058624267578" },+ { kind: "line", paint: "stroke", strokeWidth: 2, x1: 381.928619384765625, y1: 94.597999572753906, x2: 381.92572021484375, y2: 99.846725463867188 },+ { kind: "line", paint: "stroke", strokeWidth: 2, x1: 671.94268798828125, y1: 94.647537231445312, x2: 671.93975830078125, y2: 99.896263122558594 },+];++/** Decoration */+export const USB: GamepadGeom[] = [+ { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 6.497344970703125, ry: 6.497344970703125, x: 497.5435791015625, y: 50.710567474365121, width: 57.0992431640625, height: 13.00038146972679 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M548.18505859375,63.080768585205078v-.000011444091797c0-3.589954376220703-2.91021728515625-6.50018310546875-6.50018310546875-6.50018310546875h-32.145172119140625c-3.5899658203125,0-6.50018310546875,2.910232543945312-6.50018310546875,6.50018310546875v.000011444091797" },+];++/** Decoration */+export const SYNC: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 461.748077392578125, cy: 55.938949584960938, rx: 7.6666259765625, ry: 4.442684173583984 };++/** Decoration */+export const RECHARGE_LED: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 589.24676513671875, cy: 56.84259033203125, rx: 3.861572265625, ry: 2.988079071044922 };++/** NINTENDO SWITCH wordmark; decoration */+export const NFC_TOUCHPOINT: GamepadGeom[] = [+ { kind: "polygon", paint: "fill", points: "507.41973876953125 266.81463623046875 511.871124267578125 266.78106689453125 505.95806884765625 287.508148193359375 501.076507568359375 287.483551025390625 497.191864013671875 273.9273681640625 493.29779052734375 287.52569580078125 488.4288330078125 287.4696044921875 482.572967529296875 266.79144287109375 487.015960693359375 266.74810791015625 491.026123046875 281.684661865234375 495.391387939453125 266.785186767578125 498.975494384765625 266.781829833984375 503.382293701171875 281.71435546875 507.41973876953125 266.81463623046875" },+ { kind: "path", paint: "fill", d: "M590.4794921875,287.27679443359375c-1.40972900390625.33966064453125-2.73284912109375.2587890625-4.1859130859375.16558837890625l-.01495361328125-8.29833984375-9.68182373046875-.0035400390625-.03875732421875,8.2977294921875-4.17584228515625.020294189453125-.00250244140625-20.712158203125,4.18072509765625.052398681640625.01959228515625,8.16070556640625,9.697265625-.025634765625.015380859375-8.1815185546875,4.17987060546875-.001312255859375.00701904296875,20.525787353515625h-.00006103515625Z" },+ { kind: "path", paint: "fill", d: "M477.6287841796875,286.298797607421875c-1.43035888671875.92889404296875-3.250030517578125,1.55120849609375-4.898529052734375,1.55108642578125l-4.824859619140625-.000274658203125c-2.380828857421875-.000152587890625-4.5238037109375-1.02801513671875-6.791717529296875-1.981597900390625l1.943756103515625-3.501068115234375c4.22552490234375,2.61273193359375,13.17376708984375,2.717559814453125,12.920501708984375-.957275390625-.041717529296875-.60516357421875-.850616455078125-1.593505859375-1.608734130859375-1.755340576171875l-8.442169189453125-1.802215576171875c-.5634765625-.12030029296875-1.46405029296875-.6300048828125-2.006072998046875-.912750244140625-1.548919677734375-.8079833984375-2.5369873046875-2.332000732421875-2.5955810546875-3.890533447265625-.063751220703125-1.696136474609375.71600341796875-3.292633056640625,2.11944580078125-4.328216552734375,4.382049560546875-3.23345947265625,9.781494140625-2.370880126953125,15.07354736328125-.694580078125l-1.5096435546875,3.594390869140625c-3.496826171875-1.628173828125-10.466827392578125-2.11663818359375-11.26824951171875.358642578125-.8194580078125,2.531005859375,4.00567626953125,2.62982177734375,6.064666748046875,3.1705322265625l3.377716064453125.886993408203125c1.51800537109375.39862060546875,3.134918212890625,1.0701904296875,4.097900390625,2.429901123046875,1.73480224609375,2.44952392578125,1.000030517578125,6.11004638671875-1.6519775390625,7.832305908203125Z" },+ { kind: "path", paint: "fill", d: "M557.9556884765625,270.739166259765625c-3.1229248046875.217498779296875-5.586181640625,2.627777099609375-5.9476318359375,5.58349609375-.37677001953125,3.08074951171875,1.4228515625,5.926177978515625,4.4371337890625,6.977935791015625,2.87359619140625,1.00262451171875,6.02099609375-.2105712890625,7.75177001953125-2.82196044921875l3.34588623046875,2.790283203125c-3.690673828125,5.503265380859375-11.36700439453125,6.484466552734375-16.34765625,2.170928955078125-4.9334716796875-4.27264404296875-5.0753173828125-11.963958740234375-.22308349609375-16.3948974609375,4.8917236328125-4.467010498046875,12.60614013671875-3.6832275390625,16.53704833984375,1.931427001953125l-3.2998046875,2.864990234375c-1.431884765625-2.2718505859375-3.68243408203125-3.28125-6.253662109375-3.1021728515625v-.000030517578125Z" },+ { kind: "polygon", paint: "fill", points: "537.71734619140625 287.421356201171875 533.33642578125 287.421630859375 533.334716796875 271.14764404296875 526.66009521484375 271.132110595703125 526.68841552734375 266.760406494140625 544.15826416015625 266.75653076171875 544.1903076171875 271.136932373046875 537.72003173828125 271.133758544921875 537.71734619140625 287.421356201171875" },+ { kind: "rect", paint: "fill", x: 517.14239501953125, y: 266.753875732421875, width: 4.43890380859375, height: 20.76483154296875 },+ { kind: "path", paint: "fill", d: "M591.2652587890625,255.748565673828125c0,3.20843505859375-2.6009521484375,5.809417724609375-5.80938720703125,5.809417724609375s-5.80938720703125-2.6009521484375-5.80938720703125-5.809417724609375c0-3.208450317382812,2.6009521484375-5.809417724609375,5.80938720703125-5.809417724609375s5.80938720703125,2.600967407226562,5.80938720703125,5.809417724609375ZM588.89715576171875,255.75189208984375c0-1.89044189453125-1.53253173828125-3.422958374023438-3.4229736328125-3.422958374023438s-3.4229736328125,1.532516479492188-3.4229736328125,3.422958374023438,1.53253173828125,3.422943115234375,3.4229736328125,3.422943115234375,3.4229736328125-1.532501220703125,3.4229736328125-3.422958374023438v.000015258789062Z" },+ { kind: "path", paint: "fill", d: "M553.14141845703125,261.14605712890625c-.684326171875.107635498046875-1.62200927734375.09014892578125-2.223876953125-.075225830078125l-5.33502197265625-7.06646728515625-.08935546875,7.207794189453125-2.2412109375-.13934326171875-.026123046875-10.546234130859375c.8018798828125-.146392822265625,1.6368408203125-.163177490234375,2.39996337890625-.061614990234375l5.181396484375,6.869598388671875.06585693359375-6.923049926757812,2.26531982421875-.017913818359375.003173828125,10.752456665039062h-.0001220703125Z" },+ { kind: "polygon", paint: "fill", points: "471.80316162109375 261.152435302734375 469.718048095703125 261.211181640625 464.227935791015625 253.84930419921875 464.145294189453125 261.217926025390625 462.08367919921875 261.211944580078125 462.084136962890625 250.391067504882812 464.346466064453125 250.444015502929688 469.6182861328125 257.4317626953125 469.725067138671875 250.379623413085938 471.798828125 250.416580200195312 471.80316162109375 261.152435302734375" },+ { kind: "path", paint: "fill", d: "M500.565582275390625,261.14630126953125c-.689422607421875.11737060546875-1.61639404296875.098480224609375-2.209686279296875-.079559326171875l-5.3226318359375-7.1234130859375-.110321044921875,7.26910400390625-2.078094482421875-.0321044921875.000732421875-10.762374877929688,2.264129638671875-.012176513671875,5.251373291015625,7.014602661132812.119659423828125-7.010498046875,2.081451416015625-.020294189453125.003387451171875,10.7567138671875Z" },+ { kind: "path", paint: "fill", d: "M572.378173828125,254.499374389648438c.839111328125,3.388015747070312-1.74981689453125,6.620742797851562-5.12994384765625,6.668869018554688l-4.7744140625.0679931640625-.00634765625-10.835525512695312,5.48065185546875.049972534179688c2.10791015625.01922607421875,3.90740966796875,1.938552856445312,4.4300537109375,4.048690795898438ZM566.691162109375,258.9788818359375c1.7559814453125.08953857421875,3.1163330078125-1.00640869140625,3.46148681640625-2.513275146484375.33013916015625-1.441329956054688-.37469482421875-3.102188110351562-1.951416015625-3.692062377929688-1.10009765625-.411544799804688-2.4468994140625-.359619140625-3.6380615234375-.180892944335938l.01556396484375,6.278533935546875,2.1124267578125.107696533203125Z" },+ { kind: "polygon", paint: "fill", points: "533.7109375 256.65460205078125 527.8155517578125 256.66448974609375 527.81903076171875 259.135528564453125 534.0982666015625 259.1324462890625 534.083984375 261.2298583984375 525.7216796875 261.21636962890625 525.7115478515625 250.379898071289062 534.04449462890625 250.37310791015625 534.11077880859375 252.282318115234375 527.9012451171875 252.274078369140625 527.83160400390625 254.736801147460938 533.68634033203125 254.75274658203125 533.7109375 256.65460205078125" },+ { kind: "polygon", paint: "fill", points: "514.280517578125 261.15802001953125 511.99053955078125 261.23193359375 511.991729736328125 252.67730712890625 508.39288330078125 252.599472045898438 508.39862060546875 250.393692016601562 517.68170166015625 250.348663330078125 517.69952392578125 252.592010498046875 514.27490234375 252.66790771484375 514.280517578125 261.15802001953125" },+ { kind: "rect", paint: "fill", x: 480.179351806640625, y: 250.376922607421875, width: 2.28692626953125, height: 10.851104736328125 },+ { kind: "path", paint: "fill", d: "M597.19476318359375,287.321136474609375l-.12054443359375-1.470977783203125-.90228271484375,1.738128662109375-.79119873046875-1.931427001953125-.20257568359375,1.648651123046875-.31121826171875-.021697998046875-.001220703125-2.199249267578125c-.00006103515625-.12249755859375.4224853515625-.36517333984375.50726318359375-.27655029296875.11297607421875.118072509765625.32269287109375.42425537109375.390869140625.5946044921875l.48272705078125,1.206756591796875.8804931640625-1.8687744140625c.23046875.12738037109375.5601806640625.569366455078125.56146240234375.77886962890625l.01068115234375,1.770263671875-.50445556640625.031402587890625Z" },+ { kind: "polygon", paint: "fill", points: "593.50640869140625 285.5205078125 593.599365234375 287.29461669921875 593.22210693359375 287.30810546875 593.124755859375 285.49627685546875 592.03924560546875 284.881988525390625 594.58734130859375 284.961273193359375 593.50640869140625 285.5205078125" },+ { kind: "path", paint: "fill", d: "M570.43011474609375,215.719573974609375c-.00067138671875,2.551986694335938-.72979736328125,4.594985961914062-1.46942138671875,6.80242919921875-3.0289306640625,7.872329711914062-10.0372314453125,13.18731689453125-18.4622802734375,14.307861328125l-16.597900390625-.002212524414062.00390625-87.410720825195312,15.26348876953125.04541015625c9.77825927734375.329849243164062,17.92022705078125,7.215667724609375,20.5643310546875,16.473846435546875.26275634765625,1.495925903320312.710205078125,2.917343139648438.7098388671875,4.511138916015625l-.011962890625,45.272247314453125ZM560.1142578125,197.499038696289062c0-4.910537719726562-3.98077392578125-8.891326904296875-8.89129638671875-8.891326904296875s-8.89129638671875,3.98077392578125-8.89129638671875,8.891326904296875c0,4.910537719726562,3.98077392578125,8.891326904296875,8.89129638671875,8.891326904296875s8.89129638671875-3.98077392578125,8.89129638671875-8.891326904296875Z" },+ { kind: "path", paint: "fill", d: "M503.220458984375,236.7095947265625c-6.571014404296875-.345245361328125-12.108642578125-3.927276611328125-15.99017333984375-8.792984008789062-2.299835205078125-3.704193115234375-4.32891845703125-7.473129272460938-4.321868896484375-11.991195678710938l.071044921875-45.549652099609375c.014373779296875-9.21234130859375,6.7777099609375-16.907150268554688,15.0963134765625-19.831878662109375,1.879425048828125-.526626586914062,3.349090576171875-1.0946044921875,5.278167724609375-1.094528198242188l21.78155517578125.0008544921875-.00677490234375,87.410446166992188-21.90826416015625-.15106201171875ZM504.909759521484375,229.912689208984375l13.183502197265625.048477172851562-.000732421875-73.68450927734375-13.48577880859375.085006713867188c-7.794586181640625.4111328125-13.93328857421875,6.306259155273438-14.710418701171875,14.014556884765625l-.00482177734375,45.125274658203125c.53387451171875,7.973831176757812,6.90869140625,14.092056274414062,15.018280029296875,14.41119384765625h-.000030517578125Z" },+ { kind: "circle", paint: "fill", cx: 504.70135498046875, cy: 175.611007690429688, r: 8.20770263671875 },+];++export const PRESS_DPAD_UP: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 7.00946044921875, ry: 7.00946044921875, x: 351.355010986328125, y: 355.29388427734375, width: 45.8489990234375, height: 40.03704833984375 };++export const PRESS_DPAD_LEFT: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 5.899780273437501, ry: 5.899780273437501, x: 298.934295654296875, y: 398.728668212890625, width: 49.895355224609375, height: 41.86431884765625 };++export const PRESS_DPAD_RIGHT: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 7.00946044921875, ry: 7.00946044921875, x: 402.680145263671875, y: 398.728668212890625, width: 47.097412109375, height: 41.86431884765625 };++export const PRESS_DPAD_DOWN: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 5.899780273437501, ry: 5.899780273437501, x: 351.355010986328125, y: 442.3883056640625, width: 45.8489990234375, height: 41.86431884765625 };++export const PRESS_STICK_LEFT: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M263.27532958984375,373.5810546875c34.680084228515625-8.927764892578125,55.93560791015625-43.980743408203125,47.40264892578125-78.276947021484375s-43.52008056640625-54.838836669921875-78.211151123046875-45.944000244140625c-34.691055297851562,8.89483642578125-55.93560791015625,43.980743408203125-47.402725219726562,78.287933349609375,8.532882690429688,34.307159423828125,43.520156860351562,54.893646240234375,78.211227416992188,45.933013916015625Z" };++export const PRESS_STICK_RIGHT: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M691.9444580078125,498.962799072265625c33.48028564453125-8.58770751953125,54.00042724609375-42.30548095703125,45.7626953125-75.295318603515625s-42.01446533203125-52.75-75.50531005859375-44.1939697265625-54.00042724609375,42.30548095703125-45.76275634765625,75.305908203125c8.2376708984375,33.0003662109375,42.0145263671875,52.802703857421875,75.50543212890625,44.18341064453125l-.00006103515625-.000030517578125Z" };++/** Physical B → binding a */+export const PRESS_B: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M800.66375732421875,383.75396728515625c16.6182861328125-4.27459716796875,26.77392578125-21.0498046875,22.6839599609375-37.464996337890625-4.11859130859375-16.31451416015625-20.6829833984375-26.201263427734375-36.99755859375-22.082611083984375-.140625.0355224609375-.2811279296875.072021484375-.4212646484375.10955810546875-16.6182861328125,4.27459716796875-26.77392578125,21.04058837890625-22.6839599609375,37.45574951171875,4.11383056640625,16.31573486328125,20.67529296875,26.20733642578125,36.99102783203125,22.093505859375.142822265625-.036041259765625.285400390625-.073089599609375.427734375-.111175537109375l.00006103515625-.000030517578125Z" };++/** Physical Y → binding x */+export const PRESS_Y: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M725.5338134765625,320.454803466796875c16.98284912109375-4.27459716796875,27.36126708984375-21.0498046875,23.18157958984375-37.464996337890625-4.20892333984375-16.31451416015625-21.13671875-26.201263427734375-37.80914306640625-22.082611083984375-.14373779296875.0355224609375-.28729248046875.072021484375-.43048095703125.10955810546875-16.98284912109375,4.27459716796875-27.36126708984375,21.04058837890625-23.18157958984375,37.45574951171875,4.2041015625,16.31573486328125,21.12884521484375,26.20733642578125,37.802490234375,22.093505859375.14593505859375-.036041259765625.29168701171875-.073089599609375.4371337890625-.111175537109375l.00006103515625-.000030517578125h-.00006103515625Z" };++/** Physical A → binding b */+export const PRESS_A: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M876.7677001953125,319.059722900390625c16.386962890625-4.057586669921875,26.40118408203125-19.981170654296875,22.3681640625-35.563018798828125-4.061279296875-15.486297607421875-20.39508056640625-24.871124267578125-36.4825439453125-20.9615478515625-.138671875.033721923828125-.2772216796875.068359375-.4154052734375.10400390625-16.386962890625,4.057586669921875-26.40118408203125,19.972442626953125-22.3681640625,35.55426025390625,4.05657958984375,15.487457275390625,20.387451171875,24.87689208984375,36.47607421875,20.971893310546875.14080810546875-.034210205078125.28143310546875-.069366455078125.4217529296875-.10552978515625l.00006103515625-.000030517578125.00006103515625-.000030517578125Z" };++/** Physical X → binding y */+export const PRESS_X: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M801.73516845703125,257.6611328125c17.36029052734375-4.27459716796875,27.96942138671875-21.0498046875,23.69683837890625-37.464996337890625-4.302490234375-16.31451416015625-21.60650634765625-26.201263427734375-38.6495361328125-22.082611083984375-.14691162109375.0355224609375-.293701171875.072021484375-.4400634765625.10955810546875-17.36029052734375,4.27459716796875-27.96942138671875,21.04058837890625-23.69683837890625,37.45574951171875,4.2974853515625,16.31573486328125,21.59844970703125,26.20733642578125,38.6427001953125,22.093505859375.149169921875-.036041259765625.29815673828125-.073089599609375.44683837890625-.111175537109375l.00006103515625-.000030517578125Z" };++export const PRESS_MINUS: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M407.85784912109375,241.384033203125c11.6842041015625-2.91375732421875,18.995391845703125-13.72174072265625,16.3243408203125-24.139190673828125-2.670989990234375-10.417449951171875-14.286865234375-16.509323120117188-26.002166748046875-13.595565795898438-11.715240478515625,2.91375732421875-18.995391845703125,13.715728759765625-16.3243408203125,24.139190673828125,2.670989990234375,10.423492431640625,14.31170654296875,16.503341674804688,26.002166748046875,13.595565795898438Z" };++export const PRESS_HOME: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M598.7423095703125,349.946685791015625c11.217041015625-2.695587158203125,18.23590087890625-12.694244384765625,15.67169189453125-22.331634521484375s-13.71563720703125-15.273101806640625-24.9625244140625-12.577545166015625c-11.246826171875,2.695587158203125-18.23590087890625,12.688690185546875-15.67169189453125,22.331634521484375,2.564208984375,9.642974853515625,13.739501953125,15.267578125,24.9625244140625,12.577545166015625Z" };++export const PRESS_PLUS: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M657.69732666015625,241.222793579101562c11.62481689453125-2.91375732421875,18.8988037109375-13.72174072265625,16.2413330078125-24.139190673828125-2.65740966796875-10.417449951171875-14.2142333984375-16.509323120117188-25.8699951171875-13.595565795898438-11.65570068359375,2.91375732421875-18.8988037109375,13.715728759765625-16.2413330078125,24.139190673828125,2.65740966796875,10.423492431640625,14.23895263671875,16.503341674804688,25.8699951171875,13.595565795898438Z" };++/** Decoration */+export const PRESS_CAPTURE: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 6.4366455078125, ry: 6.4366455078125, x: 438.90020751953125, y: 313.778900146484375, width: 39.51239013671875, height: 34.33489990234375 };++export const PRESS_R: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M896.8428955078125,101.427536010742188c3.530029296875,2.650001525878906,6.760009765625,5.239997863769531,9.55999755859375,7.69000244140625,4.92999267578125,4.30999755859375,16.15997314453125,17.110000610351562,9.16998291015625,22.430007934570312-6.219970703125,4.740005493164062-20.41998291015625,1.600006103515625-39.55999755859375-5.260002136230469-20.65997314453125-7.409996032714844-44.03997802734375-12.610000610351562-76.469970703125-18.80999755859375-24.8499755859375-4.75-93.510009765625-6.409996032714844-108.72998046875-8.150001525878906-2.66998291015625-.30999755859375-8.719970703125-.529998779296875-16.9000244140625-.699996948242188,0,0,.1500244140625-.220001220703125.41998291015625-.620002746582031,3.3499755859375-4.919998168945312,25.86614990234375-36.718284606933594,37.13616943359375-45.438285827636719,12.20001220703125-9.439998626708984,16.62017822265625-12.822128295898438,51.4501953125-9.612125396728516,8.17999267578125.759998321533203,17.2261962890625,2.427211761474609,24.53619384765625,4.047210693359375,23.83001708984375,5.270000457763672,41.55743408203125,13.533199310302734,55.6474609375,20.883197784423828,15.1300048828125,7.889999389648438,37.52996826171875,21.360000610351562,53.739990234375,33.540000915527344" };++export const PRESS_L: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M376.672882080078125,98.947509765625c-25.760009765625.5400390625-62.47003173828125,1.4801025390625-80.34002685546875,2.7401123046875-29.17999267578125,2.0399169921875-62.44000244140625,8.35986328125-80.20001220703125,12.849853515625-17.75,4.489990234375-37.14996337890625,13.590087890625-51.5699462890625,16.72998046875-14.4200439453125,3.150146484375-21.84002685546875,4.4400634765625-29.6500244140625-2.18994140625-7.79998779296875-6.639892578125,3.219970703125-18.070068359375,7.79998779296875-21.5999755859375,17.1400146484375-13.2100830078125,59.739990234375-38.47998046875,73.3699951171875-44.5799560546875,12.3800048828125-5.530029296875,43.198699951171875-14.664127349853516,43.198699951171875-14.664127349853516,1.95001220703125-.4600830078125,12.227691650390625-2.75360107421875,14.247711181640625-3.17352294921875,19.40997314453125-4.010009765625,29.55657958984375-5.930778503417969,40.74658203125-4.170768737792969,1.52001953125.239990234375,3.1669921875.048458099365234,4.5970458984375.448360443115234,11.989990234375,3.3599853515625,28.219970703125,15,38.3399658203125,27.4000244140625,9.260009765625,11.3399658203125,18.03997802734375,27.5399169921875,19.46002197265625,30.2099609375Z" };++export const PRESS_ZL: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M209.29583740234375,14.005818367004395s-19.94464111328125,9.880915641784668-28.292816162109375,20.325362205505371c-8.348175048828125,10.444450378417969-22.02276611328125,27.561126708984375-25.520217895507812,36.325237274169922-3.497451782226562,8.764114379882812-8.727264404296875,19.50018310546875-8.727264404296875,19.50018310546875,0,0,9.797775268554688-7.654502868652344,13.864517211914062-10.49969482421875s22.870269775390625-14.08740234375,30.12060546875-16.560577392578125,20.897491455078125-7.973255157470703,31.635421752929688-10.270172119140625,31.801666259765625-5.66839599609375,31.801666259765625-5.66839599609375l26.342453002929688-4.677474975585938s16.73681640625-3.165664672851562,21.08416748046875-3.163188934326172,10.538238525390625-.325527191162109,12.385650634765625.00927734375-5.8636474609375-7.531219482421875-5.8636474609375-7.531219482421875c0,0-5.40118408203125-6.253984451293945-14.654998779296875-12.151752471923828s-22.717315673828125-13.315629959106445-27.409942626953125-14.412636756896973-14.194091796875-3.130030632019043-19.066818237304688-2.352981090545654-24.193527221679688,3.024206161499023-37.698745727539062,11.128027439117432l-.000015258789062.000001907348633-.000015258789062.000004768371582Z" };++export const PRESS_ZR: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M840.111083984375,15.090193748474121s19.94464111328125,9.880913734436035,28.29278564453125,20.325360298156738c8.34814453125,10.444450378417969,22.02276611328125,27.561126708984375,25.52020263671875,36.325244903564453,3.4974365234375,8.764114379882812,6.370361328125,15.837677001953125,6.370361328125,15.837677001953125,0,0-7.6201171875-5.916694641113281-11.6868896484375-8.761894226074219s-22.6160888671875-13.455581665039062-29.86639404296875-15.928756713867188-20.88507080078125-7.810405731201172-31.62298583984375-10.107322692871094-32.59429931640625-5.671699523925781-32.59429931640625-5.671699523925781l-22.7059326171875-4.123226165771484s-19.66796875-2.586582183837891-24.01531982421875-2.5841064453125-10.74395751953125.240146636962891-12.59136962890625.574951171875c-1.847412109375.334800720214844,6.06939697265625-8.096893310546875,6.06939697265625-8.096893310546875,0,0,5.40118408203125-6.253984451293945,14.655029296875-12.151752471923828,9.25384521484375-5.89776611328125,22.71734619140625-13.315629959106445,27.40997314453125-14.412636756896973,4.692626953125-1.097007274627686,14.194091796875-3.130030632019043,19.06683349609375-2.352981090545654s24.19354248046875,3.024206161499023,37.69873046875,11.128035068511963c0,0-.0001220703125.000001907348633-.0001220703125.000000953674316Z" };diff --git a/apps/desktop/src/renderer/components/settings/ultimateC1Silhouette.ts b/apps/desktop/src/renderer/components/settings/ultimateC1Silhouette.tsnew file mode 100644index 0000000000..1ba02628a8--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/ultimateC1Silhouette.ts@@ -0,0 +1,164 @@+/**+ * Ultimate C1 / generic pad line-art from the colleague SVG (viewBox 0 0 1050 660).+ * Stroke/fill theming happens in GenericGamepadLayout — geometry only.+ */++import type { GamepadGeom } from "./gamepadSilhouetteGeom";++export const FACE_B: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M917.50347900390625,302.59051513671875c17.016845703125-4.376007080078125,27.4608154296875-21.57000732421875,23.25311279296875-38.40081787109375-4.2398681640625-16.736282348632812-21.244384765625-26.86663818359375-37.98065185546875-22.62677001953125-.12847900390625.03253173828125-.2567138671875.065887451171875-.384765625.100067138671875-17.016845703125,4.376007080078125-27.4608154296875,21.57000732421875-23.25311279296875,38.40081787109375,4.2398681640625,16.73626708984375,21.244384765625,26.86663818359375,37.98065185546875,22.62677001953125.12847900390625-.032562255859375.2567138671875-.06591796875.384765625-.100067138671875Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M917.01629638671875,302.413330078125c15.94500732421875-4.101409912109375,25.68914794921875-20.19696044921875,21.764892578125-35.94708251953125-3.95172119140625-15.653533935546875-19.844970703125-25.139694213867188-35.49853515625-21.18792724609375-.13494873046875.034072875976562-.26971435546875.069107055664062-.4041748046875.105117797851562-15.94500732421875,4.101409912109375-25.68914794921875,20.188095092773438-21.764892578125,35.938186645507812,3.9471435546875,15.654693603515625,19.837646484375,25.1455078125,35.4923095703125,21.1983642578125.1370849609375-.034576416015625.27386474609375-.07012939453125.410400390625-.106658935546875Z" },+ { kind: "path", paint: "fill", d: "M919.469970703125,270.7625732421875s9.0355224609375-6.944915771484375,4.42913818359375-15.820953369140625c-2.719482421875-2.843521118164062-10.2579345703125-2.8258056640625-23.98834228515625-1.435043334960938l-.841552734375,38.888015747070312s10.71856689453125,1.39959716796875,18.7176513671875-2.728363037109375,14.013916015625-13.526702880859375,1.68310546875-18.9036865234375v.000030517578125ZM906.9974365234375,259.866851806640625c11.6043701171875-1.77166748046875,10.7451171875,3.463592529296875,10.7451171875,3.463592529296875,0,8.61029052734375-11.586669921875,6.3514404296875-11.586669921875,6.3514404296875l.841552734375-9.815032958984375ZM919.531982421875,280.58648681640625c-1.3907470703125,6.31597900390625-14.26190185546875,7.263824462890625-14.26190185546875,7.263824462890625l.88580322265625-11.808135986328125c13.9696044921875-2.002044677734375,13.37603759765625,4.544281005859375,13.37603759765625,4.544281005859375v.000030517578125h.00006103515625Z" },+];++export const FACE_A: GamepadGeom[] = [+ { kind: "path", paint: "fill", d: "M838.18567247635292,304.266040596588027l-16.3323974609375,39.771362304686591h5.41107177734375s1.8758544921875-4.05828857421875,4.26568603515625-9.2529296875h17.56793212890625l2.70550537109375,7.3951416015625h7.21478271484375l-13.60888671875-37.877471923827216-7.2237548828125-.03607177734375.00006103515625-.000030517578125ZM847.52881212479042,330.013721260649618h-13.72607421875v-.081176757811591l7.9993896484375-17.3154296875,5.5914306640625,17.0899658203125c.07208251953125.0811767578125.09918212890625.18035888671875.13525390625.306610107420966v.000030517578125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M847.991855337681045,354.615482583714765c17.016845703125-4.376007080078125,27.4608154296875-21.57000732421875,23.25311279296875-38.400817871094659-4.2398681640625-16.736282348632812-21.244384765625-26.86663818359375-37.98065185546875-22.62677001953125-.12847900390625.03253173828125-.2567138671875.065887451171875-.384765625.100067138671875-17.016845703125,4.376007080078125-27.4608154296875,21.57000732421875-23.25311279296875,38.400817871094659,4.2398681640625,16.73626708984375,21.244384765625,26.86663818359375,37.98065185546875,22.62677001953125.12847900390625-.032562255859375.2567138671875-.06591796875.384765625-.100067138671875Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M847.504672720493545,354.438297525121015c15.94500732421875-4.101409912109375,25.68914794921875-20.19696044921875,21.764892578125-35.947082519532159-3.95172119140625-15.653533935546875-19.844970703125-25.139694213867188-35.49853515625-21.18792724609375-.13494873046875.034072875976562-.26971435546875.069107055664062-.4041748046875.105117797851562-15.94500732421875,4.101409912109375-25.68914794921875,20.188095092773438-21.764892578125,35.938186645508722,3.9471435546875,15.654693603515625,19.837646484375,25.1455078125,35.4923095703125,21.1983642578125.1370849609375-.034576416015625.27386474609375-.07012939453125.410400390625-.106658935546875Z" },+];++export const FACE_X: GamepadGeom[] = [+ { kind: "path", paint: "fill", d: "M784.54168701171875,254.953125l-10.511474609375,15.17938232421875-8.769775390625-14.308517456054688h-5.22528076171875l9.63189697265625,18.758712768554688-.870849609375.870880126953125-11.41717529296875,15.20550537109375h6.967041015625l8.76104736328125-11.608795166015625,8.8045654296875,11.608795166015625h6.09613037109375l-10.52020263671875-16.076385498046875,13.19384765625-19.629592895507812h-6.1396484375l-.0001220703125.000015258789062Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M781.586395263671875,302.59051513671875c17.016845703125-4.376007080078125,27.4608154296875-21.57000732421875,23.25311279296875-38.40081787109375-4.2398681640625-16.736282348632812-21.244384765625-26.86663818359375-37.98065185546875-22.62677001953125-.12847900390625.03253173828125-.2567138671875.065887451171875-.384765625.100067138671875-17.016845703125,4.376007080078125-27.4608154296875,21.57000732421875-23.25311279296875,38.40081787109375,4.2398681640625,16.73626708984375,21.244384765625,26.86663818359375,37.98065185546875,22.62677001953125.12847900390625-.032562255859375.2567138671875-.06591796875.384765625-.100067138671875Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M781.099212646484375,302.413330078125c15.94500732421875-4.101409912109375,25.68914794921875-20.19696044921875,21.764892578125-35.94708251953125-3.95172119140625-15.653533935546875-19.844970703125-25.139694213867188-35.49853515625-21.18792724609375-.13494873046875.034072875976562-.26971435546875.069107055664062-.4041748046875.105117797851562-15.94500732421875,4.101409912109375-25.68914794921875,20.188095092773438-21.764892578125,35.938186645507812,3.9471435546875,15.654693603515625,19.837646484375,25.1455078125,35.4923095703125,21.1983642578125.1370849609375-.034576416015625.27386474609375-.07012939453125.410400390625-.106658935546875Z" },+];++export const FACE_Y: GamepadGeom[] = [+ { kind: "path", paint: "fill", d: "M836.0894775390625,202.5277099609375l8.93194580078125,20.010391235351562,13.3846435546875-20.915130615234375h6.20892333984375l-16.95916748046875,28.197280883789062v12.73712158203125h-6.20892333984375v-13.650711059570312l-11.6373291015625-26.37896728515625h6.27984619140625l.00006103515625.000015258789062Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M853.076800313971034,250.713122082075643c17.016845703125-4.376007080078125,27.4608154296875-21.57000732421875,23.25311279296875-38.40081787109375-4.2398681640625-16.736282348632812-21.244384765625-26.86663818359375-37.98065185546875-22.62677001953125-.12847900390625.03253173828125-.2567138671875.065887451171875-.384765625.100067138671875-17.016845703125,4.376007080078125-27.4608154296875,21.57000732421875-23.25311279296875,38.40081787109375,4.2398681640625,16.73626708984375,21.244384765625,26.86663818359375,37.98065185546875,22.62677001953125.12847900390625-.032562255859375.2567138671875-.06591796875.384765625-.100067138671875Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M852.589617696783534,250.535937023481893c15.94500732421875-4.101409912109375,25.68914794921875-20.19696044921875,21.764892578125-35.94708251953125-3.95172119140625-15.653533935546875-19.844970703125-25.139694213867188-35.49853515625-21.18792724609375-.13494873046875.034072875976562-.26971435546875.069107055664062-.4041748046875.105117797851562-15.94500732421875,4.101409912109375-25.68914794921875,20.188095092773438-21.764892578125,35.938186645507812,3.9471435546875,15.654693603515625,19.837646484375,25.1455078125,35.4923095703125,21.1983642578125.1370849609375-.034576416015625.27386474609375-.07012939453125.410400390625-.106658935546875Z" },+];++export const DPAD: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M444.43084716796875,379.22271728515625h-36.8817138671875c-4.9923095703125,0-9.039398193359375-4.23553466796875-9.039398193359375-9.460296630859375v-28.178863525390625c0-4.93109130859375-3.819580078125-8.928497314453125-8.531280517578125-8.928497314453125h-35.66998291015625c-4.711700439453125,0-8.531280517578125,3.9974365234375-8.531280517578125,8.928497314453125v28.178863525390625c0,5.22479248046875-4.047088623046875,9.460296630859375-9.039398193359375,9.460296630859375h-36.8819580078125c-4.711700439453125,0-8.531280517578125,3.9974365234375-8.531280517578125,8.928497314453125v33.3521728515625c0,4.93109130859375,3.819580078125,8.928497314453125,8.531280517578125,8.928497314453125h36.8819580078125c4.9923095703125,0,9.039398193359375,4.23553466796875,9.039398193359375,9.460296630859375v28.248138427734375c0,4.93109130859375,3.819580078125,8.928497314453125,8.531280517578125,8.928497314453125h35.66998291015625c4.711700439453125,0,8.531280517578125-3.9974365234375,8.531280517578125-8.928497314453125v-28.248138427734375c0-5.22479248046875,4.047088623046875-9.460296630859375,9.039398193359375-9.460296630859375h36.8817138671875c4.711700439453125,0,8.531280517578125-3.9974365234375,8.531280517578125-8.928497314453125v-33.3521728515625c0-4.93109130859375-3.819580078125-8.928497314453125-8.531280517578125-8.928497314453125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M452.962158203125,391.241455078125v-8.50836181640625c0-4.93109130859375-3.819580078125-8.928497314453125-8.531280517578125-8.928497314453125h-36.8817138671875c-4.992340087890625,0-9.039398193359375-4.23553466796875-9.039398193359375-9.460296630859375v-28.178863525390625c0-4.93109130859375-3.819580078125-8.928497314453125-8.531280517578125-8.928497314453125h-35.66998291015625c-4.711700439453125,0-8.531280517578125,3.9974365234375-8.531280517578125,8.928497314453125v28.178863525390625c0,5.22479248046875-4.047088623046875,9.460296630859375-9.039398193359375,9.460296630859375h-36.8819580078125c-4.711700439453125,0-8.531280517578125,3.9974365234375-8.531280517578125,8.928497314453125l-.000030517578125,9.294189453125" },+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 372.597686767578125, cy: 402.357147216796875, rx: 89.591949462890625, ry: 82.841461181640625 },+ { kind: "circle", paint: "stroke", strokeWidth: 2, cx: 372.143341064453125, cy: 404.05487060546875, r: 21.625335693359375 },+ { kind: "polygon", paint: "fill", points: "359.088653564453125 366.08233642578125 372.526153564453125 342.80596923828125 385.963653564453125 366.08233642578125 359.088653564453125 366.08233642578125" },+ { kind: "polygon", paint: "fill", points: "307.399200439453125 403.88995361328125 330.674591064453125 390.45245361328125 330.674591064453125 417.32843017578125 307.399200439453125 403.88995361328125" },+ { kind: "polygon", paint: "fill", points: "413.612091064453125 389.93878173828125 436.887481689453125 403.37628173828125 413.612091064453125 416.81378173828125 413.612091064453125 389.93878173828125" },+ { kind: "polygon", paint: "fill", points: "359.088653564453125 440.28350830078125 385.963653564453125 440.28350830078125 372.526153564453125 463.55889892578125 359.088653564453125 440.28350830078125" },+];++/** View / − */+export const MINUS: GamepadGeom[] = [+ { kind: "rect", paint: "fill", x: 438.632720947265625, y: 268.441452961297728, width: 24.706756591796875, height: 4.0347900390625 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M450.828047154705928,292.676390982797784c-13.864029951864723,0-25.14304240385809-10.660626880217023-25.14304240385809-23.764402419269572,0-13.103304434413985,11.279012451993367-23.763931314631009,25.14304240385809-23.763931314631009,13.864480068093144,0,25.143492520086511,10.660626880217023,25.143492520086511,23.763931314631009,0,13.103775539052549-11.279012451993367,23.764402419269572-25.143492520086511,23.764402419269572Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M450.923812298414305,292.676390982797784c-13.458408256688017,0-24.407429200688057-9.887676388449108-24.407429200688057-22.041360543502378,0-12.153247207933418,10.94902094400004-22.040923596382527,24.407429200688057-22.040923596382527,13.458845203809688,0,24.407866147808818,9.887676388449108,24.407866147808818,22.040923596382527,0,12.15368415505327-10.94902094399913,22.041360543502378-24.407866147808818,22.041360543502378Z" },+];++/** Menu / + */+export const PLUS: GamepadGeom[] = [+ { kind: "rect", paint: "fill", x: 587.5982666015625, y: 268.287413726146042, width: 24.5906982421875, height: 4.015838623046875 },+ { kind: "rect", paint: "fill", x: 597.885711669921875, y: 257.721556792552292, width: 4.015838623046875, height: 24.5906982421875 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M599.487305254446255,292.676390982797784c-13.864029951864723,0-25.14304240385718-10.660626880217023-25.14304240385718-23.764402419269572,0-13.103304434413985,11.279012451992457-23.763931314631009,25.14304240385718-23.763931314631009,13.864480068094053,0,25.143492520086511,10.660626880217023,25.143492520086511,23.763931314631009,0,13.103775539052549-11.279012451992457,23.764402419269572-25.143492520086511,23.764402419269572Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M599.583070398153723,292.676390982797784c-13.458408256687107,0-24.407429200688057-9.887676388449108-24.407429200688057-22.041360543502378,0-12.153247207933418,10.949020944000949-22.040923596382527,24.407429200688057-22.040923596382527,13.458845203811507,0,24.407866147808818,9.887676388449108,24.407866147808818,22.040923596382527,0,12.15368415505327-10.949020943997311,22.041360543502378-24.407866147808818,22.041360543502378Z" },+];++/** Share; decoration, no binding slot */+export const CAPTURE: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 4, cx: 525.85683288463224, cy: 270.525543212890625, rx: 12.313385009765625, ry: 11.638427734375 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M525.188626348750404,292.676390982797784c-13.864029951864723,0-25.14304240385809-10.660626880217023-25.14304240385809-23.764402419269572,0-13.103304434413985,11.279012451993367-23.763931314631009,25.14304240385809-23.763931314631009,13.864480068092234,0,25.14349252008833,10.660626880217023,25.14349252008833,23.763931314631009,0,13.103775539052549-11.279012451996095,23.764402419269572-25.14349252008833,23.764402419269572Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M525.28439149245969,292.676390982797784c-13.458408256688926,0-24.407429200688966-9.887676388449108-24.407429200688966-22.041360543502378,0-12.153247207933418,10.94902094400004-22.040923596382527,24.407429200688966-22.040923596382527,13.458845203807869,0,24.407866147808818,9.887676388449108,24.407866147808818,22.040923596382527,0,12.15368415505327-10.949020944000949,22.041360543502378-24.407866147808818,22.041360543502378Z" },+];++/** Guide */+export const HOME: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 525.191691404095764, cy: 193.33551025390625, rx: 37.2752685546875, ry: 34.630645751953125 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M524.885187425483309,221.29955753122249c-16.583715192618001,0-30.075314013975913-12.751905511608129-30.075314013975913-28.426228363054179,0-15.673759330940811,13.491598821357911-28.42566484254894,30.075314013975913-28.42566484254894,16.584253607448773,0,30.075852428806684,12.751905511608129,30.075852428806684,28.42566484254894,0,15.67432285144605-13.491598821357911,28.426228363054179-30.075852428806684,28.426228363054179Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M524.9997386688201,221.29955753122249c-16.098523318963089,0-29.195396710301793-11.827326521373834-29.195396710301793-26.365180036421407,0-14.537330852688683,13.096873391338704-26.364657374062517,29.195396710301793-26.364657374062517,16.099045981322888,0,29.195919372660683,11.827326521373834,29.195919372660683,26.364657374062517,0,14.537853515047573-13.096873391337795,26.365180036421407-29.195919372660683,26.365180036421407Z" },+ { kind: "path", paint: "fill", d: "M543.408694021005431,193.959088904256532l.009942722588676.710819754368458c-.251524261762825,1.114546668969524-1.323725351061512,1.921138222041918-2.656891000186079,1.919822337341429l-1.953496511023332-.001928174620843.002386932090303,9.723202852090253c.000408121622968,1.66248942360744-1.466175786945314,3.010933827768895-3.380699944575099,3.01138147715119l-18.856914391113605.00440907785287c-1.984318717381029.000463968574877-3.459089322654108-1.343105015122092-3.457479461785624-3.079644519806607l.008953915667917-9.658491976890218-1.95316547067705.001076864950846c-1.333531337104432.00073523374067-2.40564009487025-.805134369722509-2.657072253437946-1.91982793806892l.009785620268303-.710758921251909c.127837374228875-.543113520780025.397777168313951-.952358172799904.860738508433315-1.360556860333418l14.593755637748473-12.867493203591948c1.176127891088981-1.037006375933743,2.799580910468649-1.037163281239373,3.975833272103046-.000053061135077l14.593821484884757,12.867478022621071c.462894726666491.408137630595775.732846972661719.817807110833201.860500939013946,1.360564269322822ZM529.886667905147988,205.038381872304853l-.003129038677798-3.762266327156794c.070817959385749-1.996580814604386-1.733609315902868-3.588813596625187-3.941133003836512-3.575730313548775-2.213292161070967.013117470964062-3.911052488227142,1.595995111367301-3.904078931650474,3.5767785907301l.013260275421999,3.766476145221532,7.835080698742786-.005258095246063Z" },+];++/** [well, ring, cap, dish, highlight] */+export const STICK_RIGHT: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M762.4957275390625,411.0706787109375c1.77008056640625-40.198394775390625-30.516357421875-74.33221435546875-72.1075439453125-76.2376708984375s-76.760009765625,29.133209228515625-78.530029296875,69.29290771484375,30.516357421875,74.332183837890625,72.1075439453125,76.2376708984375,76.75994873046875-29.094512939453125,78.530029296875-69.29290771484375Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M751.01458740234375,407.89813232421875c-2.5438232421875-32.62493896484375-29.3363037109375-61.980560302734375-63.837646484375-61.990234375-34.64642333984375,0-61.27447509765625,29.587799072265625-63.837646484375,61.400238037109375-3.09515380859375,38.515411376953125,29.452392578125,75.628265380859375,68.0064697265625,73.181182861328125,35.14935302734375-2.23431396484375,62.47381591796875-36.503570556640625,59.66888427734375-72.5911865234375h-.00006103515625Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M701.35662841796875,478.60321044921875c30.58404541015625-7.873321533203125,49.3291015625-38.786224365234375,41.803955078125-69.03173828125s-38.3800048828125-48.36187744140625-68.97369384765625-40.517578125c-30.59375,7.844268798828125-49.3291015625,38.786224365234375-41.80401611328125,69.041412353515625s38.38006591796875,48.41021728515625,68.9737548828125,40.507904052734375Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M688.3182373046875,466.02911376953125c21.9755859375-.357879638671875,39.5406494140625-16.559112548828125,39.23114013671875-36.194000244140625-.30950927734375-19.634918212890625-18.37750244140625-35.275146484375-40.33380126953125-34.917266845703125s-39.531005859375,16.559112548828125-39.23114013671875,36.19403076171875c.29986572265625,19.63494873046875,18.36785888671875,35.226776123046875,40.33380126953125,34.917236328125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M664.24371337890625,373.0098876953125s5.1263427734375-14.082977294921875,24.3936767578125-12.02276611328125c5.48211669921875.334075927734375,10.4222412109375,3.42120361328125,13.12542724609375,8.202178955078125" },+];++/** [well, ring, cap, dish, highlight] */+export const STICK_LEFT: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M281.667724609375,276.102695445735662c1.7193603515625-39.047195434570312-29.642410278320312-72.203506469726562-70.042556762695312-74.054397583007812-40.400131225585938-1.85089111328125-74.561782836914062,28.298904418945312-76.281097412109375,67.308517456054688s29.642410278320312,72.2034912109375,70.042556762695312,74.05438232421875c40.400146484375,1.850921630859375,74.561737060546875-28.261322021484375,76.281097412109375-67.30853271484375v.000030517578125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M270.515411376953125,273.021030406673162c-2.470977783203125-31.690628051757812-28.496200561523438-60.205596923828125-62.009521484375-60.214996337890625-33.654266357421875,0-59.51971435546875,28.740463256835938-62.009521484375,59.641876220703125-3.00653076171875,37.41241455078125,28.60894775390625,73.46246337890625,66.058929443359375,71.08544921875,34.142776489257812-2.170318603515625,60.684722900390625-35.45819091796875,57.960113525390625-70.512359619140625v.000030517578125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M222.279510498046875,341.701267223079412c29.70819091796875-7.647857666015625,47.91644287109375-37.67547607421875,40.6068115234375-67.054840087890625-7.30963134765625-29.379348754882812-37.280868530273438-46.976898193359375-66.998458862304688-39.357269287109375-29.71759033203125,7.619644165039062-47.91644287109375,37.67547607421875-40.606857299804688,67.064239501953125,7.3095703125,29.388763427734375,37.280914306640625,47.02386474609375,66.998519897460938,39.347869873046875h-.000015258789062Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M209.61456298828125,329.487277965266912c21.346282958984375-.347625732421875,38.4083251953125-16.08489990234375,38.107666015625-35.157501220703125s-17.851226806640625-34.26495361328125-39.178741455078125-33.917327880859375c-21.327529907226562.347625732421875-38.39892578125,16.08489990234375-38.107666015625,35.15753173828125s17.841827392578125,34.21795654296875,39.178741455078125,33.91729736328125Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M186.229446411132812,239.131870250423162s4.979537963867188-13.679672241210938,23.69512939453125-11.678451538085938c5.325103759765625.324508666992188,10.123779296875,3.323226928710938,12.749542236328125,7.967300415039062" },+];++/** Socket behind the cap, sized like Xbox (~r 34.7) so the carved cap reveals the hole when it moves. */+export const STICK_LEFT_SOCKET = { cx: 209.08, cy: 261.22, r: 34.7 };+export const STICK_RIGHT_SOCKET = { cx: 687.77, cy: 394.93, r: 34.7 };++/** Decoration */+export const USB: GamepadGeom[] = [+ { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 6.497344970703125, ry: 6.497344970703125, x: 489.741668701171875, y: 87.160179138183594, width: 71.825714111328125, height: 16.353317260742188 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M553.44415283203125,102.720787048339844v-.000015258789062c0-4.515838623046875-3.66082763671875-8.176651000976562-8.1766357421875-8.176651000976562h-40.435760498046875c-4.515838623046875,0-8.176666259765625,3.660812377929688-8.176666259765625,8.176651000976562v.000015258789062" },+];++/** Decoration */+export const PAIRING: GamepadGeom[] = [+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 438.328857421875, cy: 92.533050537109375, rx: 12.394775390625, ry: 5.791648864746094 },+ { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 438.328857421875, cy: 91.248508453369141, rx: 11.883208154881686, ry: 4.507106781005859 },+];++/** Decoration */+export const CHARGE_LED: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 610.15301513671875, cy: 92.846145629882812, rx: 9.58172607421875, ry: 4.442718505859375 };++/** Includes bumper chrome */+export const BODY: GamepadGeom[] = [+ { kind: "path", paint: "stroke", strokeWidth: 3, d: "M1031.511778445646996,370.72479248046875c-11.5166015625-58.32342529296875-24.79833984375-115.53106689453125-39.522705078125-172.984130859375l-8.362548828125-28.11383056640625-5.509521484375-18.8590087890625c-6.37890625-18.72344970703125-15.224853515625-34.30645751953125-30.678955078125-47.30072021484375.353271484375-10.45556640625-4.927734375-19.36279296875-13.135009765625-25.9573974609375-6.500732421875-11.89007568359375-27.467041015625-35.371337890625-34.02490234375-40.79510498046875-15.783447265625-13.05413818359375-39.630126953125-22.12054443359375-72.706298828125-19.76141357421875-6.724609375.4796142578125-13.2978515625,1.84814453125-19.140869140625,5.12261962890625-6.62890625,3.71502685546875-24.27880859375,24.64898681640625-25.546630859375,34.96319580078125-16.283935546875-2.314453125-25.3046875,9.30731201171875-40.82421875,15.53765869140625-2.60791015625,1.0469970703125-5.709716796875,1.8668212890625-9.15087890625,2.51177978515625-.587890625.10986328125-1.17578125.2137451171875-1.762939453125.31182861328125-.43896484375.0723876953125-.882568359375.14215087890625-1.3310546875.20941162109375-.18505859375.0281982421875-.369873046875.055908203125-.5546875.0830078125-2.541748046875.3662109375-5.228515625.65240478515625-8.010986328125.8758544921875-9.323974609375.69415283203125-18.647705078125.392822265625-28.189453125.37750244140625l-19.80029296875-.03179931640625c-.34912109375-.003662109375-.70361328125-.008056640625-1.045166015625-.0108642578125l.031005859375.00921630859375-20.1826171875-.03240966796875-55.296875-.68255615234375-130.826171875-.05908203125-88.244873046875.7222900390625c-20.40380859375.1669921875-53.117431640625,1.57550048828125-68.913818359375-4.76611328125-15.519287109375-6.2303466796875-25.471923828125-17.4127197265625-41.755859375-15.0982666015625-1.267822265625-10.314208984375-18.91796875-31.2481689453125-25.546875-34.96319580078125-5.8427734375-3.2745361328125-12.416015625-4.64300537109375-19.140625-5.1226806640625-33.076171875-2.35906982421875-56.9228515625,6.70733642578125-72.706298828125,19.761474609375-6.557861328125,5.42376708984375-27.524169921875,28.905029296875-34.02490234375,40.79510498046875-8.207275390625,6.5946044921875-13.48828125,15.50177001953125-13.135009765625,25.9573974609375-15.4541015625,12.9942626953125-23.54248046875,30.04632568359375-29.92138671875,48.769775390625-6.3203125,18.5517578125-11.49609375,36.61444091796875-16.394775390625,55.7794189453125-14.119873046875,55.2392578125-26.677978515625,110.15423583984375-37.57958984375,166.20050048828125-9.22042179107666,47.40350341796875-18.317589841783047,102.583984375-13.20064640045166,149.96148681640625,2.680908203125,24.82257080078125,10.499267578125,47.91424560546875,23.505127906799316,68.93365478515625,9.35302734375,15.116455078125,21.642578125,26.540771484375,37.165771484375,35.0604248046875,25.0517578125,13.7490234375,55.7568359375,22.1419677734375,81.556388854980469,7.7843017578125,25.982421875-14.4593505859375,48.29638671875-41.032958984375,67.66357421875-64.051025390625l28.89892578125-34.3463134765625c20.961669921875-24.91290283203125,53.49462890625-31.5123291015625,85.5419921875-31.115234375l121.9833984375,1.511474609375,184.264617919921875-.30413818359375,87.2607421875-1.076904296875c13.6630859375-.16864013671875,26.767578125,1.17413330078125,39.80615234375,4.44989013671875,18.05859375,4.53692626953125,33.10693359375,14.0762939453125,44.892822265625,28.2720947265625l27.080078125,32.617919921875,38.68408203125,42.2666015625c8.375244140625,9.151123046875,18.2041015625,15.8814697265625,28.969482421875,21.8270263671875,11.083984375,6.12158203125,22.680908203125,8.3424072265625,35.4912109375,7.2161865234375,28.86669921875-2.537841796875,62.231689453125-19.576904296875,79.2099609375-43.49072265625,15.488037109375-21.815185546875,24.5703125-46.90771484375,27.52783203125-73.7786865234375,5.386474609375-48.93707275390625-3.700439453125-106.2406005859375-13.36572265625-155.1875Z" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M61.842592807219262,186.748123168945312s9.892818450927734-20.7705078125,16.283939361572266-29.355697631835938,19.776237487792969-20.021224975585938,19.776237487792969-20.021224975585938l5.100982666015625-33.41522216796875" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M264.648283572600121,61.481670379638672s.263214111328125,23.199115753173828-1.132781982421875,26.691272735595703-1.4788818359375,8.269660949707031-12.234390258789062,8.840362548828125-43.454055786132812.427215576171875-52.598068237304688,1.213127136230469-31.320999145507812,3.577484130859375-40.476333618164062,5.729537963867188-31.732887268066406,9.919319152832031-37.739410400390625,11.912391662597656c-4.68798828125,1.555564880371094-11.053993225097656,3.555061340332031-13.811882019042969-1.781700134277344" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M113.293325992033715,139.756454467773438s37.920158386230469-10.186065673828125,57.079811096191406-12.714080810546875,65.99224853515625-8.414131164550781,73.0042724609375-9.24078369140625,21.30511474609375-2.600883483886719,22.67962646484375-4.709747314453125,3.89117431640625-34.755233764648438,3.89117431640625-34.755233764648438c0,0-.70263671875-14.957687377929688-5.299957275390625-16.854949951171875s-24.289169311523438-2.439922332763672-34.268157958984375-2.035537719726562-36.294876098632812,1.688236236572266-50.959365844726562,5.593460083007812c-10.454971313476562,2.784202575683594-31.332672119140625,8.993858337402344-42.012222290039062,14.253227233886719-10.415519714355469,5.129341125488281-25.469314575195312,10.736434936523438-28.753181457519531,19.546272277832031-2.426483154296875,6.509681701660156-2.859275817871094,37.765106201171875-2.859275817871094,37.765106201171875,0,0,.485694885253906,3.841705322265625,7.497245788574219,3.152267456054688h.000030517578125Z" },+ { kind: "line", paint: "stroke", strokeWidth: 2, x1: 116.118017764494653, y1: 77.140411376953125, x2: 112.33321246664309, y2: 93.484123229980469 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M115.013678164885278,81.909225463867188s37.085197448730469-19.690032958984375,67.930259704589844-26.601108551025391c19.68841552734375-4.411342620849609,60.079193115234375-4.841243743896484,70.4136962890625-3.546947479248047,10.406890869140625,1.303359985351562,12.610687255859375,3.017436981201172,12.610687255859375,3.017436981201172l2.552642822265625,13.555126190185547" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M268.520994754240746,66.5155029296875s2.505645751953125-.070747375488281,4.710968017578125.863510131835938,3.83050537109375,2.453285217285156,3.717864990234375,12.3675537109375-.88433837890625,28.468185424804688-1.68994140625,30.418785095214844c-1.90814208984375,4.620231628417969-3.83050537109375,9.688941955566406-24.898345947265625,11.491539001464844s-41.211105346679688,4.790107727050781-54.979141235351562,6.083755493164062c-18.87396240234375,1.773406982421875-36.4814453125,5.349136352539062-47.2054443359375,7.8863525390625-10.34393310546875,2.447296142578125-30.498870849609375,8.547927856445312-33.95135498046875,9.174758911132812s-17.759384155273438,5.706924438476562-16.322853088378906-7.430572509765625" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M988.075804324553246,186.777557373046875s-9.892822265625-20.7705078125-16.283935546875-29.355697631835938-19.7762451171875-20.021224975585938-19.7762451171875-20.021224975585938l-5.10101318359375-33.41522216796875" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M936.625059695646996,139.785888671875s-37.920166015625-10.186065673828125-57.079833984375-12.714080810546875-65.99224853515625-8.414131164550781-73.0042724609375-9.24078369140625-21.30511474609375-2.600883483886719-22.67962646484375-4.709747314453125-3.89117431640625-34.755233764648438-3.89117431640625-34.755233764648438c0,0,.70263671875-14.957687377929688,5.2999267578125-16.854949951171875s24.2891845703125-2.439922332763672,34.26812744140625-2.035537719726562,36.29486083984375,1.688236236572266,50.9593505859375,5.593460083007812c10.4549560546875,2.784202575683594,31.33270263671875,8.993858337402344,42.01220703125,14.253227233886719,10.41552734375,5.129341125488281,25.46929931640625,10.736434936523438,28.753173828125,19.546272277832031,2.426513671875,6.509681701660156,2.8592529296875,37.765106201171875,2.8592529296875,37.765106201171875,0,0-.4857177734375,3.841705322265625-7.49725341796875,3.152267456054688h.0001220703125Z" },+ { kind: "line", paint: "stroke", strokeWidth: 2, x1: 933.800413699553246, y1: 77.169845581054688, x2: 937.585203738615746, y2: 93.513565063476562 },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M934.904722781584496,81.938667297363281s-37.085205078125-19.690032958984375-67.9302978515625-26.601108551025391c-19.68841552734375-4.411342620849609-60.07916259765625-4.841243743896484-70.4136962890625-3.546947479248047-10.4068603515625,1.303359985351562-12.6107177734375,3.017436981201172-12.6107177734375,3.017436981201172l-2.55267333984375,13.555126190185547" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M781.397398562834496,66.544944763183594s-2.505615234375-.070747375488281-4.71099853515625.863510131835938-3.83050537109375,2.453285217285156-3.71783447265625,12.3675537109375.88433837890625,28.468185424804688,1.68994140625,30.418785095214844c1.90814208984375,4.620231628417969,3.83050537109375,9.688949584960938,24.8983154296875,11.491539001464844s41.21112060546875,4.790107727050781,54.9791259765625,6.083755493164062c18.87396240234375,1.773399353027344,36.4814453125,5.349128723144531,47.2054443359375,7.886344909667969,10.34393310546875,2.447296142578125,30.49884033203125,8.547927856445312,33.95135498046875,9.174758911132812s17.7593994140625,5.706924438476562,16.3228759765625-7.430572509765625" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M785.270140262053246,61.5111083984375s-.26324462890625,23.199111938476562,1.1328125,26.691268920898438,1.4788818359375,8.269660949707031,12.234375,8.840362548828125,43.45404052734375.427215576171875,52.59808349609375,1.213127136230469,31.32098388671875,3.577484130859375,40.476318359375,5.729537963867188,31.73291015625,9.919319152832031,37.7393798828125,11.912391662597656c4.68798828125,1.555564880371094,11.05401611328125,3.555061340332031,13.8118896484375-1.781700134277344" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M774.221922488615746,106.940765380859375l-2.66558837890625-.273384094238281c-.98443603515625-.100967407226562-1.97381591796875-.146873474121094-2.96337890625-.137519836425781l-161.42816162109375,1.526603698730469c-5.044921875.047706604003906-10.06915283203125-.651321411132812-14.90948486328125-2.074378967285156l-30.49615478515625-8.965934753417969" },+ { kind: "path", paint: "stroke", strokeWidth: 2, d: "M489.933378787443871,95.777656555175781l-30.496185302734375,8.965934753417969c-4.840301513671875,1.423057556152344-9.864532470703125,2.122085571289062-14.909454345703125,2.074378967285156l-160.892425537109375-1.521537780761719c-1.346282958984375-.012733459472656-2.69207763671875.056198120117188-4.029998779296875.206398010253906l-3.313079833984375.3719482421875" },+];++export const PRESS_LB: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M113.101615905761719,139.756454467773438s37.920158386230469-10.186065673828125,57.079811096191406-12.714080810546875,65.99224853515625-8.414131164550781,73.0042724609375-9.24078369140625,21.30511474609375-2.600883483886719,22.67962646484375-4.709747314453125,3.89117431640625-34.755233764648438,3.89117431640625-34.755233764648438c0,0-.70263671875-14.957687377929688-5.299957275390625-16.854949951171875s-24.289169311523438-2.439922332763672-34.268157958984375-2.035537719726562-36.294876098632812,1.688236236572266-50.959365844726562,5.593460083007812c-10.454971313476562,2.784202575683594-31.332672119140625,8.993858337402344-42.012222290039062,14.253227233886719-10.415519714355469,5.129341125488281-25.469314575195312,10.736434936523438-28.753181457519531,19.546272277832031-2.426483154296875,6.509681701660156-2.859275817871094,37.765106201171875-2.859275817871094,37.765106201171875,0,0,.485694885253906,3.841705322265625,7.497245788574219,3.152267456054688h.000030517578125Z" };++export const PRESS_RB: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M936.433265686035156,139.785888671875s-37.920158386230469-10.186065673828125-57.079811096191406-12.714080810546875-65.99224853515625-8.414131164550781-73.0042724609375-9.24078369140625-21.30511474609375-2.600883483886719-22.67962646484375-4.709747314453125-3.89117431640625-34.755233764648438-3.89117431640625-34.755233764648438c0,0,.70263671875-14.957687377929688,5.299957275390625-16.854949951171875s24.289169311523438-2.439922332763672,34.268157958984375-2.035537719726562,36.294876098632812,1.688236236572266,50.959365844726562,5.593460083007812c10.454971313476562,2.784202575683594,31.332672119140625,8.993858337402344,42.012222290039062,14.253227233886719,10.415519714355469,5.129341125488281,25.469314575195312,10.736434936523438,28.753181457519531,19.546272277832031,2.426483154296875,6.509681701660156,2.859275817871094,37.765106201171875,2.859275817871094,37.765106201171875,0,0-.485694885253906,3.841705322265625-7.497245788574219,3.152267456054688h-.000030517578125Z" };++export const PRESS_LT: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M134.398222304100273,52.339018911180574l-13.821528247873175,17.177150942188746-5.034455028706361,9.282743577153269-.119421294873973,2.795269503013515s27.887347488085652-13.382893491429968,37.577905179760819-16.92693986087761,29.485968726174178-9.800692569021521,37.882219654577057-10.813111470568401,37.754068074216775-2.832063157899938,45.545218761975775-2.732138056671829,19.80376944510499.808259600958081,23.339957329949357,1.711646772178028,6.706671227606421,2.368088757762962,6.706671227606421,2.368088757762962c0,0-3.091145584284277-7.847766588340164-5.961720734508162-11.961530985568061s-12.285174923986233-15.7041167775742-15.134348508329822-18.052258366582464-12.802783803882448-7.122764665279647-18.017632106592828-7.700060446197313-19.667159990283835-1.738757944415738-24.710399331853296-.951237972460149-23.456089399917801,3.922848582173174-30.016198162942601,6.741940400399471-21.352738672083433,11.517036751874002-24.374049721188385,14.422322707786407-13.862219017000825,14.638114498443429-13.862219017000825,14.638114498443429Z" };++export const PRESS_RT: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M915.509901573841489,51.980305167246115l13.821528247872266,17.177150942188746,5.034455028706361,9.282743577153269.119421294873973,2.795269503013515s-27.887347488085652-13.382893491429968-37.57790517975991-16.92693986087761c-9.690557691676077-3.544046369447642-29.485968726174178-9.800692569021521-37.882219654577057-10.813111470568401s-37.754068074216775-2.832063157899938-45.545218761977594-2.732138056671829c-7.791150687757181.099925101228109-19.80376944510499.808259600958081-23.339957329948447,1.711646772178028s-6.706671227606421,2.368088757762962-6.706671227606421,2.368088757762962c0,0,3.091145584285186-7.847766588340164,5.961720734509072-11.961530985568061s12.285174923985323-15.7041167775742,15.134348508328912-18.052258366582464,12.802783803881539-7.122764665279647,18.017632106593737-7.700060446197313c5.21484830270856-.577295780917666,19.667159990283835-1.738757944415738,24.710399331852386-.951237972460149s23.45608939991871,3.922848582173174,30.016198162942601,6.741940400399471,21.352738672083433,11.517036751874002,24.374049721187475,14.422322707786407c3.021311049105861,2.905285955912404,13.862219017002644,14.638114498443429,13.862219017002644,14.638114498443429Z" };++export const PRESS_STICK_LEFT: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M222.29718493839755,341.772456096190581c29.747957452787887-7.658077426309319,47.980566403553894-37.725896945008571,40.661146440760604-67.144568455648368-7.3194199627942-29.418671510639797-37.330748578945531-47.03977560342355-67.088129907968323-39.409943628388646-29.757368240307187,7.629831975035813-47.980566403553894,37.725896945008571-40.661211884344993,67.153992331885092,7.3193545192089,29.428069209442583,37.330814022529921,47.086790274867781,67.088195351552713,39.400519752151922Z" };++export const PRESS_STICK_RIGHT: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M701.281653277588703,478.770977089900043c30.425281695279409-7.804097706110042,49.07300457564088-38.445196944794588,41.586947937092191-68.424782965435952-7.486056638550508-29.979586020639545-38.1807358687347-47.93667612236095-68.615613152556762-40.161365181869769-30.434877283820242,7.775310940491181-49.073004575642699,38.445196944794588-41.587003402921255,68.434406286891317,7.486001172719625,29.989153876264027,38.180791334563764,47.984570866316062,68.615724084214889,40.151769593328936l-.000055465829064-.000027732914532Z" };++export const PRESS_A: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M847.42689497549145,354.881926679454409c15.769624263408332-4.056302237038835,25.406636174897358-19.97483423302765,21.525536540370013-35.551735633672251-3.90826327769355-15.481365303831808-19.626745756631863-24.863218516023153-35.108168978682443-20.954897320115379-.133443568989605.033708401541844-.266771301545305.068343494534929-.39975152480838.103963197194389-15.769624263408332,4.056302237039745-25.406636174895539,19.966088582458724-21.525536540370013,35.542961023993485,3.903745656869432,15.482523668148133,19.619448061452204,24.868981378487661,35.101971729600336,20.965235721620047.135528624754443-.034200706377305.27082557664653-.069357063308416.405890855674443-.105498029908631l.000057918216044-.00002895911166Z" };++export const PRESS_X: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M780.691910085537529,302.882695000438616c16.280605796895543-4.097841942538253,26.229874646889584-20.179392148821535,22.223017843505659-35.915813195426381-4.034883736925622-15.639906585489371-20.262712301977444-25.11783730785919-36.245729405794918-21.16949184798159-.137794213958841.034053601921187-.275412893888642.069043385338773-.412680505756725.105027861595772-16.280605796895543,4.097841942538253-26.229874646887765,20.170556935951936-22.22301784350384,35.906948726884366,4.030261340787547,15.641076812360552,20.255164338665054,25.123659186538134,36.239351669350071,21.179936122798608.139900622327332-.034550948341348.279625710621985-.070067333849693.419058242199753-.106578412199269l.000058511344832-.000029255671507h-.000058511344832Z" };++export const PRESS_B: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M916.782196825977735,301.253501080806018c16.109927336903638-3.988989714075615,25.954849596508211-19.643371959495198,21.990011212690661-34.961795700277435-3.992619914028182-15.224488566819673-20.050284372284295-24.450656745369088-35.865775491602108-20.6071750458932-.136327508937029.03315182600636-.272535011265063.067203701587459-.408382493760655.102245631702317-16.109927336901819,3.988989714073796-25.954849596506392,19.634791486881113-21.99001121269248,34.953185226009737,3.987999659544585,15.225628629614221,20.04278395916117,24.456327057690032,35.85941514127444,20.617345606090566.138427624609903-.033631852446888.276675239307224-.068193756122128.414622837479328-.103745714327488l.000060003303588-.000030001652704.000060003307226-.000030001651794Z" };++export const PRESS_Y: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M853.704039054237001,251.131091179999203c16.642439945144361-4.097841942539162,26.812881673597076-20.179392148822444,22.716970605393726-35.915813195426381-4.124581626521831-15.639906585489371-20.713074112953109-25.11783730785919-37.051372094547332-21.169491847982499-.140836803821003.034053601921187-.281556584955979.069043385339683-.421866786686223.105027861595772-16.64243994514618,4.097841942538253-26.812881673595257,20.170556935952845-22.716970605391907,35.906948726885275,4.119783696351078,15.641076812360552,20.70535061560804,25.123659186538134,37.044818824071626,21.179936122797699.143001723532507-.034550948341348.285827913032335-.070067333849693.428361545817097-.10657841219836l.000058511343013-.000029255671507Z" };++export const PRESS_MINUS: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M456.788205182552701,292.105000888119321c12.782860418258679-3.295936383880871,20.78150751639896-15.521534385195991,17.859288714494141-27.30537514500611-2.922149761154287-11.783840759809209-15.630239046718089-18.674746277788472-28.447102034555428-15.37880989390851-12.816793947086808,3.295936383880871-20.78150751639987,15.514733871280441-17.859288714495051,27.30537514500611,2.922149761154287,11.790675794100025,15.657406582005933,18.667980284248188,28.447102034556337,15.37880989390851Z" };++/** Decoration */+export const PRESS_CAPTURE: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M530.425796756448108,291.638817583031596c13.001966854140846-3.223959640069552,21.137751105303323-15.182492405456287,18.165482581258402-26.708944719133797-2.972268524043102-11.52645231367751-15.898175181506303-18.266841661359649-28.934756256890068-15.042918520735839-13.03650516700327,3.223959640069552-21.137751105300595,15.175849506132181-18.165482581257493,26.708944719135616,2.972268524043102,11.533131712448267,15.925805831796424,18.260235261479465,28.934756256889159,15.04291852073402Z" };++export const PRESS_PLUS: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M604.899904291092753,291.629836308146878c12.879821688107768-3.25994037388773,20.939101568310434-15.352018580955701,17.994724210664572-27.007164123278926-2.94430733844456-11.655145542321407-15.748788367907764-18.470793204870461-28.662849444568565-15.21085283098364-12.913991057461317,3.25994037388682-20.939101568312253,15.345292337698993-17.994724210666391,27.007164123278926,2.944307338446379,11.661905928945089,15.776165874909566,18.464101104980728,28.662849444570384,15.21085283098364Z" };++export const PRESS_HOME: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M531.507104439302566,220.321956358850912c15.70979508282835-3.920499726667913,25.53996192278646-18.462686872982886,21.948679929248101-32.479442102666326-3.591281993536541-14.01675522968344-19.209176357249817-22.213413235816915-34.960794521828575-18.292957894341271-15.751526447293145,3.920499726669732-25.539961922783732,18.454608767830905-21.948679929246282,32.479442102669964,3.591281993539269,14.024877720030418,19.242561448825654,22.205379515853565,34.960794521826756,18.292957894337633Z" };++export const PRESS_DPAD_UP: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 7.009460449218751, ry: 7.009460449218751, x: 349.153854370116278, y: 335.743524211748081, width: 45.979003906250909, height: 40.611828885883369 };++export const PRESS_DPAD_LEFT: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 5.8997802734375, ry: 5.8997802734375, x: 294.413406372070312, y: 382.481119053849397, width: 49.246978759765625, height: 44.772391198956029 };++export const PRESS_DPAD_RIGHT: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 7.00946044921875, ry: 7.00946044921875, x: 402.232636054881368, y: 382.481119053849397, width: 47.6876220703125, height: 44.772391198956029 };++export const PRESS_DPAD_DOWN: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 5.899780273437483, ry: 5.899780273437483, x: 349.153854370116278, y: 431.964965636232591, width: 45.979003906250909, height: 41.86431884765625 };diff --git a/apps/desktop/src/shared/__tests__/xboxGamepad.family.test.ts b/apps/desktop/src/shared/__tests__/xboxGamepad.family.test.tsindex 006a2ee67c..8248b15b40 100644--- a/apps/desktop/src/shared/__tests__/xboxGamepad.family.test.ts+++ b/apps/desktop/src/shared/__tests__/xboxGamepad.family.test.ts@@ -1,10 +1,19 @@import { describe, expect, it } from 'vitest';-import { VISIBLE_GAMEPAD_FAMILIES, resolveGamepadFamily } from '../xboxGamepad';+import {+ VISIBLE_GAMEPAD_FAMILIES,+ isNintendoJoyConDevice,+ resolveGamepadFamily,+} from '../xboxGamepad';describe('visible gamepad accessories', () => {- it('publishes Xbox and PlayStation only', () => {- expect([...VISIBLE_GAMEPAD_FAMILIES]).toEqual(['xbox', 'playstation']);+ it('publishes Xbox, PlayStation, Switch, and generic pads', () => {+ expect([...VISIBLE_GAMEPAD_FAMILIES]).toEqual([+ 'xbox',+ 'playstation',+ 'nintendo',+ 'generic',+ ]);});});@@ -46,3 +55,13 @@ describe('resolveGamepadFamily', () => {expect(resolveGamepadFamily({})).toBe('generic');});});++describe('isNintendoJoyConDevice', () => {+ it('recognizes Joy-Con names without splitting the Nintendo family', () => {+ expect(isNintendoJoyConDevice({ name: 'Joy-Con (L)' })).toBe(true);+ expect(isNintendoJoyConDevice({ name: 'JoyCon (R)' })).toBe(true);+ expect(isNintendoJoyConDevice({ name: 'Pro Controller', category: 'Nintendo Switch' })).toBe(+ false,+ );+ });+});diff --git a/apps/desktop/src/shared/xboxGamepad.ts b/apps/desktop/src/shared/xboxGamepad.tsindex 1a69620e65..a010a3925d 100644--- a/apps/desktop/src/shared/xboxGamepad.ts+++ b/apps/desktop/src/shared/xboxGamepad.ts@@ -102,10 +102,12 @@ export type XboxGamepadTransport = 'usb' | 'bluetooth' | 'unknown';export type XboxGamepadBatteryState = 'unknown' | 'discharging' | 'charging' | 'full';export const GAMEPAD_FAMILIES = ['xbox', 'playstation', 'nintendo', 'generic'] as const;export type GamepadFamily = (typeof GAMEPAD_FAMILIES)[number];-/** Settings currently lists Xbox and PlayStation only. Nintendo / generic stay implemented. */+/** Settings lists every implemented family. */export const VISIBLE_GAMEPAD_FAMILIES = ['xbox','playstation',+ 'nintendo',+ 'generic',] as const satisfies readonly GamepadFamily[];export interface XboxGamepadDeviceInfo {@@ -182,6 +184,19 @@ export function resolveGamepadFamily(input: {return 'generic';}+export function isNintendoJoyConDevice(+ input:+ | {+ name?: string | null;+ category?: string | null;+ }+ | null+ | undefined,+): boolean {+ const hay = `${input?.name ?? ''} ${input?.category ?? ''}`.toLowerCase();+ return hay.includes('joy-con') || hay.includes('joycon');+}+export interface XboxGamepadState {connectionStatus: XboxGamepadConnectionStatus;devicePresent: boolean | null;diff --git a/docs/design-rules/cindy-design-system.md b/docs/design-rules/cindy-design-system.mdindex c056cfc097..45d3129bba 100644--- a/docs/design-rules/cindy-design-system.md+++ b/docs/design-rules/cindy-design-system.md@@ -17,9 +17,13 @@| [`gamepad-silhouette-authoring.md`](./gamepad-silhouette-authoring.md) | 设置页手柄线稿交稿约定:画板网格、长弧画法、外壳/按键分家、热区与按下填充;附 Xbox Series 现稿 | 作者交稿约定 || [`xbox-series-gamepad.silhouette.svg`](./xbox-series-gamepad.silhouette.svg) | 设置页 Xbox Series 线稿现稿(与 `XboxGamepadLayout.tsx` 同坐标) | 样板图 || [`playstation-dualsense-gamepad.silhouette.svg`](./playstation-dualsense-gamepad.silhouette.svg) | 设置页 DualSense 线稿现稿(与 `PlayStationGamepadLayout.tsx` 同坐标) | 样板图 |+| [`gamepads/nintendo-switch-pro/`](./gamepads/nintendo-switch-pro/) | 设置页 Switch Pro 交稿包(SVG / PNG / 热区 / 键位表) | 交稿包 |+| [`gamepads/switch-joy-con/`](./gamepads/switch-joy-con/) | 设置页 Joy-Con 交稿包(SVG / PNG / 热区 / 键位表) | 交稿包 |+| [`gamepads/ultimate-c1/`](./gamepads/ultimate-c1/) | 设置页 Ultimate C1 / 通用手柄交稿包(SVG / PNG / 热区 / 键位表) | 交稿包 |## 版本记录+- **2026-08-31(Switch / 通用手柄交稿包入仓)**:登记 `gamepads/nintendo-switch-pro/`、`gamepads/switch-joy-con/`、`gamepads/ultimate-c1/` 三组同事线稿,设置页 Nintendo 默认 Switch Pro、接上 Joy-Con 时换 Joy-Con 图,通用手柄用 Ultimate C1。零视觉规范改写。- **2026-08-30(治理合同修订:管道/记账、已知边界、路线图勘误;同日按 review 收口)**:[`design-governance.md`](./design-governance.md) 新增 §1.1「管道与记账」(守卫红灯不是禁令——管道规则不许绕、记账值走「同 PR 更新快照/台账 + 设计师批」的合法路径改,消灭的是「没人决定过的变化」;**保护值例外**:CINDY 皮肤族 / U2 二级信息色 / `annotation-accent` 不适用通用路径,须按 `DESIGN.md` 各自的用户裁决或冻结条款;正式豁免登记是合法路径,只禁未经裁决为消红灯加豁免)与 §13「已知边界」(正则扫描边界——内联样式字面量会被 `hardcoded-color-audit` 发现、真正扫不到的是动态值与 canvas/xterm 自绘;复用道路唯一靠 review 不靠机器;**新代码默认走语义层**、保留 §3.3/§3.4 既有准入、仅存量渐进),两节自mivo-canvas-plugin 仓 4/7 张 PR 实战沉淀移植。勘误三处:§2 旧编号「PR-8」→「DS-8」;§12 依赖行 DS-6 前置由已关闭的圆角裁决改为「Permission 迁移余项」并补 DS-7 受 `radius` 覆盖裁决约束;§12 路线图回填 DS-1 = #3609(合入日期修正为 2026-08-30)。零视觉,非 DS 序号。- **2026-08-30(生产 UI 台账)**:新建 [`design-inventory.md`](./design-inventory.md),登记 Desktop 生产可达 surface(生成器 `pnpm design:inventory` / 校验 `pnpm check:design-inventory`)。首轮全部 `legacy`;Mobile 待 DS-9 增量。本条目仅登记台账与生成器;产品代码零改动。diff --git a/docs/design-rules/design-inventory.md b/docs/design-rules/design-inventory.mdindex a7ad35d8b0..e3d31d1a49 100644--- a/docs/design-rules/design-inventory.md+++ b/docs/design-rules/design-inventory.md@@ -37,7 +37,7 @@| `desktop.overlay.toast` | desktop | Toast | App 常驻 ToastContainer(用户可见出口,不展开业务逻辑) | Toast, ToastContainer | apps/desktop/src/renderer/components/ui/toast/Toast.tsx, apps/desktop/src/renderer/components/ui/toast/ToastContainer.tsx, apps/desktop/src/renderer/components/ui/toast/index.ts | 4 | 4 | 2 || `desktop.plugins.app-main` | desktop | 插件主视图 | hash `/apps/:ghostId`(GhostMainViewFeatureLayout) | GhostMainViewFeatureLayout, GhostMainViewHost | apps/desktop/src/renderer/features/plugin/GhostMainViewFeatureLayout.tsx, apps/desktop/src/renderer/features/plugin/GhostMainViewHost.tsx | 0 | 0 | 0 || `desktop.plugins.installed` | desktop | 已装插件 | hash `/plugins`(GhostPluginPage) | AddMarketplaceDialog, GhostPluginDetailView, GhostPluginPage, MarketPluginDetailView, MyPublishesSection, PluginManagementLayout, PluginScopePicker, UpdateAllDialog | apps/desktop/src/renderer/features/plugin/AddMarketplaceDialog.tsx, apps/desktop/src/renderer/features/plugin/GhostPluginDetailView.tsx, apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx, apps/desktop/src/renderer/features/plugin/MarketPluginDetailView.tsx, apps/desktop/src/renderer/features/plugin/MyPublishesSection.tsx, apps/desktop/src/renderer/features/plugin/PluginManagementLayout.tsx, apps/desktop/src/renderer/features/plugin/PluginScopePicker.tsx, apps/desktop/src/renderer/features/plugin/UpdateAllDialog.tsx, apps/desktop/src/renderer/features/plugin/plugin-motion.css | 49 | 0 | 81 |-| `desktop.settings` | desktop | 设置 | hash `/settings`(SettingsView;tab 含 general / personalization / providers / billing / usage / voice-input / im-bot / shortcuts / agent-island / import / remote-control / ghosts / builtin-tools / computer-use / help / about) | SettingsView | apps/desktop/src/renderer/components/settings/AboutSection.tsx, apps/desktop/src/renderer/components/settings/AccountDeletionSection.tsx, apps/desktop/src/renderer/components/settings/AddProviderWizard.tsx, apps/desktop/src/renderer/components/settings/AgentIslandSection.tsx, apps/desktop/src/renderer/components/settings/AgentResourceSection.tsx, apps/desktop/src/renderer/components/settings/AppearanceSection.tsx, apps/desktop/src/renderer/components/settings/AuxiliaryModelSection.tsx, apps/desktop/src/renderer/components/settings/BetaChannelCell.tsx, apps/desktop/src/renderer/components/settings/BrowserBackendSubsection.tsx, apps/desktop/src/renderer/components/settings/BrowserRealProfileSubsection.tsx, apps/desktop/src/renderer/components/settings/BuiltinToolsSection.tsx, apps/desktop/src/renderer/components/settings/ChatEmbeddingCell.tsx, apps/desktop/src/renderer/components/settings/ChipMetricsSection.tsx, apps/desktop/src/renderer/components/settings/CollaborationSection.tsx, apps/desktop/src/renderer/components/settings/CompactionSection.tsx, apps/desktop/src/renderer/components/settings/ComposerSendShortcutSection.tsx, apps/desktop/src/renderer/components/settings/ComputerPermissionGuideWindow.tsx, apps/desktop/src/renderer/components/settings/ComputerUseSection.tsx, apps/desktop/src/renderer/components/settings/CustomProviderDialog.tsx, apps/desktop/src/renderer/components/settings/CustomProviderRuntimeFillOverlay.tsx, apps/desktop/src/renderer/components/settings/DefaultOverrideControls.tsx, apps/desktop/src/renderer/components/settings/DingTalkBotSection.tsx, apps/desktop/src/renderer/components/settings/DiscordBotSection.tsx, apps/desktop/src/renderer/components/settings/DownloadMeter.tsx, apps/desktop/src/renderer/components/settings/ExperimentalSection.tsx, apps/desktop/src/renderer/components/settings/FeishuBotNotificationSection.tsx, apps/desktop/src/renderer/components/settings/FeishuBotSection.tsx, apps/desktop/src/renderer/components/settings/FontFamilyPicker.tsx, apps/desktop/src/renderer/components/settings/GitSafetySection.tsx, apps/desktop/src/renderer/components/settings/HelpAssistantPanel.tsx, apps/desktop/src/renderer/components/settings/HelpSection.tsx, apps/desktop/src/renderer/components/settings/HelpThreadView.tsx, apps/desktop/src/renderer/components/settings/HookConnectionsSection.tsx, apps/desktop/src/renderer/components/settings/HookWorkspacePrefsEditor.tsx, apps/desktop/src/renderer/components/settings/ImBotSection.tsx, apps/desktop/src/renderer/components/settings/ImChannelSettingsCard.tsx, apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx, apps/desktop/src/renderer/components/settings/ImLifecycleAnnouncementSection.tsx, apps/desktop/src/renderer/components/settings/InputDeviceConnectionStatus.tsx, apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.tsx, apps/desktop/src/renderer/components/settings/LanguageSection.tsx, apps/desktop/src/renderer/components/settings/LayoutResetControl.tsx, apps/desktop/src/renderer/components/settings/LinkOpenSection.tsx, apps/desktop/src/renderer/components/settings/LocalOllamaInstall.tsx, apps/desktop/src/renderer/components/settings/LocalPackagingTag.tsx, apps/desktop/src/renderer/components/settings/LogoutSection.tsx, apps/desktop/src/renderer/components/settings/LspBetaCell.tsx, apps/desktop/src/renderer/components/settings/McpServerDialog.tsx, apps/desktop/src/renderer/components/settings/McpServersSection.tsx, apps/desktop/src/renderer/components/settings/MemorySection.tsx, apps/desktop/src/renderer/components/settings/MessageNavRailCell.tsx, apps/desktop/src/renderer/components/settings/ModelPriceOverrideDialog.tsx, apps/desktop/src/renderer/components/settings/MyDevicesPanel.tsx, apps/desktop/src/renderer/components/settings/NotificationSection.tsx, apps/desktop/src/renderer/components/settings/OAuthDeviceCodeCard.tsx, apps/desktop/src/renderer/components/settings/OllamaProviderDetail.tsx, apps/desktop/src/renderer/components/settings/PiPackagesSection.tsx, apps/desktop/src/renderer/components/settings/PlayStationGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/ProfileEditDialog.tsx, apps/desktop/src/renderer/components/settings/ProvidersSection.tsx, apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx, apps/desktop/src/renderer/components/settings/RemoteHostDetail.tsx, apps/desktop/src/renderer/components/settings/RemoteSection.tsx, apps/desktop/src/renderer/components/settings/SessionImportSection.tsx, apps/desktop/src/renderer/components/settings/SessionRuntimeFallbackCell.tsx, apps/desktop/src/renderer/components/settings/SessionShareImportWizard.tsx, apps/desktop/src/renderer/components/settings/SettingsCatalogPanel.tsx, apps/desktop/src/renderer/components/settings/SettingsSidebarNav.tsx, apps/desktop/src/renderer/components/settings/SettingsTextInput.tsx, apps/desktop/src/renderer/components/settings/SettingsView.tsx, apps/desktop/src/renderer/components/settings/SilentEncryptedRetryCell.tsx, apps/desktop/src/renderer/components/settings/SshKeySetupDialog.tsx, apps/desktop/src/renderer/components/settings/StorageManagementCard.tsx, apps/desktop/src/renderer/components/settings/StreamFadeSection.tsx, apps/desktop/src/renderer/components/settings/SubagentModelSection.tsx, apps/desktop/src/renderer/components/settings/TelegramBehaviorSettings.tsx, apps/desktop/src/renderer/components/settings/TelegramBotSection.tsx, apps/desktop/src/renderer/components/settings/TelegramRemoteDevices.tsx, apps/desktop/src/renderer/components/settings/TerminalShellSection.tsx, apps/desktop/src/renderer/components/settings/TipsSection.tsx, apps/desktop/src/renderer/components/settings/UnifiedModelList.tsx, apps/desktop/src/renderer/components/settings/UserProfileCard.tsx, apps/desktop/src/renderer/components/settings/UserPromptSection.tsx, apps/desktop/src/renderer/components/settings/VisionBridgeSection.tsx, apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx, apps/desktop/src/renderer/components/settings/WechatBotSection.tsx, apps/desktop/src/renderer/components/settings/WecomBotSection.tsx, apps/desktop/src/renderer/components/settings/WindowBehaviorSection.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexKeyboardLayout.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexKeycapGlyphs.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexSettings.tsx, apps/desktop/src/renderer/components/settings/XUsageGuide.tsx, apps/desktop/src/renderer/components/settings/XboxGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/XboxGamepadSettings.tsx, apps/desktop/src/renderer/components/settings/androidStatusPresentation.ts, apps/desktop/src/renderer/components/settings/billingVisibility.ts, apps/desktop/src/renderer/components/settings/browserOpenForLoginError.ts, apps/desktop/src/renderer/components/settings/computerPermissionFlow.ts, apps/desktop/src/renderer/components/settings/contacts/ContactDetailPane.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsImportDialog.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsListPane.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsManagerDialog.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsSection.tsx, apps/desktop/src/renderer/components/settings/contacts/startContactsAiSession.ts, apps/desktop/src/renderer/components/settings/dualSenseSilhouette.ts, apps/desktop/src/renderer/components/settings/feishuBotPresentation.ts, apps/desktop/src/renderer/components/settings/fontFamilyValue.ts, apps/desktop/src/renderer/components/settings/hookWorkspacePrefsLogic.ts, apps/desktop/src/renderer/components/settings/imBotVisibility.ts, apps/desktop/src/renderer/components/settings/imDefaultSettingsLogic.ts, apps/desktop/src/renderer/components/settings/myDevicesModel.ts, apps/desktop/src/renderer/components/settings/providerAssetModule.ts, apps/desktop/src/renderer/components/settings/realProfilePermissionGuide.ts, apps/desktop/src/renderer/components/settings/usage/UsageBreakdownTables.tsx, apps/desktop/src/renderer/components/settings/usage/UsageHistorySection.tsx, apps/desktop/src/renderer/components/settings/usage/UsageStatRow.tsx, apps/desktop/src/renderer/components/settings/usage/UsageTaskTable.tsx, apps/desktop/src/renderer/components/settings/usage/UsageTokenBars.tsx, apps/desktop/src/renderer/components/settings/usage/formatUsagePercent.ts, apps/desktop/src/renderer/components/settings/usage/usageHistoryStats.ts, apps/desktop/src/renderer/components/settings/usageVisibility.ts, apps/desktop/src/renderer/components/settings/wizardRecommend.ts, apps/desktop/src/renderer/components/settings/workLouderCodexCommandCopy.ts, apps/desktop/src/renderer/components/settings/xboxSeriesSilhouette.ts, apps/desktop/src/renderer/styles/sortable.css | 142 | 102 | 701 |+| `desktop.settings` | desktop | 设置 | hash `/settings`(SettingsView;tab 含 general / personalization / providers / billing / usage / voice-input / im-bot / shortcuts / agent-island / import / remote-control / ghosts / builtin-tools / computer-use / help / about) | SettingsView | apps/desktop/src/renderer/components/settings/AboutSection.tsx, apps/desktop/src/renderer/components/settings/AccountDeletionSection.tsx, apps/desktop/src/renderer/components/settings/AddProviderWizard.tsx, apps/desktop/src/renderer/components/settings/AgentIslandSection.tsx, apps/desktop/src/renderer/components/settings/AgentResourceSection.tsx, apps/desktop/src/renderer/components/settings/AppearanceSection.tsx, apps/desktop/src/renderer/components/settings/AuxiliaryModelSection.tsx, apps/desktop/src/renderer/components/settings/BetaChannelCell.tsx, apps/desktop/src/renderer/components/settings/BrowserBackendSubsection.tsx, apps/desktop/src/renderer/components/settings/BrowserRealProfileSubsection.tsx, apps/desktop/src/renderer/components/settings/BuiltinToolsSection.tsx, apps/desktop/src/renderer/components/settings/ChatEmbeddingCell.tsx, apps/desktop/src/renderer/components/settings/ChipMetricsSection.tsx, apps/desktop/src/renderer/components/settings/CollaborationSection.tsx, apps/desktop/src/renderer/components/settings/CompactionSection.tsx, apps/desktop/src/renderer/components/settings/ComposerSendShortcutSection.tsx, apps/desktop/src/renderer/components/settings/ComputerPermissionGuideWindow.tsx, apps/desktop/src/renderer/components/settings/ComputerUseSection.tsx, apps/desktop/src/renderer/components/settings/CustomProviderDialog.tsx, apps/desktop/src/renderer/components/settings/CustomProviderRuntimeFillOverlay.tsx, apps/desktop/src/renderer/components/settings/DefaultOverrideControls.tsx, apps/desktop/src/renderer/components/settings/DingTalkBotSection.tsx, apps/desktop/src/renderer/components/settings/DiscordBotSection.tsx, apps/desktop/src/renderer/components/settings/DownloadMeter.tsx, apps/desktop/src/renderer/components/settings/ExperimentalSection.tsx, apps/desktop/src/renderer/components/settings/FeishuBotNotificationSection.tsx, apps/desktop/src/renderer/components/settings/FeishuBotSection.tsx, apps/desktop/src/renderer/components/settings/FontFamilyPicker.tsx, apps/desktop/src/renderer/components/settings/GenericGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/GitSafetySection.tsx, apps/desktop/src/renderer/components/settings/HelpAssistantPanel.tsx, apps/desktop/src/renderer/components/settings/HelpSection.tsx, apps/desktop/src/renderer/components/settings/HelpThreadView.tsx, apps/desktop/src/renderer/components/settings/HookConnectionsSection.tsx, apps/desktop/src/renderer/components/settings/HookWorkspacePrefsEditor.tsx, apps/desktop/src/renderer/components/settings/ImBotSection.tsx, apps/desktop/src/renderer/components/settings/ImChannelSettingsCard.tsx, apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx, apps/desktop/src/renderer/components/settings/ImLifecycleAnnouncementSection.tsx, apps/desktop/src/renderer/components/settings/InputDeviceConnectionStatus.tsx, apps/desktop/src/renderer/components/settings/JoyConGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.tsx, apps/desktop/src/renderer/components/settings/LanguageSection.tsx, apps/desktop/src/renderer/components/settings/LayoutResetControl.tsx, apps/desktop/src/renderer/components/settings/LinkOpenSection.tsx, apps/desktop/src/renderer/components/settings/LocalOllamaInstall.tsx, apps/desktop/src/renderer/components/settings/LocalPackagingTag.tsx, apps/desktop/src/renderer/components/settings/LogoutSection.tsx, apps/desktop/src/renderer/components/settings/LspBetaCell.tsx, apps/desktop/src/renderer/components/settings/McpServerDialog.tsx, apps/desktop/src/renderer/components/settings/McpServersSection.tsx, apps/desktop/src/renderer/components/settings/MemorySection.tsx, apps/desktop/src/renderer/components/settings/MessageNavRailCell.tsx, apps/desktop/src/renderer/components/settings/ModelPriceOverrideDialog.tsx, apps/desktop/src/renderer/components/settings/MyDevicesPanel.tsx, apps/desktop/src/renderer/components/settings/NotificationSection.tsx, apps/desktop/src/renderer/components/settings/OAuthDeviceCodeCard.tsx, apps/desktop/src/renderer/components/settings/OllamaProviderDetail.tsx, apps/desktop/src/renderer/components/settings/PiPackagesSection.tsx, apps/desktop/src/renderer/components/settings/PlayStationGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/ProfileEditDialog.tsx, apps/desktop/src/renderer/components/settings/ProvidersSection.tsx, apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx, apps/desktop/src/renderer/components/settings/RemoteHostDetail.tsx, apps/desktop/src/renderer/components/settings/RemoteSection.tsx, apps/desktop/src/renderer/components/settings/SessionImportSection.tsx, apps/desktop/src/renderer/components/settings/SessionRuntimeFallbackCell.tsx, apps/desktop/src/renderer/components/settings/SessionShareImportWizard.tsx, apps/desktop/src/renderer/components/settings/SettingsCatalogPanel.tsx, apps/desktop/src/renderer/components/settings/SettingsSidebarNav.tsx, apps/desktop/src/renderer/components/settings/SettingsTextInput.tsx, apps/desktop/src/renderer/components/settings/SettingsView.tsx, apps/desktop/src/renderer/components/settings/SilentEncryptedRetryCell.tsx, apps/desktop/src/renderer/components/settings/SshKeySetupDialog.tsx, apps/desktop/src/renderer/components/settings/StorageManagementCard.tsx, apps/desktop/src/renderer/components/settings/StreamFadeSection.tsx, apps/desktop/src/renderer/components/settings/SubagentModelSection.tsx, apps/desktop/src/renderer/components/settings/SwitchProGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/TelegramBehaviorSettings.tsx, apps/desktop/src/renderer/components/settings/TelegramBotSection.tsx, apps/desktop/src/renderer/components/settings/TelegramRemoteDevices.tsx, apps/desktop/src/renderer/components/settings/TerminalShellSection.tsx, apps/desktop/src/renderer/components/settings/TipsSection.tsx, apps/desktop/src/renderer/components/settings/UnifiedModelList.tsx, apps/desktop/src/renderer/components/settings/UserProfileCard.tsx, apps/desktop/src/renderer/components/settings/UserPromptSection.tsx, apps/desktop/src/renderer/components/settings/VisionBridgeSection.tsx, apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx, apps/desktop/src/renderer/components/settings/WechatBotSection.tsx, apps/desktop/src/renderer/components/settings/WecomBotSection.tsx, apps/desktop/src/renderer/components/settings/WindowBehaviorSection.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexKeyboardLayout.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexKeycapGlyphs.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexSettings.tsx, apps/desktop/src/renderer/components/settings/XUsageGuide.tsx, apps/desktop/src/renderer/components/settings/XboxGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/XboxGamepadSettings.tsx, apps/desktop/src/renderer/components/settings/androidStatusPresentation.ts, apps/desktop/src/renderer/components/settings/billingVisibility.ts, apps/desktop/src/renderer/components/settings/browserOpenForLoginError.ts, apps/desktop/src/renderer/components/settings/computerPermissionFlow.ts, apps/desktop/src/renderer/components/settings/contacts/ContactDetailPane.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsImportDialog.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsListPane.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsManagerDialog.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsSection.tsx, apps/desktop/src/renderer/components/settings/contacts/startContactsAiSession.ts, apps/desktop/src/renderer/components/settings/dualSenseSilhouette.ts, apps/desktop/src/renderer/components/settings/feishuBotPresentation.ts, apps/desktop/src/renderer/components/settings/fontFamilyValue.ts, apps/desktop/src/renderer/components/settings/gamepadLayoutPrimitives.tsx, apps/desktop/src/renderer/components/settings/gamepadSilhouetteGeom.ts, apps/desktop/src/renderer/components/settings/hookWorkspacePrefsLogic.ts, apps/desktop/src/renderer/components/settings/imBotVisibility.ts, apps/desktop/src/renderer/components/settings/imDefaultSettingsLogic.ts, apps/desktop/src/renderer/components/settings/joyConSilhouette.ts, apps/desktop/src/renderer/components/settings/myDevicesModel.ts, apps/desktop/src/renderer/components/settings/providerAssetModule.ts, apps/desktop/src/renderer/components/settings/realProfilePermissionGuide.ts, apps/desktop/src/renderer/components/settings/switchProSilhouette.ts, apps/desktop/src/renderer/components/settings/ultimateC1Silhouette.ts, apps/desktop/src/renderer/components/settings/usage/UsageBreakdownTables.tsx, apps/desktop/src/renderer/components/settings/usage/UsageHistorySection.tsx, apps/desktop/src/renderer/components/settings/usage/UsageStatRow.tsx, apps/desktop/src/renderer/components/settings/usage/UsageTaskTable.tsx, apps/desktop/src/renderer/components/settings/usage/UsageTokenBars.tsx, apps/desktop/src/renderer/components/settings/usage/formatUsagePercent.ts, apps/desktop/src/renderer/components/settings/usage/usageHistoryStats.ts, apps/desktop/src/renderer/components/settings/usageVisibility.ts, apps/desktop/src/renderer/components/settings/wizardRecommend.ts, apps/desktop/src/renderer/components/settings/workLouderCodexCommandCopy.ts, apps/desktop/src/renderer/components/settings/xboxSeriesSilhouette.ts, apps/desktop/src/renderer/styles/sortable.css | 142 | 102 | 703 || `desktop.shell.main-layout` | desktop | 主窗口壳(标题栏 / 左右栏 / 内容区) | main BrowserWindow → renderer/index.tsx → main-entry.tsx → App → MainLayout (`#/` 受保护壳) | ChromeActions, FeishuConflictDialogHost, GhostMediaLightboxHost, MainLayout, RightSidebar, RightSidebarShell, SessionShareImportWizard, Sidebar, UpdateNoticeDialog, WindowControls | apps/desktop/src/renderer/cindy-brain/GhostMediaLightboxHost.tsx, apps/desktop/src/renderer/components/UpdateNoticeDialog.tsx, apps/desktop/src/renderer/components/feishuBot/FeishuConflictDialog.tsx, apps/desktop/src/renderer/components/feishuBot/FeishuConflictDialogHost.tsx, apps/desktop/src/renderer/components/layout/BrowserWebviewPool.tsx, apps/desktop/src/renderer/components/layout/ChromeActions.tsx, apps/desktop/src/renderer/components/layout/ContentHeader.tsx, apps/desktop/src/renderer/components/layout/CredentialStoreBanner.tsx, apps/desktop/src/renderer/components/layout/FadeSwitcher.tsx, apps/desktop/src/renderer/components/layout/GhostPanelWindowLayout.tsx, apps/desktop/src/renderer/components/layout/GlobalDropImportListener.tsx, apps/desktop/src/renderer/components/layout/MainLayout.tsx, apps/desktop/src/renderer/components/layout/RightSidebar.tsx, apps/desktop/src/renderer/components/layout/RightSidebarDetach.tsx, apps/desktop/src/renderer/components/layout/RightSidebarMaximize.tsx, apps/desktop/src/renderer/components/layout/RightSidebarToggle.tsx, apps/desktop/src/renderer/components/layout/SidebarWindowLayout.tsx, apps/desktop/src/renderer/components/layout/chromeActionsGeometry.ts, apps/desktop/src/renderer/components/layout/chromeActionsLayout.ts, apps/desktop/src/renderer/components/layout/railChromeActions.ts, apps/desktop/src/renderer/components/layout/windowDrag.tsx, apps/desktop/src/renderer/components/settings/SessionShareImportWizard.tsx, apps/desktop/src/renderer/components/sidebar/AccountSwitcherDialog.tsx, apps/desktop/src/renderer/components/sidebar/AttentionDot.tsx, apps/desktop/src/renderer/components/sidebar/GhostMainViewNavEntries.tsx, apps/desktop/src/renderer/components/sidebar/MobileDownloadDialog.tsx, apps/desktop/src/renderer/components/sidebar/Sidebar.tsx, apps/desktop/src/renderer/components/sidebar/SidebarIconButton.tsx, apps/desktop/src/renderer/components/sidebar/SidebarTopNav.tsx, apps/desktop/src/renderer/components/sidebar/SortableList.tsx, apps/desktop/src/renderer/components/sidebar/UpdateBanner.tsx, apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx, apps/desktop/src/renderer/components/sidebar/VendorIcon.tsx, apps/desktop/src/renderer/components/sidebar/VendorReadinessBadge.tsx, apps/desktop/src/renderer/components/sidebar/WorktreeBadge.tsx, apps/desktop/src/renderer/components/title-bar/ChromeIconButton.tsx, apps/desktop/src/renderer/components/title-bar/MenuButton.tsx, apps/desktop/src/renderer/components/title-bar/WindowControls.tsx, apps/desktop/src/renderer/features/right-sidebar/AddTabDropdown.tsx, apps/desktop/src/renderer/features/right-sidebar/EmptyState.tsx, apps/desktop/src/renderer/features/right-sidebar/RightSidebarShell.tsx, apps/desktop/src/renderer/features/right-sidebar/TabBar.tsx, apps/desktop/src/renderer/features/right-sidebar/TabBodyErrorBoundary.tsx, apps/desktop/src/renderer/features/right-sidebar/hooks/useBrowserWebview.ts, apps/desktop/src/renderer/features/right-sidebar/hooks/useNativePopupSurface.ts, apps/desktop/src/renderer/features/right-sidebar/iosSimulatorPluginAvailability.ts, apps/desktop/src/renderer/features/right-sidebar/lib/browserPartition.ts, apps/desktop/src/renderer/features/right-sidebar/lib/browserWebviewPool.ts, apps/desktop/src/renderer/features/right-sidebar/lib/detachedSidebarRouting.ts, apps/desktop/src/renderer/features/right-sidebar/lib/executeSidebarCommand.ts, apps/desktop/src/renderer/features/right-sidebar/lib/iosSimulatorFocusBridge.ts, apps/desktop/src/renderer/features/right-sidebar/lib/lastTurnChangedFiles.ts, apps/desktop/src/renderer/features/right-sidebar/lib/nativePopupTabs.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openBackgroundTasksTab.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openInSidebarBrowser.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openInSidebarFileBrowser.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openSubagentsTab.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openTerminalShortcut.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openTurnReview.ts, apps/desktop/src/renderer/features/right-sidebar/lib/popupRouter.ts, apps/desktop/src/renderer/features/right-sidebar/lib/popupTabs.ts, apps/desktop/src/renderer/features/right-sidebar/lib/rsbBrowserBridge.ts, apps/desktop/src/renderer/features/right-sidebar/lib/sidebarCommands.ts, apps/desktop/src/renderer/features/right-sidebar/lib/sidebarHostSession.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/BackgroundTasksBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/WorkflowAgentStrip.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/WorkflowProgressTree.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/chatTaskFocusIntent.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/listSessionTasks.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/workflowProgressModel.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/FileBrowserBody.css, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/FileBrowserBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/dropExternalFile.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/fileTreeImagePreview.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/useSessionScopedTreeWidth.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/index.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/IOSSimulatorInstanceGrid.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/IOSSimulatorTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/iosSimulatorH264Decoder.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/OrcaWorkersAttentionIcon.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/OrcaWorkersTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/actions.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/closeDecision.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/resource-usage/ResourceUsageBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/resource-usage/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/resource-usage/resource-usage.css, apps/desktop/src/renderer/features/right-sidebar/plugins/resource-usage/subscription.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/ImageDiffPreview.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/MarkdownDiffPreview.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/PlainUnifiedDiff.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/diffRows.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/highlight.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/inlineDiff.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/useDiffHighlights.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/ReviewTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/review/diffExpansionPreference.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/fileTree.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/gitApplyCommand.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/review/markdownPreview.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/useLastTurnFilter.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/useReviewGitState.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/useReviewSource.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/ConversationStream.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/DetailView.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/RunList.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/SubagentChrome.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/SubagentToolCard.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/SubagentsBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/subagentChangeFence.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/subagentConversation.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/subagentFormat.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/terminal/TerminalTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/terminal/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/terminal/lib/xtermPool.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/BrowserChrome.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/BrowserCommentPopover.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/BrowserTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/browserCommentEditorDraft.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/lib/parseOmnibox.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/useBrowserComment.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/useLocalHtmlAutoReload.ts, apps/desktop/src/renderer/features/right-sidebar/registry.ts, apps/desktop/src/renderer/features/right-sidebar/store.ts, apps/desktop/src/renderer/features/right-sidebar/types.ts, apps/desktop/src/renderer/layout/LayoutRoot.tsx, apps/desktop/src/renderer/layout/PanelDragController.tsx, apps/desktop/src/renderer/layout/PanelDragPrototype.tsx, apps/desktop/src/renderer/layout/collapsePrefs.ts, apps/desktop/src/renderer/layout/layoutDevTools.ts, apps/desktop/src/renderer/layout/panePlacement.tsx, apps/desktop/src/renderer/layout/paneWidths.tsx, apps/desktop/src/renderer/layout/panelMaximize.tsx, apps/desktop/src/renderer/styles/globals.css | 144 | 72 | 282 || `desktop.skillhub.local` | desktop | SkillHub 本地技能 | hash `/skillhub/local` 及详情 `/skillhub/local/:kind/global/:name`、`/skillhub/local/:kind/project/:projectHash/:name` | InstallTargetPicker, PluginManagementLayout, SkillhubDetailView, SkillhubFeatureLayout, SkillhubHomeView, SkillhubMarketPreviewPanel | apps/desktop/src/renderer/features/plugin/PluginManagementLayout.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubDetailView.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubFeatureLayout.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubHomeView.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubMarketPreviewPanel.tsx, apps/desktop/src/renderer/features/skillhub/components/InstallTargetPicker.tsx | 41 | 0 | 70 || `desktop.skillhub.market` | desktop | SkillHub 市场 | hash `/skillhub/market`(SkillhubMarketListView) | InstallTargetPicker, MarketCard, MarketInfoEditDialog, SkillhubMarketListView, SkillhubMarketPreviewPanel, VisibilityEditorDialog | apps/desktop/src/renderer/features/skillhub/SkillhubMarketListView.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubMarketPreviewPanel.tsx, apps/desktop/src/renderer/features/skillhub/components/InstallTargetPicker.tsx, apps/desktop/src/renderer/features/skillhub/components/MarketCard.tsx, apps/desktop/src/renderer/features/skillhub/components/MarketInfoEditDialog.tsx, apps/desktop/src/renderer/features/skillhub/components/MarketPreviewTree.tsx, apps/desktop/src/renderer/features/skillhub/components/TeamScopePicker.tsx, apps/desktop/src/renderer/features/skillhub/components/VisibilityEditorDialog.tsx | 41 | 0 | 50 |diff --git a/docs/design-rules/gamepads/nintendo-switch-pro/controller-hit.png b/docs/design-rules/gamepads/nintendo-switch-pro/controller-hit.pngnew file mode 100644index 0000000000..87f0242964Binary files /dev/null and b/docs/design-rules/gamepads/nintendo-switch-pro/controller-hit.png differdiff --git a/docs/design-rules/gamepads/nintendo-switch-pro/controller.md b/docs/design-rules/gamepads/nintendo-switch-pro/controller.mdnew file mode 100644index 0000000000..c2e0650df3--- /dev/null+++ b/docs/design-rules/gamepads/nintendo-switch-pro/controller.md@@ -0,0 +1,21 @@+# Nintendo Switch Pro Controller 键位表++文件结构与 XBOX 参考一致:`controller.svg`、`controller.png`、`controller-hit.png`、`controller.md`。++- 画板:`viewBox="0 0 1050 660"`+- `controller.png` 为普通图,不包含 `press` 图层。+- `controller-hit.png` 为带热区的调试图,包含蓝色半透明热区和深蓝功能标注,尺寸为 2100×2100。+- `controller.svg` 中的 `press-*` 图层与热图按键一一对应。++| 官方名称 | 内部 ID | SVG 热区 |+|---|---|---|+| ZL / ZR Buttons | `ZL` / `ZR` | `#press-ZL` / `#press-ZR` |+| L / R Buttons | `L` / `R` | `#press-L` / `#press-R` |+| SYNC Button | `sync` | `#press-sync` |+| − Button / + Button | `minus` / `plus` | `#press-minus` / `#press-plus` |+| Capture Button / HOME Button | `capture` / `home` | `#press-capture` / `#press-home` |+| X / Y / A / B Buttons | `X` / `Y` / `A` / `B` | `#press-face` 下对应热区 |+| Left Stick Button / Right Stick Button | `left` / `right` | `#press-stick-left` / `#press-stick-right` |+| + Control Pad(Up/Down/Left/Right) | `dpadUp/Down/Left/Right` | `#press-dpad` 下对应热区 |++NFC 触碰点、USB Type-C 接口和 Recharge LED 是功能组件,不是游戏输入按键,因此没有独立 press 热区。diff --git a/docs/design-rules/gamepads/nintendo-switch-pro/controller.png b/docs/design-rules/gamepads/nintendo-switch-pro/controller.pngnew file mode 100644index 0000000000..5177006b6dBinary files /dev/null and b/docs/design-rules/gamepads/nintendo-switch-pro/controller.png differdiff --git a/docs/design-rules/gamepads/nintendo-switch-pro/controller.svg b/docs/design-rules/gamepads/nintendo-switch-pro/controller.svgnew file mode 100644index 0000000000..c8ff942125--- /dev/null+++ b/docs/design-rules/gamepads/nintendo-switch-pro/controller.svg@@ -0,0 +1,203 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg id="nintendo-switch-pro-controller" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1050 660">+ <defs>+ <style>+ .cls-1 {+ fill: #231815;+ }++ .cls-2 {+ stroke-width: 4px;+ }++ .cls-2, .cls-3, .cls-4 {+ stroke-miterlimit: 10;+ }++ .cls-2, .cls-3, .cls-4, .cls-5 {+ fill: none;+ stroke: #231815;+ }++ .cls-6 {+ isolation: isolate;+ opacity: .079999998211861;+ }++ .cls-3 {+ stroke-width: 3px;+ }++ .cls-4, .cls-5 {+ stroke-width: 2px;+ }+ </style>+ </defs>+ <g id="stick-right">+ <path id="Vector-18" class="cls-5" d="M760.05609130859375,426.218475341796875c1.9466552734375-44.209228515625-33.5611572265625-81.748809814453125-79.30218505859375-83.844390869140625s-84.4188232421875,32.040008544921875-86.365478515625,76.206695556640625,33.5611572265625,81.748748779296875,79.30218505859375,83.844390869140625c45.74102783203125,2.095611572265625,84.41876220703125-31.997467041015625,86.36541748046875-76.206695556640625h.00006103515625Z"/>+ <path id="Vector-19" class="cls-5" d="M747.429443359375,422.729400634765625c-2.79766845703125-35.880126953125-32.263427734375-68.164764404296875-70.2071533203125-68.175384521484375-38.10333251953125,0-67.38818359375,32.539947509765625-70.2071533203125,67.52655029296875-3.40399169921875,42.35833740234375,32.39105224609375,83.1741943359375,74.7918701171875,80.482940673828125,38.65643310546875-2.457244873046875,68.707275390625-40.145751953125,65.6224365234375-79.834075927734375v-.000030517578125Z"/>+ <path id="Vector-20" class="cls-5" d="M692.8167724609375,500.4891357421875c33.6356201171875-8.658905029296875,54.2509765625-42.65618896484375,45.97503662109375-75.919464111328125s-42.20941162109375-53.187225341796875-75.85565185546875-44.560272216796875-54.2509765625,42.65618896484375-45.97509765625,75.93011474609375,42.20947265625,53.24041748046875,75.855712890625,44.54962158203125Z"/>+ <path id="Vector-21" class="cls-5" d="M678.47747802734375,486.66046142578125c24.16827392578125-.393585205078125,43.48590087890625-18.2113037109375,43.1455078125-39.8052978515625s-20.21112060546875-38.794769287109375-44.358154296875-38.40118408203125-43.4752197265625,18.2113037109375-43.1455078125,39.80535888671875c.32977294921875,21.59405517578125,20.20050048828125,38.7415771484375,44.358154296875,38.401153564453125v-.000030517578125Z"/>+ <path id="vector-22" class="cls-5" d="M652.0008544921875,384.360107421875s5.6378173828125-15.488128662109375,26.82763671875-13.22235107421875c6.029052734375.367401123046875,11.462158203125,3.762542724609375,14.43499755859375,9.02056884765625"/>+ </g>+ <g id="dpad">+ <path id="vector" class="cls-5" d="M444.445953369140625,396.019439697265625h-35.760528564453125c-4.840576171875,0-8.764617919921875-3.924041748046875-8.764617919921875-8.764617919921875v-26.106658935546875c0-4.568450927734375-3.703460693359375-8.271942138671875-8.271942138671875-8.271942138671875h-34.58563232421875c-4.568450927734375,0-8.271942138671875,3.703460693359375-8.271942138671875,8.271942138671875v26.106658935546875c0,4.840576171875-3.924041748046875,8.764617919921875-8.764617919921875,8.764617919921875h-35.760772705078125c-4.568450927734375,0-8.271942138671875,3.703460693359375-8.271942138671875,8.271942138671875v30.8995361328125c0,4.568450927734375,3.703460693359375,8.271942138671875,8.271942138671875,8.271942138671875h35.760772705078125c4.840576171875,0,8.764617919921875,3.924041748046875,8.764617919921875,8.764617919921875v26.17083740234375c0,4.568450927734375,3.703460693359375,8.271942138671875,8.271942138671875,8.271942138671875h34.58563232421875c4.568450927734375,0,8.271942138671875-3.703460693359375,8.271942138671875-8.271942138671875v-26.17083740234375c0-4.840576171875,3.924041748046875-8.764617919921875,8.764617919921875-8.764617919921875h35.760528564453125c4.568450927734375,0,8.271942138671875-3.703460693359375,8.271942138671875-8.271942138671875v-30.8995361328125c0-4.568450927734375-3.703460693359375-8.271942138671875-8.271942138671875-8.271942138671875Z"/>+ <path id="vector-2" data-name="vector" class="cls-5" d="M452.717926025390625,407.15435791015625v-7.8826904296875c0-4.568450927734375-3.703460693359375-8.271942138671875-8.271942138671875-8.271942138671875h-35.760528564453125c-4.840576171875,0-8.764617919921875-3.924041748046875-8.764617919921875-8.764617919921875v-26.106658935546875c0-4.568450927734375-3.703460693359375-8.271942138671875-8.271942138671875-8.271942138671875h-34.58563232421875c-4.568450927734375,0-8.271942138671875,3.703460693359375-8.271942138671875,8.271942138671875v26.106658935546875c0,4.840576171875-3.924041748046875,8.764617919921875-8.764617919921875,8.764617919921875h-35.760772705078125c-4.568450927734375,0-8.271942138671875,3.703460693359375-8.271942138671875,8.271942138671875l-.000030517578125,8.6107177734375"/>+ <polygon id="vector-3" data-name="vector" class="cls-1" points="364.38232421875 379.1337890625 374.35595703125 361.857421875 384.32958984375 379.1337890625 364.38232421875 379.1337890625"/>+ <polygon id="vector-4" data-name="vector" class="cls-1" points="313.228515625 418.94140625 330.50439453125 408.9677734375 330.50439453125 428.916015625 313.228515625 418.94140625"/>+ <polygon id="vector-5" data-name="vector" class="cls-1" points="417.44189453125 408.4541015625 434.71728515625 418.427734375 417.44189453125 428.4013671875 417.44189453125 408.4541015625"/>+ <polygon id="vector-6" data-name="vector" class="cls-1" points="364.38232421875 457.3349609375 384.32958984375 457.3349609375 374.35595703125 474.6103515625 364.38232421875 457.3349609375"/>+ </g>+ <g id="stick-left">+ <path id="vector-7" data-name="vector" class="cls-5" d="M334.3731689453125,297.5234375c2.007110595703125-45.58203125-34.603302001953125-84.28729248046875-81.764694213867188-86.447952270507812-47.161392211914062-2.16064453125-87.040252685546875,33.034942626953125-89.047317504882812,78.573104858398438-2.007049560546875,45.53814697265625,34.603302001953125,84.287261962890625,81.764694213867188,86.447967529296875,47.161392211914062,2.160675048828125,87.040176391601562-32.991058349609375,89.047317504882812-78.5731201171875Z"/>+ <path id="vector-8" data-name="vector" class="cls-5" d="M321.354461669921875,293.925994873046875c-2.884521484375-36.994293212890625-33.2652587890625-70.28143310546875-72.38726806640625-70.29241943359375-39.28656005859375,0-69.48077392578125,33.550384521484375-72.38726806640625,69.623382568359375-3.50970458984375,43.67364501953125,33.396865844726562,85.7569580078125,77.1143798828125,82.98211669921875,39.856842041015625-2.533538818359375,70.840789794921875-41.392364501953125,67.66015625-82.3131103515625v.000030517578125Z"/>+ <path id="vector-9" data-name="vector" class="cls-5" d="M265.0458984375,374.10040283203125c34.680084228515625-8.927764892578125,55.93560791015625-43.980743408203125,47.40264892578125-78.276947021484375s-43.52008056640625-54.838836669921875-78.211151123046875-45.944000244140625c-34.691055297851562,8.89483642578125-55.93560791015625,43.980743408203125-47.402725219726562,78.287933349609375,8.532882690429688,34.307159423828125,43.520156860351562,54.893646240234375,78.211227416992188,45.933013916015625Z"/>+ <path id="vector-10" data-name="vector" class="cls-5" d="M250.261367797851562,359.84228515625c24.918746948242188-.405792236328125,44.836227416992188-18.776824951171875,44.485275268554688-41.0413818359375-.350982666015625-22.264556884765625-20.8387451171875-39.99945068359375-45.735595703125-39.593658447265625s-44.82525634765625,18.776824951171875-44.485260009765625,41.041412353515625,20.827774047851562,39.944580078125,45.735595703125,39.5936279296875h-.000015258789062Z"/>+ <path id="vector-11" data-name="vector" class="cls-5" d="M222.96258544921875,254.365264892578125s5.812896728515625-15.969070434570312,27.660675048828125-13.6329345703125c6.21630859375.378829956054688,11.81805419921875,3.879379272460938,14.883270263671875,9.300674438476562"/>+ </g>+ <g id="face">+ <g id="B">+ <path id="Vector-28" class="cls-5" d="M802.26458740234375,384.556976318359375c17.73541259765625-4.560791015625,28.620361328125-22.4808349609375,24.2349853515625-40.022369384765625-4.41888427734375-17.4429931640625-22.1414794921875-28.001129150390625-39.58441162109375-23.58221435546875-.1339111328125.033905029296875-.267578125.06866455078125-.4010009765625.104278564453125-17.73541259765625,4.560791015625-28.620361328125,22.4808349609375-24.2349853515625,40.022369384765625,4.41888427734375,17.4429931640625,22.1414794921875,28.001129150390625,39.58447265625,23.582244873046875.1339111328125-.033935546875.267578125-.068695068359375.4010009765625-.10430908203125h-.00006103515625Z"/>+ <path id="Vector-29" class="cls-5" d="M801.7568359375,384.372344970703125c16.6182861328125-4.27459716796875,26.77392578125-21.0498046875,22.6839599609375-37.464996337890625-4.11859130859375-16.31451416015625-20.6829833984375-26.201263427734375-36.99755859375-22.082611083984375-.140625.0355224609375-.2811279296875.072021484375-.4212646484375.10955810546875-16.6182861328125,4.27459716796875-26.77392578125,21.04058837890625-22.6839599609375,37.45574951171875,4.11383056640625,16.31573486328125,20.67529296875,26.20733642578125,36.99102783203125,22.093505859375.142822265625-.036041259765625.285400390625-.073089599609375.427734375-.111175537109375l.00006103515625-.000030517578125Z"/>+ <path id="B-2" class="cls-1" d="M804.31414794921875,351.38507080078125s9.41705322265625-7.238189697265625,4.6162109375-16.489013671875c-2.8343505859375-2.963592529296875-10.69110107421875-2.94512939453125-25.00128173828125-1.495635986328125l-.8770751953125,40.530120849609375s11.171142578125,1.458709716796875,19.50799560546875-2.84356689453125,14.605712890625-14.097900390625,1.754150390625-19.701934814453125v.000030517578125ZM791.31494140625,340.02923583984375c12.09442138671875-1.846466064453125,11.1988525390625,3.60986328125,11.1988525390625,3.60986328125,0,8.973876953125-12.07598876953125,6.61962890625-12.07598876953125,6.61962890625l.8770751953125-10.2294921875h.00006103515625ZM804.3787841796875,361.623779296875c-1.449462890625,6.58270263671875-14.8641357421875,7.570556640625-14.8641357421875,7.570556640625l.9232177734375-12.3067626953125c14.5594482421875-2.086578369140625,13.94085693359375,4.73614501953125,13.94085693359375,4.73614501953125v.000030517578125l.00006103515625.000030517578125Z"/>+ </g>+ <g id="A">+ <path id="Vector-30" class="cls-5" d="M878.22857666015625,319.84259033203125c17.40301513671875-4.47772216796875,28.121826171875-21.769927978515625,23.9395751953125-38.6190185546875-4.18231201171875-16.849090576171875-21.66839599609375-26.866226196289062-39.0714111328125-22.388519287109375-17.403076171875,4.47772216796875-28.11260986328125,21.769927978515625-23.9302978515625,38.619049072265625s21.66839599609375,26.8662109375,39.06219482421875,22.38848876953125h-.00006103515625Z"/>+ <path id="Vector-31" class="cls-5" d="M878.191650390625,319.62103271484375c16.13818359375-4.117645263671875,26.016845703125-20.31121826171875,22.05615234375-36.0709228515625-3.960693359375-15.759674072265625-20.255859375-25.27825927734375-36.39404296875-21.160614013671875s-26.026123046875,20.255828857421875-22.0377197265625,36.08013916015625,20.22808837890625,25.269012451171875,36.3756103515625,21.151397705078125Z"/>+ <path id="A-2" class="cls-1" d="M869.51318359375,266.57177734375l-16.7198486328125,40.71478271484375h5.5394287109375s1.92034912109375-4.154571533203125,4.36688232421875-9.472442626953125h17.98468017578125l2.76971435546875,7.570556640625h7.38592529296875l-13.93170166015625-38.7760009765625-7.39508056640625-.03692626953125v.000030517578125ZM879.077880859375,292.930206298828125h-14.0516357421875v-.083099365234375l8.1890869140625-17.726165771484375,5.72406005859375,17.495361328125c.07379150390625.083099365234375.1015625.18463134765625.138427734375.31390380859375h.00006103515625Z"/>+ </g>+ <g id="X">+ <path id="Vector-32" class="cls-5" d="M802.91461181640625,258.69598388671875c18.787841796875-4.837753295898438,30.46685791015625-23.15478515625,26.05377197265625-40.899429321289062-4.4130859375-17.74462890625-23.20098876953125-28.214141845703125-41.99810791015625-23.367141723632812s-30.46685791015625,23.145584106445312-26.06298828125,40.890213012695312,23.210205078125,28.214126586914062,42.00732421875,23.376358032226562Z"/>+ <path id="Vector-33" class="cls-5" d="M802.52685546875,258.31744384765625c17.3660888671875-4.477706909179688,28.1402587890625-21.474517822265625,24.05035400390625-37.9727783203125-4.0899658203125-16.498260498046875-21.5299072265625-26.238418579101562-38.86834716796875-21.723785400390625-17.33843994140625,4.5146484375-28.1402587890625,21.474517822265625-24.05035400390625,37.9727783203125,4.0899658203125,16.498260498046875,21.49298095703125,26.1922607421875,38.86834716796875,21.723785400390625Z"/>+ <path id="X-2" class="cls-1" d="M806.67218017578125,207.853256225585938l-11.14349365234375,16.092025756835938-9.2969970703125-15.168792724609375h-5.5394287109375l10.21099853515625,19.886550903320312-.9232177734375.923233032226562-12.1036376953125,16.119720458984375h7.38592529296875l9.28778076171875-12.306747436523438,9.33392333984375,12.306747436523438h6.462646484375l-11.1527099609375-17.04296875,13.987060546875-20.809783935546875h-6.5087890625l-.00006103515625.000015258789062Z"/>+ </g>+ <g id="Y">+ <path id="Vector-28-2" class="cls-5" d="M726.29400634765625,321.088958740234375c17.73541259765625-4.560791015625,28.620361328125-22.4808349609375,24.2349853515625-40.022369384765625-4.41888427734375-17.4429931640625-22.1414794921875-28.001129150390625-39.58441162109375-23.58221435546875-.1339111328125.033905029296875-.267578125.06866455078125-.4010009765625.104278564453125-17.73541259765625,4.560791015625-28.620361328125,22.4808349609375-24.2349853515625,40.022369384765625,4.41888427734375,17.4429931640625,22.1414794921875,28.001129150390625,39.58447265625,23.582244873046875.1339111328125-.033935546875.267578125-.068695068359375.4010009765625-.10430908203125h-.00006103515625Z"/>+ <path id="Vector-29-2" class="cls-5" d="M725.7862548828125,320.904327392578125c16.6182861328125-4.27459716796875,26.77392578125-21.0498046875,22.6839599609375-37.464996337890625-4.11859130859375-16.31451416015625-20.6829833984375-26.201263427734375-36.99755859375-22.082611083984375-.140625.0355224609375-.2811279296875.072021484375-.4212646484375.10955810546875-16.6182861328125,4.27459716796875-26.77392578125,21.04058837890625-22.6839599609375,37.45574951171875,4.11383056640625,16.31573486328125,20.67529296875,26.20733642578125,36.99102783203125,22.093505859375.142822265625-.036041259765625.285400390625-.073089599609375.427734375-.111175537109375l.00006103515625-.000030517578125Z"/>+ <path id="Y-2" class="cls-1" d="M708.60223388671875,270.892852783203125l9.2969970703125,20.8282470703125,13.93170166015625-21.76995849609375h6.462646484375l-17.65228271484375,29.3497314453125v13.2576904296875h-6.462646484375v-14.2086181640625l-12.1129150390625-27.45709228515625h6.53656005859375-.00006103515625Z"/>+ </g>+ </g>+ <g id="home">+ <ellipse id="uuid-62b3ec62-b92b-4849-bbc9-873403dc1b28" data-name="vector-7" class="cls-4" cx="594.31207275390625" cy="331.353851318359375" rx="26.514404296875" ry="24.633270263671875"/>+ <path id="uuid-c51a4e18-755c-4a23-a12d-6d58bb97642f" data-name="vector-8" class="cls-4" d="M594.09405517578125,351.24505615234375c-11.79620361328125,0-21.39300537109375-9.07061767578125-21.39300537109375-20.219970703125,0-11.148956298828125,9.59674072265625-20.219573974609375,21.39300537109375-20.219573974609375,11.796630859375,0,21.39337158203125,9.07061767578125,21.39337158203125,20.219573974609375,0,11.14935302734375-9.59674072265625,20.219970703125-21.39337158203125,20.219970703125Z"/>+ <path id="uuid-f6d0e8ca-b92c-45e3-875f-006fd90eb3f4" data-name="vector-9" class="cls-4" d="M594.175537109375,351.24505615234375c-11.45111083984375,0-20.76708984375-8.412933349609375-20.76708984375-18.753936767578125,0-10.340606689453125,9.31597900390625-18.7535400390625,20.76708984375-18.7535400390625,11.45147705078125,0,20.7674560546875,8.412933349609375,20.7674560546875,18.7535400390625,0,10.340972900390625-9.31597900390625,18.753936767578125-20.7674560546875,18.753936767578125Z"/>+ <path id="uuid-975f4973-24f7-47f8-8c10-2f6d54ab9f81" data-name="vector-10" class="cls-1" d="M607.27008056640625,331.797393798828125l.007080078125.505615234375c-.17889404296875.79278564453125-.94158935546875,1.366546630859375-1.889892578125,1.3656005859375l-1.3895263671875-.001373291015625.001708984375,6.916259765625c.00030517578125,1.18255615234375-1.04290771484375,2.1417236328125-2.40472412109375,2.14202880859375l-13.4132080078125.003143310546875c-1.4114990234375.000335693359375-2.46051025390625-.95538330078125-2.4593505859375-2.190582275390625l.00634765625-6.870208740234375-1.38934326171875.000762939453125c-.94854736328125.000518798828125-1.711181640625-.57269287109375-1.8900146484375-1.3656005859375l.0069580078125-.505584716796875c.0909423828125-.386322021484375.282958984375-.67742919921875.61224365234375-.9677734375l10.3807373046875-9.15283203125c.83660888671875-.737640380859375,1.99139404296875-.737762451171875,2.82806396484375-.000030517578125l10.38079833984375,9.15283203125c.32928466796875.290313720703125.52130126953125.58172607421875.612060546875.9677734375l.00006103515625-.000030517578125ZM597.65167236328125,339.678253173828125l-.002197265625-2.6761474609375c.05035400390625-1.420196533203125-1.233154296875-2.552764892578125-2.80340576171875-2.54345703125-1.5743408203125.00933837890625-2.781982421875,1.13525390625-2.77703857421875,2.544219970703125l.00946044921875,2.67913818359375,5.57318115234375-.003753662109375Z"/>+ </g>+ <g id="capture">+ <path id="vector-44" class="cls-4" d="M444.4638671875,348.43341064453125h28.595458984375c3.014617919921875,0,5.458465576171875-2.309906005859375,5.458465576171875-5.1593017578125v-24.18701171875c0-2.84942626953125-2.443817138671875-5.159332275390625-5.458465576171875-5.159332275390625h-28.595458984375c-3.014617919921875,0-5.458465576171875,2.309906005859375-5.458465576171875,5.159332275390625v24.18701171875c0,2.849395751953125,2.443817138671875,5.1593017578125,5.458465576171875,5.1593017578125ZM444.358673095703125,348.44647216796875h28.595458984375c3.014617919921875,0,5.458465576171875-2.309906005859375,5.458465576171875-5.1593017578125v-27.02838134765625c0-2.84942626953125-2.443817138671875-5.159332275390625-5.458465576171875-5.159332275390625h-28.595458984375c-3.014617919921875,0-5.458465576171875,2.309906005859375-5.458465576171875,5.159332275390625v27.02838134765625c0,2.849395751953125,2.443817138671875,5.1593017578125,5.458465576171875,5.1593017578125Z"/>+ <ellipse id="vector-45" class="cls-2" cx="458.74078369140625" cy="331.594207763671875" rx="12.313385009765625" ry="11.638427734375"/>+ </g>+ <g id="minus">+ <rect id="uuid-e3b56fa0-d2f6-4698-92d5-9855af56d5d8" data-name="vector-11" class="cls-1" x="392.15838623046875" y="220.562301635742188" width="22.00067138671875" height="3.592864990234375"/>+ <path id="vector-12" class="cls-4" d="M403.017974853515625,242.142837524414062c-12.34552001953125,0-22.38916015625-9.49298095703125-22.38916015625-21.161529541015625,0-11.668121337890625,10.04364013671875-21.161102294921875,22.38916015625-21.161102294921875,12.345916748046875,0,22.389556884765625,9.49298095703125,22.389556884765625,21.161102294921875,0,11.668548583984375-10.04364013671875,21.161529541015625-22.389556884765625,21.161529541015625Z"/>+ <path id="vector-13" class="cls-4" d="M403.103240966796875,242.142837524414062c-11.984344482421875,0-21.734130859375-8.804702758789062-21.734130859375-19.627212524414062,0-10.822128295898438,9.749786376953125-19.626815795898438,21.734130859375-19.626815795898438,11.984710693359375,0,21.734527587890625,8.804702758789062,21.734527587890625,19.626815795898438,0,10.822509765625-9.749786376953125,19.627212524414062-21.734527587890625,19.627212524414062Z"/>+ </g>+ <g id="plus">+ <rect id="vector-14" class="cls-1" x="641.957763671875" y="220.231643676757812" width="22.2352294921875" height="3.631179809570312"/>+ <rect id="vector-15" class="cls-1" x="651.25982666015625" y="210.677871704101562" width="3.63116455078125" height="22.2352294921875"/>+ <path id="vector-16" class="cls-4" d="M652.7080078125,242.284469604492188c-12.5360107421875,0-22.73468017578125-9.639480590820312-22.73468017578125-21.488082885742188,0-11.848175048828125,10.1986083984375-21.487655639648438,22.73468017578125-21.487655639648438,12.53643798828125,0,22.73504638671875,9.639480590820312,22.73504638671875,21.487655639648438,0,11.848602294921875-10.1986083984375,21.488067626953125-22.73504638671875,21.488067626953125v.000015258789062Z"/>+ <path id="vector-17" class="cls-4" d="M652.79461669921875,242.284469604492188c-12.16925048828125,0-22.06951904296875-8.940567016601562-22.06951904296875-19.930084228515625,0-10.989120483398438,9.9002685546875-19.9296875,22.06951904296875-19.9296875,12.169677734375,0,22.06988525390625,8.940567016601562,22.06988525390625,19.9296875,0,10.989517211914062-9.9002685546875,19.930084228515625-22.06988525390625,19.930084228515625Z"/>+ </g>+ <g id="shoulder">+ <path id="vector-18" data-name="vector" class="cls-4" d="M935.08233642578125,143.802688598632812s-.36749267578125,6.873199462890625-2.7862548828125,9.976974487304688c-2.4188232421875,3.103775024414062-10.80889892578125,9.704345703125-26.5040283203125,5.558013916015625-15.69512939453125-4.146316528320312-51.02630615234375-15.800506591796875-65.45892333984375-19.525039672851562-14.43255615234375-3.724533081054688-34.021484375-7.473281860351562-55.247314453125-10.220443725585938,0,0-50.285400390625-3.495254516601562-71.8525390625-4.779937744140625-21.56719970703125-1.284683227539062-113.598388671875-1.139289855957031-113.598388671875-1.139289855957031l-139.214935302734375-.004951477050781s-103.72894287109375-.069221496582031-121.41497802734375.631942749023438-73.87158203125,3.94696044921875-93.528274536132812,7.821380615234375-54.631515502929688,13.732269287109375-68.3614501953125,18.07489013671875c-13.729949951171875,4.342620849609375-27.7686767578125,10.804534912109375-39.883377075195312,10.470367431640625-5.72015380859375-.157791137695312-20.90478515625-3.099044799804688-18.113151550292969-19.520797729492188"/>+ <path id="vector-19" data-name="vector" class="cls-4" d="M675.35003662109375,99.149505615234375s25.33056640625-37.555912017822266,37.53057861328125-46.995182037353516c12.199951171875-9.43927001953125,16.5230712890625-12.230270385742188,51.3572998046875-9.014217376708984,34.834228515625,3.216056823730469,61.88983154296875,15.659652709960938,80.30755615234375,25.26910400390625s47.59710693359375,27.482505798339844,63.30108642578125,41.2269287109375c4.9288330078125,4.313827514648438,16.1563720703125,17.105690002441406,9.16650390625,22.43133544921875-6.2220458984375,4.740615844726562-20.41827392578125,1.599746704101562-39.55450439453125-5.259124755859375-20.6661376953125-7.407211303710938-44.04461669921875-12.614395141601562-76.47381591796875-18.809684753417969-24.85052490234375-4.747451782226562-93.506591796875-6.410942077636719-108.728515625-8.151947021484375-2.799560546875-.320198059082031-9.3221435546875-.553382873535156-18.1036376953125-.720733642578125-38.9658203125-.742584228515625-122.40771484375-.188896179199219-122.40771484375-.188896179199219h-145.4114990234375s-79.37921142578125,1.224388122558594-108.560455322265625,3.265037536621094c-29.1812744140625,2.0406494140625-62.443817138671875,8.366653442382812-80.19744873046875,12.8560791015625s-37.154998779296875,13.592781066894531-51.57110595703125,16.733314514160156-21.843795776367188,4.436981201171875-29.64666748046875-2.199325561523438c-7.8028564453125-6.636299133300781,3.218460083007812-18.06964111328125,7.79229736328125-21.593536376953125,17.145980834960938-13.2100830078125,59.7479248046875-38.480194091796875,73.375625610351562-44.578102111816406,13.627700805664062-6.097911834716797,31.970733642578125-13.233814239501953,54.010848999023438-17.782638549804688,22.04010009765625-4.548820495605469,36.7880859375-7.133602142333984,48.777740478515625-3.777141571044922s28.221160888671875,15.000064849853516,38.342681884765625,27.392932891845703c10.121551513671875,12.392868041992188,19.656707763671875,30.592994689941406,19.656707763671875,30.592994689941406"/>+ <line id="vector-20" data-name="vector" class="cls-4" x1="311.066925048828125" y1="34.979377746582031" x2="315.929840087890625" y2="40.946022033691406"/>+ <line id="vector-21" data-name="vector" class="cls-4" x1="739.91259765625" y1="35.948078155517578" x2="735.04974365234375" y2="41.914722442626953"/>+ <path id="vector-23" data-name="vector" class="cls-4" d="M787.47064208984375,46.774028778076172s30.503173828125,3.262550354003906,49.60321044921875,9.081104278564453,39.84130859375,14.841461181640625,48.69879150390625,20.997390747070312c7.076416015625,4.918106079101562,14.10052490234375,10.474456787109375,18.62628173828125,16.601219177246094"/>+ <path id="vector-24" data-name="vector" class="cls-4" d="M898.4554443359375,101.469444274902344s-1.33221435546875,5.187820434570312-8.8302001953125,5.168632507324219-39.68603515625-13.527519226074219-39.68603515625-13.527519226074219c0,0-34.23297119140625-11.168540954589844-43.62432861328125-13.892112731933594s-37.5654296875-8.636985778808594-47.10821533203125-9.997268676757812c-9.5428466796875-1.36029052734375-17.84881591796875-2.977455139160156-31.8094482421875,2.479232788085938-13.9605712890625,5.456680297851562-46.3154296875,25.336883544921875-51.62286376953125,26.823905944824219"/>+ <path id="vector-25" data-name="vector" class="cls-4" d="M155.363021850585938,100.525360107421875s1.765289306640625,5.47381591796875,9.263275146484375,5.454627990722656,39.68603515625-13.527519226074219,39.68603515625-13.527519226074219c0,0,34.232986450195312-11.168540954589844,43.624343872070312-13.892112731933594s37.565399169921875-8.636985778808594,47.108245849609375-9.997276306152344c9.542816162109375-1.36029052734375,17.84881591796875-2.977455139160156,31.809417724609375,2.479232788085938,13.960601806640625,5.456680297851562,44.826690673828125,25.269157409667969,50.1341552734375,26.756179809570312"/>+ <path id="uuid-119f422d-95e2-4d23-8d86-5fc50a73acfd" data-name="vector-18" class="cls-4" d="M265.5765380859375,46.950176239013672s-30.421722412109375,3.141654968261719-49.521759033203125,8.960212707519531c-19.10003662109375,5.818553924560547-39.841293334960938,14.841457366943359-48.698776245117188,20.997394561767578-7.076431274414062,4.918113708496094-14.981597900390625,10.514747619628906-19.50738525390625,16.641502380371094"/>+ </g>+ <g id="top-panel">+ <polyline id="uuid-dee3c89e-4665-425f-92dd-dc1f2a05a471" data-name="vector-19" class="cls-4" points="340.7130126953125 32.238445281982422 381.928619384765625 94.597999572753906 672.0648193359375 94.759567260742188 711.439208984375 32.053058624267578"/>+ <line id="uuid-882056d9-5c69-4864-947f-187c65235d5f" data-name="vector-20" class="cls-4" x1="381.928619384765625" y1="94.597999572753906" x2="381.92572021484375" y2="99.846725463867188"/>+ <line id="uuid-0ce1f135-dedd-4701-abe7-4c612fb91e27" data-name="vector-21" class="cls-4" x1="671.94268798828125" y1="94.647537231445312" x2="671.93975830078125" y2="99.896263122558594"/>+ </g>+ <g id="usb">+ <rect id="uuid-8d6029f5-1846-4aaf-b095-a0a8de2525be" data-name="vector-24" class="cls-4" x="497.5435791015625" y="50.710567474365121" width="57.0992431640625" height="13.00038146972679" rx="6.497344970703125" ry="6.497344970703125"/>+ <path id="uuid-c3aed9b3-fd84-4845-afa3-d91aeb7fcdde" data-name="vector-25" class="cls-4" d="M548.18505859375,63.080768585205078v-.000011444091797c0-3.589954376220703-2.91021728515625-6.50018310546875-6.50018310546875-6.50018310546875h-32.145172119140625c-3.5899658203125,0-6.50018310546875,2.910232543945312-6.50018310546875,6.50018310546875v.000011444091797"/>+ </g>+ <g id="sync">+ <ellipse id="vector-26" class="cls-4" cx="461.748077392578125" cy="55.938949584960938" rx="7.6666259765625" ry="4.442684173583984"/>+ </g>+ <g id="recharge-led">+ <ellipse id="vector-27" class="cls-4" cx="589.24676513671875" cy="56.84259033203125" rx="3.861572265625" ry="2.988079071044922"/>+ </g>+ <g id="nfc-touchpoint">+ <g id="nintendo-switch-wordmark">+ <polygon id="vector-28" class="cls-1" points="507.41973876953125 266.81463623046875 511.871124267578125 266.78106689453125 505.95806884765625 287.508148193359375 501.076507568359375 287.483551025390625 497.191864013671875 273.9273681640625 493.29779052734375 287.52569580078125 488.4288330078125 287.4696044921875 482.572967529296875 266.79144287109375 487.015960693359375 266.74810791015625 491.026123046875 281.684661865234375 495.391387939453125 266.785186767578125 498.975494384765625 266.781829833984375 503.382293701171875 281.71435546875 507.41973876953125 266.81463623046875"/>+ <path id="vector-29" class="cls-1" d="M590.4794921875,287.27679443359375c-1.40972900390625.33966064453125-2.73284912109375.2587890625-4.1859130859375.16558837890625l-.01495361328125-8.29833984375-9.68182373046875-.0035400390625-.03875732421875,8.2977294921875-4.17584228515625.020294189453125-.00250244140625-20.712158203125,4.18072509765625.052398681640625.01959228515625,8.16070556640625,9.697265625-.025634765625.015380859375-8.1815185546875,4.17987060546875-.001312255859375.00701904296875,20.525787353515625h-.00006103515625Z"/>+ <path id="vector-30" class="cls-1" d="M477.6287841796875,286.298797607421875c-1.43035888671875.92889404296875-3.250030517578125,1.55120849609375-4.898529052734375,1.55108642578125l-4.824859619140625-.000274658203125c-2.380828857421875-.000152587890625-4.5238037109375-1.02801513671875-6.791717529296875-1.981597900390625l1.943756103515625-3.501068115234375c4.22552490234375,2.61273193359375,13.17376708984375,2.717559814453125,12.920501708984375-.957275390625-.041717529296875-.60516357421875-.850616455078125-1.593505859375-1.608734130859375-1.755340576171875l-8.442169189453125-1.802215576171875c-.5634765625-.12030029296875-1.46405029296875-.6300048828125-2.006072998046875-.912750244140625-1.548919677734375-.8079833984375-2.5369873046875-2.332000732421875-2.5955810546875-3.890533447265625-.063751220703125-1.696136474609375.71600341796875-3.292633056640625,2.11944580078125-4.328216552734375,4.382049560546875-3.23345947265625,9.781494140625-2.370880126953125,15.07354736328125-.694580078125l-1.5096435546875,3.594390869140625c-3.496826171875-1.628173828125-10.466827392578125-2.11663818359375-11.26824951171875.358642578125-.8194580078125,2.531005859375,4.00567626953125,2.62982177734375,6.064666748046875,3.1705322265625l3.377716064453125.886993408203125c1.51800537109375.39862060546875,3.134918212890625,1.0701904296875,4.097900390625,2.429901123046875,1.73480224609375,2.44952392578125,1.000030517578125,6.11004638671875-1.6519775390625,7.832305908203125Z"/>+ <path id="vector-31" class="cls-1" d="M557.9556884765625,270.739166259765625c-3.1229248046875.217498779296875-5.586181640625,2.627777099609375-5.9476318359375,5.58349609375-.37677001953125,3.08074951171875,1.4228515625,5.926177978515625,4.4371337890625,6.977935791015625,2.87359619140625,1.00262451171875,6.02099609375-.2105712890625,7.75177001953125-2.82196044921875l3.34588623046875,2.790283203125c-3.690673828125,5.503265380859375-11.36700439453125,6.484466552734375-16.34765625,2.170928955078125-4.9334716796875-4.27264404296875-5.0753173828125-11.963958740234375-.22308349609375-16.3948974609375,4.8917236328125-4.467010498046875,12.60614013671875-3.6832275390625,16.53704833984375,1.931427001953125l-3.2998046875,2.864990234375c-1.431884765625-2.2718505859375-3.68243408203125-3.28125-6.253662109375-3.1021728515625v-.000030517578125Z"/>+ <polygon id="vector-32" class="cls-1" points="537.71734619140625 287.421356201171875 533.33642578125 287.421630859375 533.334716796875 271.14764404296875 526.66009521484375 271.132110595703125 526.68841552734375 266.760406494140625 544.15826416015625 266.75653076171875 544.1903076171875 271.136932373046875 537.72003173828125 271.133758544921875 537.71734619140625 287.421356201171875"/>+ <rect id="vector-33" class="cls-1" x="517.14239501953125" y="266.753875732421875" width="4.43890380859375" height="20.76483154296875"/>+ <path id="vector-34" class="cls-1" d="M591.2652587890625,255.748565673828125c0,3.20843505859375-2.6009521484375,5.809417724609375-5.80938720703125,5.809417724609375s-5.80938720703125-2.6009521484375-5.80938720703125-5.809417724609375c0-3.208450317382812,2.6009521484375-5.809417724609375,5.80938720703125-5.809417724609375s5.80938720703125,2.600967407226562,5.80938720703125,5.809417724609375ZM588.89715576171875,255.75189208984375c0-1.89044189453125-1.53253173828125-3.422958374023438-3.4229736328125-3.422958374023438s-3.4229736328125,1.532516479492188-3.4229736328125,3.422958374023438,1.53253173828125,3.422943115234375,3.4229736328125,3.422943115234375,3.4229736328125-1.532501220703125,3.4229736328125-3.422958374023438v.000015258789062Z"/>+ <path id="vector-35" class="cls-1" d="M553.14141845703125,261.14605712890625c-.684326171875.107635498046875-1.62200927734375.09014892578125-2.223876953125-.075225830078125l-5.33502197265625-7.06646728515625-.08935546875,7.207794189453125-2.2412109375-.13934326171875-.026123046875-10.546234130859375c.8018798828125-.146392822265625,1.6368408203125-.163177490234375,2.39996337890625-.061614990234375l5.181396484375,6.869598388671875.06585693359375-6.923049926757812,2.26531982421875-.017913818359375.003173828125,10.752456665039062h-.0001220703125Z"/>+ <polygon id="vector-36" class="cls-1" points="471.80316162109375 261.152435302734375 469.718048095703125 261.211181640625 464.227935791015625 253.84930419921875 464.145294189453125 261.217926025390625 462.08367919921875 261.211944580078125 462.084136962890625 250.391067504882812 464.346466064453125 250.444015502929688 469.6182861328125 257.4317626953125 469.725067138671875 250.379623413085938 471.798828125 250.416580200195312 471.80316162109375 261.152435302734375"/>+ <path id="vector-37" class="cls-1" d="M500.565582275390625,261.14630126953125c-.689422607421875.11737060546875-1.61639404296875.098480224609375-2.209686279296875-.079559326171875l-5.3226318359375-7.1234130859375-.110321044921875,7.26910400390625-2.078094482421875-.0321044921875.000732421875-10.762374877929688,2.264129638671875-.012176513671875,5.251373291015625,7.014602661132812.119659423828125-7.010498046875,2.081451416015625-.020294189453125.003387451171875,10.7567138671875Z"/>+ <path id="vector-38" class="cls-1" d="M572.378173828125,254.499374389648438c.839111328125,3.388015747070312-1.74981689453125,6.620742797851562-5.12994384765625,6.668869018554688l-4.7744140625.0679931640625-.00634765625-10.835525512695312,5.48065185546875.049972534179688c2.10791015625.01922607421875,3.90740966796875,1.938552856445312,4.4300537109375,4.048690795898438ZM566.691162109375,258.9788818359375c1.7559814453125.08953857421875,3.1163330078125-1.00640869140625,3.46148681640625-2.513275146484375.33013916015625-1.441329956054688-.37469482421875-3.102188110351562-1.951416015625-3.692062377929688-1.10009765625-.411544799804688-2.4468994140625-.359619140625-3.6380615234375-.180892944335938l.01556396484375,6.278533935546875,2.1124267578125.107696533203125Z"/>+ <polygon id="vector-39" class="cls-1" points="533.7109375 256.65460205078125 527.8155517578125 256.66448974609375 527.81903076171875 259.135528564453125 534.0982666015625 259.1324462890625 534.083984375 261.2298583984375 525.7216796875 261.21636962890625 525.7115478515625 250.379898071289062 534.04449462890625 250.37310791015625 534.11077880859375 252.282318115234375 527.9012451171875 252.274078369140625 527.83160400390625 254.736801147460938 533.68634033203125 254.75274658203125 533.7109375 256.65460205078125"/>+ <polygon id="vector-40" class="cls-1" points="514.280517578125 261.15802001953125 511.99053955078125 261.23193359375 511.991729736328125 252.67730712890625 508.39288330078125 252.599472045898438 508.39862060546875 250.393692016601562 517.68170166015625 250.348663330078125 517.69952392578125 252.592010498046875 514.27490234375 252.66790771484375 514.280517578125 261.15802001953125"/>+ <rect id="vector-41" class="cls-1" x="480.179351806640625" y="250.376922607421875" width="2.28692626953125" height="10.851104736328125"/>+ <path id="vector-42" class="cls-1" d="M597.19476318359375,287.321136474609375l-.12054443359375-1.470977783203125-.90228271484375,1.738128662109375-.79119873046875-1.931427001953125-.20257568359375,1.648651123046875-.31121826171875-.021697998046875-.001220703125-2.199249267578125c-.00006103515625-.12249755859375.4224853515625-.36517333984375.50726318359375-.27655029296875.11297607421875.118072509765625.32269287109375.42425537109375.390869140625.5946044921875l.48272705078125,1.206756591796875.8804931640625-1.8687744140625c.23046875.12738037109375.5601806640625.569366455078125.56146240234375.77886962890625l.01068115234375,1.770263671875-.50445556640625.031402587890625Z"/>+ <polygon id="vector-43" class="cls-1" points="593.50640869140625 285.5205078125 593.599365234375 287.29461669921875 593.22210693359375 287.30810546875 593.124755859375 285.49627685546875 592.03924560546875 284.881988525390625 594.58734130859375 284.961273193359375 593.50640869140625 285.5205078125"/>+ <g id="nintendo-switch-symbol">+ <path id="vector-47" class="cls-1" d="M570.43011474609375,215.719573974609375c-.00067138671875,2.551986694335938-.72979736328125,4.594985961914062-1.46942138671875,6.80242919921875-3.0289306640625,7.872329711914062-10.0372314453125,13.18731689453125-18.4622802734375,14.307861328125l-16.597900390625-.002212524414062.00390625-87.410720825195312,15.26348876953125.04541015625c9.77825927734375.329849243164062,17.92022705078125,7.215667724609375,20.5643310546875,16.473846435546875.26275634765625,1.495925903320312.710205078125,2.917343139648438.7098388671875,4.511138916015625l-.011962890625,45.272247314453125ZM560.1142578125,197.499038696289062c0-4.910537719726562-3.98077392578125-8.891326904296875-8.89129638671875-8.891326904296875s-8.89129638671875,3.98077392578125-8.89129638671875,8.891326904296875c0,4.910537719726562,3.98077392578125,8.891326904296875,8.89129638671875,8.891326904296875s8.89129638671875-3.98077392578125,8.89129638671875-8.891326904296875Z"/>+ <path id="vector-48" class="cls-1" d="M503.220458984375,236.7095947265625c-6.571014404296875-.345245361328125-12.108642578125-3.927276611328125-15.99017333984375-8.792984008789062-2.299835205078125-3.704193115234375-4.32891845703125-7.473129272460938-4.321868896484375-11.991195678710938l.071044921875-45.549652099609375c.014373779296875-9.21234130859375,6.7777099609375-16.907150268554688,15.0963134765625-19.831878662109375,1.879425048828125-.526626586914062,3.349090576171875-1.0946044921875,5.278167724609375-1.094528198242188l21.78155517578125.0008544921875-.00677490234375,87.410446166992188-21.90826416015625-.15106201171875ZM504.909759521484375,229.912689208984375l13.183502197265625.048477172851562-.000732421875-73.68450927734375-13.48577880859375.085006713867188c-7.794586181640625.4111328125-13.93328857421875,6.306259155273438-14.710418701171875,14.014556884765625l-.00482177734375,45.125274658203125c.53387451171875,7.973831176757812,6.90869140625,14.092056274414062,15.018280029296875,14.41119384765625h-.000030517578125Z"/>+ <circle id="vector-49" class="cls-1" cx="504.70135498046875" cy="175.611007690429688" r="8.20770263671875"/>+ </g>+ </g>+ </g>+ <g id="body">+ <path id="vector-50" class="cls-3" d="M791.41436767578125,554.232421875l11.2437744140625,14.26385498046875,30.76446533203125,43.59747314453125c7.5167236328125,10.6522216796875,15.6917724609375,20.17144775390625,25.42547607421875,28.73138427734375,8.32904052734375,7.3245849609375,17.69757080078125,12.355712890625,28.54156494140625,14.91986083984375,11.33660888671875,2.68060302734375,22.966796875,3.10296630859375,34.38134765625.45880126953125,32.84893798828125-7.609375,62.39141845703125-33.69091796875,78.514892578125-62.89471435546875,12.6285400390625-22.87353515625,17.2999267578125-48.8497314453125,15.3463134765625-74.88970947265625l-7.9818115234375-64.1856689453125-13.9931640625-79.11285400390625-12.70416259765625-60.7261962890625-26.59075927734375-107.566238403320312-17.0047607421875-54.622085571289062c-6.41436767578125-16.146514892578125-16.32421875-29.807235717773438-28.494140625-42.306243896484375-2.470947265625-10.622787475585938-6.26788330078125-20.562179565429688-10.8475341796875-30.698982238769531-17.0150146484375-37.661861419677734-45.80224609375-67.151809692382812-87.6158447265625-74.137901306152344-14.4993896484375-2.675725698471069-28.14434814453125-.049258708953857-40.6260986328125,7.321207046508789-11.47259521484375,6.774543762207031-22.12945556640625,14.296113967895508-31.05413818359375,24.244779586791992l-34.13812255859375-4.318103790283203-33.11907958984375-2.975088119506836c-50.4537353515625-3.426877975463867-100.4818115234375-5.008382797241211-151.063720703125-4.597261428833008l-41.5269775390625.3375244140625c-33.545257568359375.272649765014648-66.628936767578125,1.384620666503906-100.04742431640625,4.407602310180664l-32.06549072265625,2.900590896606445-33.860198974609375,4.109642028808594c-10.014984130859375-11.517026901245117-23.864654541015625-20.32774543762207-37.310455322265625-27.191930770874023-7.22760009765625-3.461350440979004-14.63519287109375-4.806256771087646-22.791641235351562-5.409496307373047-16.0589599609375.538158416748047-31.113372802734375,5.143847465515137-45.280120849609375,12.752241134643555-18.91497802734375,10.158473968505859-33.7481689453125,25.479396820068359-44.593032836914062,43.964542388916016-7.946014404296875,13.544021606445312-14.360641479492188,27.466224670410156-18.892105102539062,42.515472412109375l-1.263763427734375,5.589790344238281c-9.504257202148438,10.193145751953125-18.312690734863281,20.841224670410156-24.639892578125,33.431190490722656-6.419219970703125,12.773056030273438-10.73175048828125,25.898574829101562-14.627456665039062,39.591354370117188l-8.626953125,30.322357177734375-11.365554809570312,43.850997924804688-6.485282897949219,26.820343017578125-7.721885681152344,32.256866455078125-7.946327209472656,37.231781005859375-7.685344696044922,38.00714111328125-7.374740600585938,41.74822998046875-7.553447723388672,49.450897216796875c-5.155509948730469,33.752105712890625-8.7490234375,61.331268310546875,3.311695098876953,94.353912353515625,7.154319763183594,19.58880615234375,18.606845855712891,37.05523681640625,33.965145111083984,51.176513671875,14.253623962402344,13.1055908203125,30.5982666015625,23.1563720703125,49.382568359375,28.38726806640625,13.098190307617188,3.6474609375,27.178298950195312,3.548828125,40.08428955078125-.3577880859375,10.99395751953125-3.327880859375,20.322952270507812-9.3995361328125,28.598175048828125-17.01629638671875,6.506271362304688-5.98858642578125,12.276901245117188-12.15277099609375,17.348190307617188-19.35845947265625l19.10931396484375-27.15185546875,16.530471801757812-23.51904296875c5.234283447265625-7.4471435546875,10.896026611328125-14.094482421875,17.78375244140625-20.01324462890625,12.694732666015625-10.9088134765625,30.02349853515625-15.3214111328125,46.8271484375-15.32183837890625l116.096893310546875-.00311279296875,131.373809814453125.02191162109375,43.12493896484375.0316162109375,82.7257080078125-.00830078125,56.28472900390625.03173828125c19.0706787109375.0107421875,38.2900390625,6.5374755859375,50.12689208984375,21.5537109375l-.0001220703125-.00018310546875Z"/>+ <path id="vector-51" class="cls-4" d="M275.553955078125,540.72760009765625s-8.263214111328125-4.98675537109375-35.874954223632812-34.028411865234375c-26.965957641601562-28.36248779296875-63.736129760742188-73.900726318359375-83.624252319335938-101.1197509765625-12.145355224609375-16.622222900390625-41.063613891601562-57.81793212890625-48.501815795898438-71.7894287109375,0,0-26.990402221679688-47.478424072265625-27.176193237304688-64.931243896484375"/>+ <path id="vector-52" class="cls-4" d="M774.4635009765625,539.79437255859375s8.26324462890625-4.98675537109375,35.87493896484375-34.028411865234375c26.9659423828125-28.36248779296875,63.73614501953125-73.900726318359375,83.624267578125-101.1197509765625,12.14532470703125-16.622222900390625,41.0635986328125-57.81793212890625,48.5018310546875-71.7894287109375,0,0,26.99041748046875-47.478424072265625,27.17620849609375-64.931243896484375"/>+ </g>+ <g id="press">+ <g id="press-dpad">+ <rect id="press-up" class="cls-6" x="351.355010986328125" y="355.29388427734375" width="45.8489990234375" height="40.03704833984375" rx="7.00946044921875" ry="7.00946044921875"/>+ <rect id="press-left" class="cls-6" x="298.934295654296875" y="398.728668212890625" width="49.895355224609375" height="41.86431884765625" rx="5.899780273437501" ry="5.899780273437501"/>+ <rect id="press-right" class="cls-6" x="402.680145263671875" y="398.728668212890625" width="47.097412109375" height="41.86431884765625" rx="7.00946044921875" ry="7.00946044921875"/>+ <rect id="press-down" class="cls-6" x="351.355010986328125" y="442.3883056640625" width="45.8489990234375" height="41.86431884765625" rx="5.899780273437501" ry="5.899780273437501"/>+ </g>+ <g id="press-stick-left">+ <path id="Vector-20-2-2" class="cls-6" d="M263.27532958984375,373.5810546875c34.680084228515625-8.927764892578125,55.93560791015625-43.980743408203125,47.40264892578125-78.276947021484375s-43.52008056640625-54.838836669921875-78.211151123046875-45.944000244140625c-34.691055297851562,8.89483642578125-55.93560791015625,43.980743408203125-47.402725219726562,78.287933349609375,8.532882690429688,34.307159423828125,43.520156860351562,54.893646240234375,78.211227416992188,45.933013916015625Z"/>+ </g>+ <g id="press-stick-right">+ <path id="Vector-20-2-3" class="cls-6" d="M691.9444580078125,498.962799072265625c33.48028564453125-8.58770751953125,54.00042724609375-42.30548095703125,45.7626953125-75.295318603515625s-42.01446533203125-52.75-75.50531005859375-44.1939697265625-54.00042724609375,42.30548095703125-45.76275634765625,75.305908203125c8.2376708984375,33.0003662109375,42.0145263671875,52.802703857421875,75.50543212890625,44.18341064453125l-.00006103515625-.000030517578125Z"/>+ </g>+ <g id="press-face">+ <path id="press-B" class="cls-6" d="M800.66375732421875,383.75396728515625c16.6182861328125-4.27459716796875,26.77392578125-21.0498046875,22.6839599609375-37.464996337890625-4.11859130859375-16.31451416015625-20.6829833984375-26.201263427734375-36.99755859375-22.082611083984375-.140625.0355224609375-.2811279296875.072021484375-.4212646484375.10955810546875-16.6182861328125,4.27459716796875-26.77392578125,21.04058837890625-22.6839599609375,37.45574951171875,4.11383056640625,16.31573486328125,20.67529296875,26.20733642578125,36.99102783203125,22.093505859375.142822265625-.036041259765625.285400390625-.073089599609375.427734375-.111175537109375l.00006103515625-.000030517578125Z"/>+ <path id="press-Y" class="cls-6" d="M725.5338134765625,320.454803466796875c16.98284912109375-4.27459716796875,27.36126708984375-21.0498046875,23.18157958984375-37.464996337890625-4.20892333984375-16.31451416015625-21.13671875-26.201263427734375-37.80914306640625-22.082611083984375-.14373779296875.0355224609375-.28729248046875.072021484375-.43048095703125.10955810546875-16.98284912109375,4.27459716796875-27.36126708984375,21.04058837890625-23.18157958984375,37.45574951171875,4.2041015625,16.31573486328125,21.12884521484375,26.20733642578125,37.802490234375,22.093505859375.14593505859375-.036041259765625.29168701171875-.073089599609375.4371337890625-.111175537109375l.00006103515625-.000030517578125h-.00006103515625Z"/>+ <path id="press-A" class="cls-6" d="M876.7677001953125,319.059722900390625c16.386962890625-4.057586669921875,26.40118408203125-19.981170654296875,22.3681640625-35.563018798828125-4.061279296875-15.486297607421875-20.39508056640625-24.871124267578125-36.4825439453125-20.9615478515625-.138671875.033721923828125-.2772216796875.068359375-.4154052734375.10400390625-16.386962890625,4.057586669921875-26.40118408203125,19.972442626953125-22.3681640625,35.55426025390625,4.05657958984375,15.487457275390625,20.387451171875,24.87689208984375,36.47607421875,20.971893310546875.14080810546875-.034210205078125.28143310546875-.069366455078125.4217529296875-.10552978515625l.00006103515625-.000030517578125.00006103515625-.000030517578125Z"/>+ <path id="press-X" class="cls-6" d="M801.73516845703125,257.6611328125c17.36029052734375-4.27459716796875,27.96942138671875-21.0498046875,23.69683837890625-37.464996337890625-4.302490234375-16.31451416015625-21.60650634765625-26.201263427734375-38.6495361328125-22.082611083984375-.14691162109375.0355224609375-.293701171875.072021484375-.4400634765625.10955810546875-17.36029052734375,4.27459716796875-27.96942138671875,21.04058837890625-23.69683837890625,37.45574951171875,4.2974853515625,16.31573486328125,21.59844970703125,26.20733642578125,38.6427001953125,22.093505859375.149169921875-.036041259765625.29815673828125-.073089599609375.44683837890625-.111175537109375l.00006103515625-.000030517578125Z"/>+ </g>+ <g id="press-minus">+ <path id="Vector-35-3-2" class="cls-6" d="M407.85784912109375,241.384033203125c11.6842041015625-2.91375732421875,18.995391845703125-13.72174072265625,16.3243408203125-24.139190673828125-2.670989990234375-10.417449951171875-14.286865234375-16.509323120117188-26.002166748046875-13.595565795898438-11.715240478515625,2.91375732421875-18.995391845703125,13.715728759765625-16.3243408203125,24.139190673828125,2.670989990234375,10.423492431640625,14.31170654296875,16.503341674804688,26.002166748046875,13.595565795898438Z"/>+ </g>+ <g id="press-home">+ <path id="Vector-35-3-3" class="cls-6" d="M598.7423095703125,349.946685791015625c11.217041015625-2.695587158203125,18.23590087890625-12.694244384765625,15.67169189453125-22.331634521484375s-13.71563720703125-15.273101806640625-24.9625244140625-12.577545166015625c-11.246826171875,2.695587158203125-18.23590087890625,12.688690185546875-15.67169189453125,22.331634521484375,2.564208984375,9.642974853515625,13.739501953125,15.267578125,24.9625244140625,12.577545166015625Z"/>+ </g>+ <g id="press-plus">+ <path id="Vector-35-3-4" class="cls-6" d="M657.69732666015625,241.222793579101562c11.62481689453125-2.91375732421875,18.8988037109375-13.72174072265625,16.2413330078125-24.139190673828125-2.65740966796875-10.417449951171875-14.2142333984375-16.509323120117188-25.8699951171875-13.595565795898438-11.65570068359375,2.91375732421875-18.8988037109375,13.715728759765625-16.2413330078125,24.139190673828125,2.65740966796875,10.423492431640625,14.23895263671875,16.503341674804688,25.8699951171875,13.595565795898438Z"/>+ </g>+ <g id="press-capture">+ <rect id="vector-53" class="cls-6" x="438.90020751953125" y="313.778900146484375" width="39.51239013671875" height="34.33489990234375" rx="6.4366455078125" ry="6.4366455078125"/>+ </g>+ <g id="press-R">+ <path id="vector-54" class="cls-6" d="M896.8428955078125,101.427536010742188c3.530029296875,2.650001525878906,6.760009765625,5.239997863769531,9.55999755859375,7.69000244140625,4.92999267578125,4.30999755859375,16.15997314453125,17.110000610351562,9.16998291015625,22.430007934570312-6.219970703125,4.740005493164062-20.41998291015625,1.600006103515625-39.55999755859375-5.260002136230469-20.65997314453125-7.409996032714844-44.03997802734375-12.610000610351562-76.469970703125-18.80999755859375-24.8499755859375-4.75-93.510009765625-6.409996032714844-108.72998046875-8.150001525878906-2.66998291015625-.30999755859375-8.719970703125-.529998779296875-16.9000244140625-.699996948242188,0,0,.1500244140625-.220001220703125.41998291015625-.620002746582031,3.3499755859375-4.919998168945312,25.86614990234375-36.718284606933594,37.13616943359375-45.438285827636719,12.20001220703125-9.439998626708984,16.62017822265625-12.822128295898438,51.4501953125-9.612125396728516,8.17999267578125.759998321533203,17.2261962890625,2.427211761474609,24.53619384765625,4.047210693359375,23.83001708984375,5.270000457763672,41.55743408203125,13.533199310302734,55.6474609375,20.883197784423828,15.1300048828125,7.889999389648438,37.52996826171875,21.360000610351562,53.739990234375,33.540000915527344"/>+ </g>+ <g id="press-L">+ <path id="vector-55" class="cls-6" d="M376.672882080078125,98.947509765625c-25.760009765625.5400390625-62.47003173828125,1.4801025390625-80.34002685546875,2.7401123046875-29.17999267578125,2.0399169921875-62.44000244140625,8.35986328125-80.20001220703125,12.849853515625-17.75,4.489990234375-37.14996337890625,13.590087890625-51.5699462890625,16.72998046875-14.4200439453125,3.150146484375-21.84002685546875,4.4400634765625-29.6500244140625-2.18994140625-7.79998779296875-6.639892578125,3.219970703125-18.070068359375,7.79998779296875-21.5999755859375,17.1400146484375-13.2100830078125,59.739990234375-38.47998046875,73.3699951171875-44.5799560546875,12.3800048828125-5.530029296875,43.198699951171875-14.664127349853516,43.198699951171875-14.664127349853516,1.95001220703125-.4600830078125,12.227691650390625-2.75360107421875,14.247711181640625-3.17352294921875,19.40997314453125-4.010009765625,29.55657958984375-5.930778503417969,40.74658203125-4.170768737792969,1.52001953125.239990234375,3.1669921875.048458099365234,4.5970458984375.448360443115234,11.989990234375,3.3599853515625,28.219970703125,15,38.3399658203125,27.4000244140625,9.260009765625,11.3399658203125,18.03997802734375,27.5399169921875,19.46002197265625,30.2099609375Z"/>+ </g>+ <g id="press-ZL">+ <path id="vector-56" class="cls-6" d="M209.29583740234375,14.005818367004395s-19.94464111328125,9.880915641784668-28.292816162109375,20.325362205505371c-8.348175048828125,10.444450378417969-22.02276611328125,27.561126708984375-25.520217895507812,36.325237274169922-3.497451782226562,8.764114379882812-8.727264404296875,19.50018310546875-8.727264404296875,19.50018310546875,0,0,9.797775268554688-7.654502868652344,13.864517211914062-10.49969482421875s22.870269775390625-14.08740234375,30.12060546875-16.560577392578125,20.897491455078125-7.973255157470703,31.635421752929688-10.270172119140625,31.801666259765625-5.66839599609375,31.801666259765625-5.66839599609375l26.342453002929688-4.677474975585938s16.73681640625-3.165664672851562,21.08416748046875-3.163188934326172,10.538238525390625-.325527191162109,12.385650634765625.00927734375-5.8636474609375-7.531219482421875-5.8636474609375-7.531219482421875c0,0-5.40118408203125-6.253984451293945-14.654998779296875-12.151752471923828s-22.717315673828125-13.315629959106445-27.409942626953125-14.412636756896973-14.194091796875-3.130030632019043-19.066818237304688-2.352981090545654-24.193527221679688,3.024206161499023-37.698745727539062,11.128027439117432l-.000015258789062.000001907348633-.000015258789062.000004768371582Z"/>+ </g>+ <g id="press-ZR">+ <path id="vector-57" class="cls-6" d="M840.111083984375,15.090193748474121s19.94464111328125,9.880913734436035,28.29278564453125,20.325360298156738c8.34814453125,10.444450378417969,22.02276611328125,27.561126708984375,25.52020263671875,36.325244903564453,3.4974365234375,8.764114379882812,6.370361328125,15.837677001953125,6.370361328125,15.837677001953125,0,0-7.6201171875-5.916694641113281-11.6868896484375-8.761894226074219s-22.6160888671875-13.455581665039062-29.86639404296875-15.928756713867188-20.88507080078125-7.810405731201172-31.62298583984375-10.107322692871094-32.59429931640625-5.671699523925781-32.59429931640625-5.671699523925781l-22.7059326171875-4.123226165771484s-19.66796875-2.586582183837891-24.01531982421875-2.5841064453125-10.74395751953125.240146636962891-12.59136962890625.574951171875c-1.847412109375.334800720214844,6.06939697265625-8.096893310546875,6.06939697265625-8.096893310546875,0,0,5.40118408203125-6.253984451293945,14.655029296875-12.151752471923828,9.25384521484375-5.89776611328125,22.71734619140625-13.315629959106445,27.40997314453125-14.412636756896973,4.692626953125-1.097007274627686,14.194091796875-3.130030632019043,19.06683349609375-2.352981090545654s24.19354248046875,3.024206161499023,37.69873046875,11.128035068511963c0,0-.0001220703125.000001907348633-.0001220703125.000000953674316Z"/>+ </g>+ <g id="press-sync" data-name="SYNC Button Hit Area">+ <ellipse id="press-sync-area" class="cls-6" cx="461.7480773925781" cy="55.93894958496094" rx="7.6666259765625" ry="4.442684173583984"/>+ </g>+ </g>+</svg>diff --git a/docs/design-rules/gamepads/switch-joy-con/controller-hit.png b/docs/design-rules/gamepads/switch-joy-con/controller-hit.pngnew file mode 100644index 0000000000..f4db3ef0bbBinary files /dev/null and b/docs/design-rules/gamepads/switch-joy-con/controller-hit.png differdiff --git a/docs/design-rules/gamepads/switch-joy-con/controller.md b/docs/design-rules/gamepads/switch-joy-con/controller.mdnew file mode 100644index 0000000000..3074d5baf7--- /dev/null+++ b/docs/design-rules/gamepads/switch-joy-con/controller.md@@ -0,0 +1,25 @@+# Nintendo Switch Joy-Con 按键位表++基于 `controller.svg` 的 `press-*` 图层生成。`press = hit`;普通图 `controller.png` 不包含 press 图层,调试热图区 `controller-hit.png` 包含全部热区。两张 PNG 均为 2100×2100,SVG viewBox 为 `0 0 1050 660`。++| id | 功能 | press 图层 |+|---|---|---|+| `plus-button` | + 按钮 | `#press-plus-button` |+| `minus-button` | − 按钮 | `#press-minus-button` |+| `capture-button` | Capture 按钮 | `#press-capture-button` |+| `home-button` | HOME 按钮 | `#press-home-button` |+| `l-button` / `zl-button` | L 按钮 / ZL 按钮 | `#press-l-button` / `#press-zl-button` |+| `r-button` / `zr-button` | R 按钮 / ZR 按钮 | `#press-r-button` / `#press-zr-button` |+| `x-button` / `y-button` / `a-button` / `b-button` | A/B/X/Y 按钮 | `#press-face-buttons/press-*-button` |+| `left-stick` / `right-stick` | 左摇杆按钮 / 右摇杆按钮 | `#press-left-stick` / `#press-right-stick` |+| `directional-buttons/*` | 方向按钮(上、右、下、左) | `#press-directional-buttons/press-directional-*` |++热区使用 SVG 中与按键轮廓对应的 path、ellipse、rect 和 polygon。调试图按最新要求不为右侧 A/B/X/Y 按钮添加额外文字标注;按钮本身和热区均保留。++## 官方布局核对++- 左 Joy-Con:− 按钮、左摇杆、方向按钮、Capture 按钮、L 按钮、ZL 按钮。+- 右 Joy-Con:+ 按钮、A/B/X/Y 按钮、右摇杆、HOME 按钮、R 按钮、ZR 按钮。+- A/B/X/Y 位置为:X 上、B 下、Y 左、A 右。+- 右摇杆同时是 NFC 触碰点;它不是额外按键,因此不另建热区。+- SL、SR、SYNC 按钮和玩家指示灯位于 Joy-Con 侧面/导轨。本图为合拢正视图,这些部件不可见,因此未创建虚构图层或热区。diff --git a/docs/design-rules/gamepads/switch-joy-con/controller.png b/docs/design-rules/gamepads/switch-joy-con/controller.pngnew file mode 100644index 0000000000..a39c43b745Binary files /dev/null and b/docs/design-rules/gamepads/switch-joy-con/controller.png differdiff --git a/docs/design-rules/gamepads/switch-joy-con/controller.svg b/docs/design-rules/gamepads/switch-joy-con/controller.svgnew file mode 100644index 0000000000..67daf87826--- /dev/null+++ b/docs/design-rules/gamepads/switch-joy-con/controller.svg@@ -0,0 +1,204 @@+<?xml version='1.0' encoding='utf-8'?>+<svg xmlns="http://www.w3.org/2000/svg" id="controller" data-name=" 图层 1" viewBox="0 0 1050 660">+ <title>Nintendo Switch Joy-Con</title><defs>+ <style>+ .cls-1 {+ fill: #231815;+ }++ .cls-2 {+ stroke-width: 4px;+ }++ .cls-2, .cls-3, .cls-4 {+ stroke-miterlimit: 10;+ }++ .cls-2, .cls-3, .cls-4, .cls-5 {+ fill: none;+ stroke: #231815;+ }++ .cls-3 {+ stroke-width: 3px;+ }++ .cls-4, .cls-5 {+ stroke-width: 2px;+ }++ .cls-6 {+ opacity: .08;+ }+ </style>+ </defs>+ <g id="switch-joy-con" data-name="switch joy-con">+ <g id="r-button">+ <path id="vector" class="cls-4" d="M640.2606201171875,26.356687545776367s-1.22283935546875,7.788949966430664.839111328125,11.957586288452148,10.84326171875,8.184467315673828,27.53253173828125,7.847846984863281c16.68927001953125-.336624145507812,38.8468017578125-1.11920166015625,52.08026123046875,2.374099731445312s43.5457763671875,14.818721771240234,55.7781982421875,25.179996490478516,27.22406005859375,27.60595703125,32.38592529296875,35.009765625c5.16192626953125,7.40380859375,3.283203125,4.690994262695312,3.283203125,4.690994262695312l7.88214111328125-2.695587158203125s-17.50933837890625-29.475013732910156-34.07135009765625-41.125259399414062c-16.56207275390625-11.650245666503906-37.2427978515625-22.606044769287109-47.15252685546875-25.823482513427734s-26.33984375-7.666534423828125-40.729736328125-7.983814239501953-29.23785400390625-.425468444824219-38.58349609375-1.193378448486328-14.9434814453125-1.638980865478516-16.5509033203125-7.084476470947266c0,0-1.8936767578125-4.607303619384766-1.45904541015625-5.931156158447266s2.25677490234375-2.220256805419922,12.43975830078125-1.878545761108398,28.4986572265625.303871154785156,39.638427734375.937870025634766,25.57904052734375,2.618518829345703,38.2716064453125,6.072431564331055c0,0,13.46337890625,4.47117805480957,16.74383544921875,6.043048858642578,3.28045654296875,1.571872711181641,16.9488525390625,8.269397735595703,21.8011474609375,11.071426391601562s11.1397705078125,6.834213256835938,13.73675537109375,8.816135406494141" />+ </g>+ <g id="body-right">+ <path id="vector-2" class="cls-3" d="M583.913818359375,600.78106689453125c.33148193359375-.00927734375,10.3612060546875-.0775146484375,10.3612060546875-.0775146484375l-.13397216796875,33.27691650390625.62420654296875,16.57147216796875c.06732177734375,1.78692626953125.84039306640625,4.014892578125,1.7203369140625,5.88702392578125l67.9659423828125-.1478271484375,14.16046142578125-.786376953125c26.8846435546875-2.70489501953125,52.45819091796875-10.42022705078125,75.3951416015625-24.72900390625,39.83001708984375-24.84716796875,65.690673828125-65.48602294921875,67.454833984375-112.65325927734375l.76715087890625-20.511810302734375.80364990234375-22.856689453125.853759765625-25.684814453125.61236572265625-16.719482421875.29400634765625-8.021209716796875,2.9478759765625-87.9898681640625.82293701171875-19.80706787109375.89056396484375-27.16510009765625.60601806640625-18.8985595703125.85174560546875-25.216812133789062.78204345703125-23.357711791992188.86993408203125-20.76422119140625.4161376953125-16.3153076171875c.6539306640625-25.638214111328125-3.11859130859375-50.490768432617188-12.93817138671875-74.092582702636719,1.79547119140625-2.032379150390625,2.87640380859375-4.587921142578125,2.27679443359375-6.889068603515625-1.2818603515625-4.919319152832031-2.3131103515625-9.855751037597656-4.7532958984375-14.234458923339844-8.3529052734375-14.988441467285156-19.81646728515625-27.258743286132812-33.48992919921875-37.571342468261719-8.53314208984375-12.216461181640625-18.69036865234375-22.406028747558594-31.6846923828125-29.943378448486328-24.56829833984375-14.2508544921875-46.9310302734375-17.689556121826172-75.0335693359375-18.233757019042969-9.86614990234375-.191056251525879-19.57147216796875,1.515433788299561-28.17449951171875,5.717433929443359-6.638916015625,3.242653846740723-8.9385986328125,17.07618522644043-8.73699951171875,15.921897888183594-1.811767578125-3.07000732421875-3.2890625-4.843395233154297-6.5009765625-4.849571228027344l-28.536376953125-.054868698120117c-5.34674072265625-.010280609130859-8.7073974609375,3.153087615966797-8.828369140625,8.563459396362305l.3089599609375,22.419731140136719-12.658203125.151153564453125c-3.48089599609375.04156494140625-5.57562255859375,3.41119384765625-5.6036376953125,6.599441528320312l-.29669189453125,62.729736328125,6.12847900390625,12.89697265625-6.48724365234375,8.206405639648438-.12982177734375,84.234054565429688,6.07183837890625,9.037506103515625-6.634033203125,9.21270751953125-.32489013671875,166.2012939453125,6.4896240234375,12.59228515625-6.90167236328125,7.2412109375-.05499267578125,83.77923583984375,6.46978759765625,6.59967041015625-6.77099609375,23.114013671875,1.320556640625,52.2774658203125c.19720458984375,3.289306640625,2.498291015625,4.45013427734375,6.4066162109375,4.3404541015625l.00006103515625.0001220703125Z" />+ <line id="vector-3" class="cls-4" x1="596.485595703125" y1="656.43902587890625" x2="604.99298095703125" y2="53.959815979003906" />+ <path id="vector-4" class="cls-4" d="M832.98016357421875,184.81396484375s2.64306640625-23.314727783203125-18.94970703125-58.800376892089844c-8.22210693359375-13.51214599609375-27.02545166015625-43.08807373046875-75.59478759765625-63.014865875244141-22.07562255859375-9.057086944580078-77.65069580078125-7.821281433105469-77.65069580078125-7.821281433105469l-55.569580078125.438087463378906-4.47613525390625-33.319240570068359" />+ <path id="vector-5" class="cls-4" d="M633.94482421875,20.639141082763672s.3070068359375,7.776758193969727,2.04058837890625,13.860149383544922c.7750244140625,2.719650268554688,2.52484130859375,5.375648498535156,6.968505859375,6.935218811035156s2.17791748046875.667522430419922,2.17791748046875.667522430419922" />+ <path id="vector-6" class="cls-4" d="M812.15985107421875,113.416969299316406s2.74481201171875,4.389785766601562,4.83026123046875,6.797096252441406,4.86871337890625,4.326057434082031,6.69183349609375,5.398460388183594,3.5252685546875,6.358970642089844,3.5252685546875,6.358970642089844" />+ </g>+ <g id="rail-right">+ <polyline id="vector-7" class="cls-4" points="584.23089599609375 51.718616485595703 585.79669189453125 71.131202697753906 583.913818359375 600.78106689453125" />+ <polyline id="vector-8" class="cls-3" points="585.79669189453125 71.131202697753906 603.46087646484375 71.131202697753906 596.485595703125 50.451766967773438" />+ </g>+ <g id="right-stick">+ <g id="vector-9">+ <path id="_2-2" data-name=" 2-2" class="cls-4" d="M705.06982421875,443.334075927734375c-24.6722412109375,0-44.74456787109375-18.640655517578125-44.74456787109375-41.553131103515625,0-22.912689208984375,20.072265625-41.553375244140625,44.74456787109375-41.553375244140625s44.74456787109375,18.64068603515625,44.74456787109375,41.553375244140625c0,22.9124755859375-20.072265625,41.553131103515625-44.74456787109375,41.553131103515625Z" />+ <ellipse id="_1-2" data-name=" 1-2" class="cls-4" cx="705.06982421875" cy="406.242279052734375" rx="30.0360107421875" ry="26.844696044921875" />+ </g>+ <path id="vector-10" class="cls-4" d="M676.42742919921875,369.52801513671875c-.6351318359375-2.996826171875,12.19488525390625-15.5576171875,27.6614990234375-15.5576171875s28.12469482421875,9.81500244140625,28.12469482421875,15.3594970703125" />+ <ellipse id="vector-11" class="cls-4" cx="705.06982421875" cy="394.63330078125" rx="50.59356689453125" ry="48.76324462890625" />+ <ellipse id="vector-12" class="cls-4" cx="705.06982421875" cy="387.857421875" rx="57.60394287109375" ry="55.520019531250007" />+ </g>+ <g id="plus-button">+ <polygon id="vector-13" class="cls-4" points="653.86798095703125 105.753700256347656 653.86798095703125 115.80059814453125 639.90533447265625 115.80059814453125 639.90533447265625 128.576766967773438 631.24285888671875 128.576766967773438 631.24285888671875 115.80059814453125 618.84246826171875 115.80059814453125 618.84246826171875 105.753700256347656 631.24285888671875 105.753700256347656 631.24285888671875 93.056716918945312 639.90533447265625 93.056716918945312 639.90533447265625 105.753700256347656 653.86798095703125 105.753700256347656" />+ <polyline id="vector-14" class="cls-4" points="618.84246826171875 105.521476745605469 618.84246826171875 102.743934631347656 631.24285888671875 102.743934631347656 631.24285888671875 90.046951293945312 639.90533447265625 90.046951293945312 639.90533447265625 102.743934631347656 653.86798095703125 102.743934631347656 653.86798095703125 105.521476745605469" />+ </g>+ <g id="face-buttons">+ <g id="x-button">+ <ellipse id="vector-15" class="cls-4" cx="707.63134765625" cy="163.347686767578125" rx="24.080322265625" ry="21.807891845703125" />+ <path id="vector-16" class="cls-4" d="M707.487548828125,185.236251831054688c-14.542236328125,0-26.33099365234375-10.676300048828125-26.33099365234375-23.84619140625s11.788818359375-23.846176147460938,26.33099365234375-23.846176147460938c14.542236328125,0,26.33099365234375,10.676300048828125,26.33099365234375,23.846176147460938s-11.788818359375,23.84619140625-26.33099365234375,23.84619140625" />+ <path id="X-2" class="cls-1" d="M714.6466064453125,151.35931396484375l-7.02764892578125,10.148468017578125-5.8631591796875-9.56622314453125h-3.49346923828125l6.4395751953125,12.541488647460938-.58221435546875.582244873046875-7.6331787109375,10.165939331054688h4.657958984375l5.85736083984375-7.761276245117188,5.886474609375,7.761276245117188h4.07568359375l-7.03350830078125-10.7481689453125,8.82098388671875-13.123733520507812h-4.10479736328125l-.00006103515625-.000015258789062Z" />+ </g>+ <g id="y-button">+ <ellipse id="vector-17" class="cls-4" cx="651.97607421875" cy="211.659957885742188" rx="24.080322265625" ry="21.807891845703125" />+ <ellipse id="vector-18" class="cls-4" cx="651.83221435546875" cy="209.702316284179688" rx="26.33099365234375" ry="23.84619140625" />+ <path id="Y-2" class="cls-1" d="M646.2939453125,199.981460571289062l5.43756103515625,12.181869506835938,8.14825439453125-12.732650756835938h3.77984619140625l-10.3243408203125,17.165863037109375v7.754058837890625h-3.77984619140625v-8.31024169921875l-7.08453369140625-16.05889892578125h3.82305908203125Z" />+ </g>+ <g id="b-button">+ <ellipse id="vector-19" class="cls-4" cx="706.5601806640625" cy="260.40643310546875" rx="24.080322265625" ry="21.807891845703125" />+ <path id="vector-20" class="cls-4" d="M706.4163818359375,282.29498291015625c-14.542236328125,0-26.33099365234375-10.676300048828125-26.33099365234375-23.84619140625,0-13.169876098632812,11.788818359375-23.84619140625,26.33099365234375-23.84619140625,14.542236328125,0,26.33099365234375,10.676300048828125,26.33099365234375,23.84619140625,0,13.16986083984375-11.788818359375,23.84619140625-26.33099365234375,23.84619140625" />+ <path id="B-2" class="cls-1" d="M711.25262451171875,259.27783203125s5.52874755859375-4.249557495117188,2.71014404296875-9.68072509765625c-1.6640625-1.73992919921875-6.27679443359375-1.729095458984375-14.67828369140625-.878097534179688l-.51495361328125,23.795333862304688s6.55859375.856414794921875,11.45318603515625-1.669464111328125,8.57501220703125-8.276885986328125,1.0299072265625-11.567047119140625ZM703.62078857421875,252.610809326171875c7.10064697265625-1.084075927734375,6.57489013671875,2.119354248046875,6.57489013671875,2.119354248046875,0,5.268585205078125-7.08984375,3.886383056640625-7.08984375,3.886383056640625l.51495361328125-6.005752563476562v.000015258789062ZM711.29058837890625,265.28900146484375c-.85101318359375,3.864715576171875-8.72674560546875,4.4447021484375-8.72674560546875,4.4447021484375l.54205322265625-7.225311279296875c8.54791259765625-1.22503662109375,8.1846923828125,2.780609130859375,8.1846923828125,2.780609130859375v.000030517578125-.000030517578125Z" />+ </g>+ <g id="a-button">+ <ellipse id="vector-21" class="cls-4" cx="761.70849609375" cy="210.971038818359375" rx="24.080322265625" ry="21.807891845703125" />+ <path id="vector-22" class="cls-4" d="M761.564697265625,232.859588623046875c-14.542236328125,0-26.33099365234375-10.676300048828125-26.33099365234375-23.84619140625,0-13.169876098632812,11.788818359375-23.84619140625,26.33099365234375-23.84619140625,14.542236328125,0,26.33099365234375,10.676300048828125,26.33099365234375,23.84619140625,0,13.169876098632812-11.788818359375,23.84619140625-26.33099365234375,23.84619140625" />+ <path id="A-2" class="cls-1" d="M760.3472900390625,199.314315795898438l-9.81732177734375,23.906326293945312h3.2525634765625s1.1275634765625-2.439422607421875,2.5640869140625-5.5618896484375h10.55999755859375l1.62628173828125,4.445175170898438h4.33673095703125l-8.18023681640625-22.767929077148438-4.3421630859375-.021682739257812h.00006103515625ZM765.96337890625,214.791091918945312h-8.25067138671875v-.048782348632812l4.808349609375-10.408203125,3.3609619140625,10.272674560546875c.0433349609375.048782348632812.05963134765625.108413696289062.081298828125.184310913085938h.00006103515625Z" />+ </g>+ </g>+ <g id="home-button">+ <path id="Vector-34" class="cls-5" d="M668.8114013671875,524.11053466796875c13.97686767578125-3.59539794921875,22.72589111328125-16.91119384765625,19.56219482421875-29.741302490234375s-17.08660888671875-20.304229736328125-31.02972412109375-16.708831787109375-22.7191162109375,16.917938232421875-19.56219482421875,29.741302490234375c3.15692138671875,12.823333740234375,17.0595703125,20.304229736328125,31.02972412109375,16.708831787109375Z" />+ <path id="Vector-35" class="cls-5" d="M669.000244140625,523.46295166015625c12.6884765625-3.2716064453125,20.6280517578125-15.40692138671875,17.7274169921875-27.103759765625-2.90057373046875-11.69683837890625-15.51483154296875-18.536865234375-28.237060546875-15.2652587890625-12.72216796875,3.2716064453125-20.6280517578125,15.400177001953125-17.7274169921875,27.103759765625,2.90057373046875,11.70361328125,15.54180908203125,18.5301513671875,28.237060546875,15.2652587890625Z" />+ <path id="vector-23" class="cls-1" d="M679.10211181640625,499.706512451171875l-5.90899658203125-4.818145751953125-9.313232421875-6.4703369140625-13.738525390625,9.814178466796875c-.45452880859375.3245849609375-1.31646728515625,1.6806640625-1.3841552734375,2.11065673828125-.07220458984375.45733642578125.2491455078125.784332275390625.6807861328125.802398681640625l2.40435791015625.10015869140625.349853515625,12.3507080078125,23.31500244140625.22064208984375.322509765625-12.37469482421875,3.17315673828125-.2691650390625c.32220458984375-.027374267578125.15740966796875-.703643798828125.09930419921875-1.466400146484375h-.00006103515625ZM658.814697265625,508.14105224609375l-.07562255859375-7.823455810546875,9.9866943359375.041046142578125.29852294921875,7.838531494140625-10.2095947265625-.05615234375v.000030517578125Z" />+ </g>+ <g id="l-button">+ <path id="vector-24" class="cls-4" d="M409.7393798828125,26.082656860351562s1.222808837890625,7.788951873779297-.839141845703125,11.957588195800781-10.84326171875,8.184471130371094-27.532501220703125,7.847846984863281-38.8468017578125-1.11920166015625-52.080291748046875,2.374099731445312-43.545745849609375,14.818717956542969-55.778167724609375,25.17999267578125-27.224044799804688,27.60595703125-32.385940551757812,35.009765625-3.283172607421875,4.690994262695312-3.283172607421875,4.690994262695312l-7.88214111328125-2.695587158203125s17.509307861328125-29.475013732910156,34.071365356445312-41.125259399414062c16.56207275390625-11.650245666503906,37.2427978515625-22.606044769287109,47.15252685546875-25.823482513427734s26.339874267578125-7.666534423828125,40.729736328125-7.983814239501953c14.389892578125-.317279815673828,29.23785400390625-.425468444824219,38.58349609375-1.193378448486328s14.9434814453125-1.638980865478516,16.5509033203125-7.084476470947266c0,0,1.893707275390625-4.607303619384766,1.459075927734375-5.931156158447266s-2.256805419921875-2.220256805419922-12.439788818359375-1.878545761108398-28.498687744140625.303871154785156-39.638458251953125.937870025634766-25.57904052734375,2.618518829345703-38.2716064453125,6.072431564331055c0,0-13.463409423828125,4.47117805480957-16.74383544921875,6.043048858642578-3.280426025390625,1.571868896484375-16.9488525390625,8.269397735595703-21.8011474609375,11.071426391601562s-11.1397705078125,6.834213256835938-13.736785888671875,8.816135406494141" />+ </g>+ <g id="body-left">+ <path id="vector-25" class="cls-3" d="M466.086151123046875,600.507080078125c-.331451416015625-.00927734375-10.361175537109375-.0775146484375-10.361175537109375-.0775146484375l.13397216796875,33.27691650390625-.624176025390625,16.57147216796875c-.06732177734375,1.78692626953125-.84039306640625,4.014892578125-1.7203369140625,5.88702392578125l-67.965972900390625-.1478271484375-14.16046142578125-.786376953125c-26.8846435546875-2.70489501953125-52.45819091796875-10.42022705078125-75.3951416015625-24.72900390625-39.83001708984375-24.84716796875-65.690689086914062-65.48602294921875-67.454833984375-112.65325927734375l-.767181396484375-20.511810302734375-.80364990234375-22.856689453125-.853790283203125-25.684814453125-.612350463867188-16.719482421875-.293975830078125-8.021209716796875-2.947860717773438-87.9898681640625-.822921752929688-19.80706787109375-.890579223632812-27.16510009765625-.60601806640625-18.8985595703125-.85174560546875-25.216812133789062-.782028198242188-23.357711791992188-.869918823242188-20.76422119140625-.416152954101562-16.3153076171875c-.653961181640625-25.638214111328125,3.11859130859375-50.490768432617188,12.938186645507812-74.092582702636719-1.795455932617188-2.032379150390625-2.876419067382812-4.587921142578125-2.276809692382812-6.889068603515625,1.281829833984375-4.919319152832031,2.313095092773438-9.855751037597656,4.7532958984375-14.234458923339844,8.352890014648438-14.988441467285156,19.816482543945312-27.258743286132812,33.489913940429688-37.571342468261719,8.53314208984375-12.216461181640625,18.690399169921875-22.406028747558594,31.6846923828125-29.943378448486328,24.568328857421875-14.2508544921875,46.931060791015625-17.689556121826172,75.033599853515625-18.233757019042969,9.866119384765625-.191056251525879,19.571441650390625,1.515433788299561,28.174468994140625,5.717433929443359,6.638916015625,3.242653846740723,8.9385986328125,17.07618522644043,8.736968994140625,15.921897888183594,1.811798095703125-3.07000732421875,3.2890625-4.843395233154297,6.501007080078125-4.849571228027344l28.536346435546875-.054868698120117c5.346771240234375-.010280609130859,8.7073974609375,3.153087615966797,8.828338623046875,8.563459396362305l-.308990478515625,22.419731140136719,12.658233642578125.151153564453125c3.48089599609375.04156494140625,5.575653076171875,3.41119384765625,5.603607177734375,6.599441528320312l.29669189453125,62.729736328125-6.12847900390625,12.89697265625,6.48724365234375,8.206405639648438.12982177734375,84.234054565429688-6.071807861328125,9.037506103515625,6.634033203125,9.21270751953125.32489013671875,166.2012939453125-6.4896240234375,12.59228515625,6.90167236328125,7.2412109375.055023193359375,83.77923583984375-6.469757080078125,6.59967041015625,6.77099609375,23.114013671875-1.320556640625,52.2774658203125c-.19720458984375,3.289306640625-2.498291015625,4.45013427734375-6.406646728515625,4.3404541015625l-.00006103515625.0001220703125Z" />+ <line id="vector-26" class="cls-4" x1="453.514434814453125" y1="656.16497802734375" x2="445.006988525390625" y2="53.685787200927734" />+ <path id="vector-27" class="cls-4" d="M217.01983642578125,184.539932250976562s-2.643051147460938-23.314727783203125,18.949722290039062-58.800376892089844c8.22210693359375-13.51214599609375,27.025436401367188-43.08807373046875,75.594772338867188-63.014865875244141,22.07562255859375-9.057086944580078,77.65069580078125-7.821281433105469,77.65069580078125-7.821281433105469l55.569549560546875.438087463378906,4.47613525390625-33.319240570068359" />+ <path id="vector-28" class="cls-4" d="M416.05517578125,20.365110397338867s-.3070068359375,7.776758193969727-2.04058837890625,13.860151290893555c-.7750244140625,2.719654083251953-2.52484130859375,5.375648498535156-6.968475341796875,6.935218811035156-4.44366455078125,1.5595703125-2.177947998046875.667522430419922-2.177947998046875.667522430419922" />+ <path id="vector-29" class="cls-4" d="M237.840179443359375,113.1429443359375s-2.744796752929688,4.389785766601562-4.830245971679688,6.797096252441406-4.868728637695312,4.326057434082031-6.691818237304688,5.398460388183594-3.525283813476562,6.358963012695312-3.525283813476562,6.358963012695312" />+ </g>+ <g id="rail-left">+ <polyline id="vector-30" class="cls-4" points="465.769134521484375 51.444587707519531 464.20330810546875 70.857170104980469 466.086151123046875 600.507080078125" />+ <polyline id="vector-31" class="cls-3" points="464.20330810546875 70.857170104980469 446.53912353515625 70.857170104980469 453.514434814453125 50.177738189697266" />+ </g>+ <g id="left-stick">+ <g id="vector-9-2">+ <path id="_2-2-2" data-name=" 2-2-2" class="cls-4" d="M343.099822998046875,265.0296630859375c24.672271728515625,0,44.744537353515625-18.640655517578125,44.744537353515625-41.553131103515625,0-22.912704467773438-20.072265625-41.553375244140625-44.744537353515625-41.553375244140625s-44.744537353515625,18.640670776367188-44.744537353515625,41.553375244140625c0,22.912490844726562,20.072265625,41.553131103515625,44.744537353515625,41.553131103515625Z" />+ <ellipse id="_1-2-2" data-name=" 1-2-2" class="cls-4" cx="343.099822998046875" cy="227.937896728515625" rx="30.036041259765621" ry="26.844680786132812" />+ </g>+ <path id="vector-10-2" class="cls-4" d="M371.74224853515625,191.223617553710938c.6351318359375-2.996841430664062-12.194915771484375-15.5576171875-27.6614990234375-15.5576171875s-28.12469482421875,9.81500244140625-28.12469482421875,15.3594970703125" />+ <ellipse id="vector-11-2" class="cls-4" cx="343.099822998046875" cy="216.328903198242188" rx="50.59356689453125" ry="48.763259887695312" />+ <ellipse id="vector-12-2" class="cls-4" cx="343.099822998046875" cy="209.553024291992188" rx="57.60394287109375" ry="55.520004272460938" />+ </g>+ <g id="directional-buttons">+ <g id="directional-up">+ <ellipse id="vector-32" class="cls-4" cx="345.31011962890625" cy="338.752044677734375" rx="24.080322265625" ry="21.807891845703125" />+ <path id="vector-33" class="cls-4" d="M345.45391845703125,360.640594482421875c14.542236328125,0,26.330963134765625-10.676300048828125,26.330963134765625-23.84619140625s-11.788787841796875-23.84619140625-26.330963134765625-23.84619140625c-14.542236328125,0-26.330963134765625,10.676300048828125-26.330963134765625,23.84619140625,0,13.16986083984375,11.788787841796875,23.84619140625,26.330963134765625,23.84619140625" />+ <polygon id="vector-34" class="cls-1" points="345.240631103515625 329.26300048828125 356.854522705078125 346.93865966796875 333.62677001953125 346.93865966796875 345.240631103515625 329.26300048828125" />+ </g>+ <g id="directional-right">+ <ellipse id="vector-35" class="cls-4" cx="400.965423583984375" cy="387.064300537109375" rx="24.080322265625" ry="21.807891845703125" />+ <ellipse id="vector-36" class="cls-4" cx="401.1092529296875" cy="385.106658935546875" rx="26.330963134765625" ry="23.84619140625" />+ <polygon id="vector-37" class="cls-1" points="411.76416015625 387.701904296875 394.0885009765625 376.088043212890625 394.0885009765625 399.3157958984375 411.76416015625 387.701904296875" />+ </g>+ <g id="directional-down">+ <ellipse id="vector-38" class="cls-4" cx="346.381317138671875" cy="435.810760498046875" rx="24.080322265625" ry="21.807891845703125" />+ <path id="vector-39" class="cls-4" d="M346.525115966796875,457.699310302734375c14.542236328125,0,26.330963134765625-10.676300048828125,26.330963134765625-23.84619140625,0-13.16986083984375-11.788787841796875-23.84619140625-26.330963134765625-23.84619140625-14.542236328125,0-26.330963134765625,10.676300048828125-26.330963134765625,23.84619140625,0,13.16986083984375,11.788787841796875,23.84619140625,26.330963134765625,23.84619140625" />+ <polygon id="vector-40" class="cls-1" points="346.829193115234375 446.746795654296875 358.44305419921875 429.0711669921875 335.21533203125 429.0711669921875 346.829193115234375 446.746795654296875" />+ </g>+ <g id="directional-left">+ <ellipse id="vector-41" class="cls-4" cx="291.233001708984375" cy="386.375396728515625" rx="24.080322265625" ry="21.807891845703125" />+ <path id="vector-42" class="cls-4" d="M291.376800537109375,408.263946533203125c14.542236328125,0,26.330963134765625-10.676300048828125,26.330963134765625-23.84619140625,0-13.16986083984375-11.788787841796875-23.84619140625-26.330963134765625-23.84619140625-14.542236328125,0-26.330963134765625,10.676300048828125-26.330963134765625,23.84619140625,0,13.16986083984375,11.788787841796875,23.84619140625,26.330963134765625,23.84619140625" />+ <polygon id="vector-43" class="cls-1" points="280.67962646484375 387.064300537109375 298.35528564453125 398.67816162109375 298.35528564453125 375.450408935546875 280.67962646484375 387.064300537109375" />+ </g>+ </g>+ <g id="capture-button" data-name="capture button">+ <path id="vector-44" class="cls-4" d="M373.988555908203125,519.715576171875h28.132171630859375c2.965789794921875,0,5.370025634765625-2.40423583984375,5.370025634765625-5.3699951171875v-25.174774169921875c0-2.965789794921875-2.40423583984375-5.370025634765625-5.370025634765625-5.370025634765625h-28.132171630859375c-2.965789794921875,0-5.370025634765625,2.40423583984375-5.370025634765625,5.370025634765625v25.174774169921875c0,2.96575927734375,2.40423583984375,5.3699951171875,5.370025634765625,5.3699951171875ZM373.88507080078125,519.72918701171875h28.132171630859375c2.965789794921875,0,5.370025634765625-2.40423583984375,5.370025634765625-5.3699951171875v-28.132171630859375c0-2.965789794921875-2.40423583984375-5.370025634765625-5.370025634765625-5.370025634765625h-28.132171630859375c-2.965789794921875,0-5.370025634765625,2.40423583984375-5.370025634765625,5.370025634765625v28.132171630859375c0,2.96575927734375,2.40423583984375,5.3699951171875,5.370025634765625,5.3699951171875Z" />+ <ellipse id="vector-45" class="cls-2" cx="388.69573974609375" cy="501.100578308105469" rx="12.424316406252622" ry="11.743293762207031" />+ </g>+ <g id="minus-button">+ <rect id="vector-46" class="cls-4" x="396.115234375" y="105.406425476074219" width="35.025482177734375" height="10.046897888183594" />+ <rect id="vector-47" class="cls-4" x="396.115234375" y="102.326187133789062" width="35.025482177734375" height="13.12713623046875" />+ </g>+ <g id="press">+ <g id="press-left-stick">+ <path id="_2-2-2-2" data-name=" 2-2-2" class="cls-6" d="M342.142269192011554,265.0296630859375c24.672271728515625,0,44.744537353515625-18.640655517578125,44.744537353515625-41.553131103515625,0-22.912704467773438-20.072265625-41.553375244140625-44.744537353515625-41.553375244140625s-44.744537353515625,18.640670776367188-44.744537353515625,41.553375244140625c0,22.912490844726562,20.072265625,41.553131103515625,44.744537353515625,41.553131103515625Z" />+ </g>+ <g id="press-directional-buttons">+ <g id="press-directional-up" data-name="up">+ <ellipse id="vector-32-2" data-name="vector-32" class="cls-6" cx="345.45391845703125" cy="338.752044677734375" rx="24.080322265625" ry="21.807891845703125" />+ </g>+ <g id="press-directional-right" data-name="right">+ <ellipse id="vector-32-3" data-name="vector-32" class="cls-6" cx="401.1092529296875" cy="387.064300537109375" rx="24.080322265625" ry="21.807891845703125" />+ </g>+ <g id="press-directional-down" data-name="down">+ <ellipse id="vector-32-4" data-name="vector-32" class="cls-6" cx="346.381317138671875" cy="435.810760498046875" rx="24.080322265625" ry="21.807891845703125" />+ </g>+ <g id="press-directional-left" data-name="left">+ <ellipse id="vector-32-5" data-name="vector-32" class="cls-6" cx="291.233001708984375" cy="386.375396728515625" rx="24.080322265625" ry="21.807891845703125" />+ </g>+ </g>+ <g id="press-right-stick">+ <path id="_2-2-2-3" data-name=" 2-2-2" class="cls-6" d="M706.592700900760974,360.154632568359375c-24.672271728515625,0-44.744537353515625,18.640655517578125-44.744537353515625,41.553131103515625,0,22.912704467773438,20.072265625,41.553375244140625,44.744537353515625,41.553375244140625,24.672271728517444,0,44.744537353517444-18.640670776367188,44.744537353517444-41.553375244140625-.000000000001819-22.912490844726562-20.072265625-41.553131103515625-44.744537353517444-41.553131103515625Z" />+ </g>+ <g id="press-face-buttons">+ <g id="press-b-button" data-name="B">+ <ellipse id="vector-32-6" data-name="vector-32" class="cls-6" cx="707.133590698242188" cy="259.986724099554522" rx="24.080322265625" ry="21.807891845703125" />+ </g>+ <g id="press-y-button" data-name="Y">+ <ellipse id="vector-32-7" data-name="vector-32" class="cls-6" cx="651.478256225585938" cy="211.674468240179522" rx="24.080322265625" ry="21.807891845703125" />+ </g>+ <g id="press-x-button" data-name="X">+ <ellipse id="vector-32-8" data-name="vector-32" class="cls-6" cx="707.487548828125" cy="163.295272827148438" rx="24.080322265625" ry="21.807891845703125" />+ </g>+ <g id="press-a-button" data-name="A">+ <ellipse id="vector-32-9" data-name="vector-32" class="cls-6" cx="761.838043212890625" cy="210.971038818359375" rx="24.080322265625" ry="21.807891845703125" />+ </g>+ </g>+ <g id="press-capture-button" data-name="press-capture button">+ <rect id="vector-48" data-name="vector" class="cls-6" x="368.6185302734375" y="483.80078125" width="38.872222900390625" height="35.914794921875" rx="5.3699951171875" ry="5.3699951171875" />+ </g>+ <g id="press-home-button">+ <ellipse id="vector-49" data-name="vector" class="cls-6" cx="664.592118231203131" cy="502.50577603699594" rx="24.428219707175231" ry="22.229517617710826" />+ </g>+ <g id="press-plus-button">+ <polygon id="vector-13-2" data-name="vector-13" class="cls-6" points="653.86798095703125 105.753700256347656 653.86798095703125 115.80059814453125 639.90533447265625 115.80059814453125 639.90533447265625 128.576766967773438 631.24285888671875 128.576766967773438 631.24285888671875 115.80059814453125 618.84246826171875 115.80059814453125 618.84246826171875 105.753700256347656 631.24285888671875 105.753700256347656 631.24285888671875 93.056716918945312 639.90533447265625 93.056716918945312 639.90533447265625 105.753700256347656 653.86798095703125 105.753700256347656" />+ </g>+ <g id="press-minus-button">+ <rect id="vector-46-2" data-name="vector-46" class="cls-6" x="396.115234375" y="105.406425476074219" width="35.025482177734375" height="10.046897888183594" />+ </g>+ <g id="press-l-button">+ <path id="vector-50" data-name="vector" class="cls-6" d="M407.739545845989596,20.365110397338867h-20.846708516245599s-41.080035771534313.148488171624194-58.615693327878034,4.242564315880372c-15.64083981771455,3.651690218521253-31.507264208347806,9.990997615739616-38.95059978781228,13.839030090402957s-26.054756539186201,16.338220597663167-29.669407113890884,19.808285149378207-15.320506395637494,12.422953090608644-21.816957656803424,22.844591632128868-7.882156372070312,16.771978666626637-7.882156372070312,16.771978666626637c0,0-2.1676361452528,4.601130908356936-1.820638982545461,7.53486522431831s1.820638982545461,2.441570361865161,1.820638982545461,2.441570361865161l1.938597615146136,2.581878582226636,5.942988800533385,2.713870930633675s4.661988470814322-8.362281364424234,11.957324571390018-17.084646118587443c11.239097721329927-13.437559076322941,26.29760123773849-25.444969588180356,36.385057840574518-31.259856500083515,13.309876533749957-7.672442113246689,41.547060983723895-16.844552882897915,48.289023591298246-17.961680407990571,14.283372501537997-2.366721606359533,41.999358287371251-.738245188342262,43.451353465749889-1.022193791219252s18.582082734328651.490721923085403,23.980441220476678-2.617115764476694,7.583727193341474-6.170041463888992,7.61715990896937-7.617343995278134c.219409797385197-9.49825191281252-1.780424239437707-15.215798375825216-1.780424239437707-15.215798375825216Z" />+ </g>+ <g id="press-zl-button">+ <path id="vector-51" data-name="vector" class="cls-6" d="M406.791973940576099,18.701564106316255s-32.884973898887438.41952629676598-42.29649841540504.65265841974815-23.25200174668953,1.340370301395524-35.431621709240972,3.776294293906176-26.02009719272337,8.093023753965099-26.02009719272337,8.093023753965099c0,0-22.144763568276176,10.840749096910258-27.570230642502793,13.941015996469105s-6.089809981274811,3.875333624448103-6.089809981274811,3.875333624448103c0,0,2.878819263875812-4.282866736442884,5.204019438544492-6.957919444321305s14.172648683696025-13.636710674174537,14.172648683696025-13.636710674174537c0,0,15.720949348570684-10.694337345660642,21.276217271381029-13.026996786241398s24.359610164309743-8.252019746812948,30.333176464600911-9.158282410043284,20.453294438808371-2.414096000135942,27.32766876063215-2.555248214011954,17.392659025382272,1.045630392241947,20.825097378465216,1.931420934973175,10.075867423565796,3.432438353082944,10.075867423565796,3.432438353082944c0,0,5.335266483304622,2.746951851491758,5.692190978976214,3.231488235036522s2.39064772344409,2.304702657032976,2.501371541285152,6.401483917163205Z" />+ </g>+ <g id="press-r-button">+ <path id="vector-52" data-name="vector" class="cls-6" d="M642.550577527959831,20.506790349365474h20.846708516244689s41.080035771534313.148488171624194,58.615693327878034,4.242564315880372c15.640839817713641,3.651690218521253,31.507264208348715,9.990997615739616,38.950599787813189,13.839030090402957,7.443335579462655,3.848032474663341,26.054756539184382,16.338220597663167,29.669407113889974,19.808285149378207s15.320506395637494,12.422953090608644,21.816957656803424,22.844591632128868,7.882156372070312,16.771978666626637,7.882156372070312,16.771978666626637c0,0,2.16763614525189,4.601130908356936,1.82063898254637,7.53486522431831-.346997162709158,2.933734315961374-1.82063898254637,2.441570361865161-1.82063898254637,2.441570361865161l-1.938597615146136,2.581878582226636-5.942988800532476,2.713870930633675s-4.661988470816141-8.362281364424234-11.957324571390927-17.084646118587443c-11.239097721329017-13.437559076322941-26.29760123773849-25.444969588180356-36.385057840574518-31.259856500083515-13.309876533749048-7.672442113246689-41.547060983724805-16.844552882897915-48.289023591298246-17.961680407990571-14.283372501538906-2.366721606359533-41.999358287370342-.738245188342262-43.451353465750799-1.022193791219252-1.451995178376819-.28394860287699-18.582082734326832.490721923085403-23.980441220475768-2.617115764476694s-7.583727193341474-6.170041463888992-7.617159908968461-7.617343995278134c-.219409797386106-9.49825191281252,1.780424239437707-15.215798375825216,1.780424239437707-15.215798375825216Z" />+ </g>+ <g id="press-zr-button">+ <path id="vector-53" data-name="vector" class="cls-6" d="M643.395165675272438,19.20750447663886s32.987957656987419.055265878469982,42.399482173505021.288398001452151,23.252001746690439,1.340370301395524,35.431621709240062,3.776294293906176c12.179619962553261,2.435923992510652,26.020097192724279,8.093023753965099,26.020097192724279,8.093023753965099,0,0,21.682881916236511,10.731248547886935,27.108348990463128,13.831515447445781s6.691426836920073,4.602580432841933,6.691426836920073,4.602580432841933c.44537353515625-.1563720703125-2.7943115234375-4.9793701171875-5.34375-7.57568359375-2.4832763671875-2.5289306640625-14.172653325846113-13.636692784116349-14.172653325846113-13.636692784116349,0,0-15.720949348569775-10.694337345660642-21.276217271381029-13.026996786241398s-24.359610164310652-8.252019746812948-30.333176464600911-9.158282410043284-20.453294438808371-2.414096000135942-27.32766876063215-2.555248214011954-17.392659025381363,1.045630392241947-20.825097378465216,1.931420934973175-10.075867423565796,3.432438353082944-10.075867423565796,3.432438353082944c0,0-5.335266483303712,2.746951851491758-5.692190978976214,3.231488235036522s-2.493631481544071,2.668963075328975-2.604355299385134,6.765744335459203Z" />+ </g>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/docs/design-rules/gamepads/ultimate-c1/controller-hit.png b/docs/design-rules/gamepads/ultimate-c1/controller-hit.pngnew file mode 100644index 0000000000..0fe78ef7e6Binary files /dev/null and b/docs/design-rules/gamepads/ultimate-c1/controller-hit.png differdiff --git a/docs/design-rules/gamepads/ultimate-c1/controller.md b/docs/design-rules/gamepads/ultimate-c1/controller.mdnew file mode 100644index 0000000000..1867b0c753--- /dev/null+++ b/docs/design-rules/gamepads/ultimate-c1/controller.md@@ -0,0 +1,37 @@+# Ultimate C Xbox 手柄按键表++该目录与参考 XBOX 文件夹保持四文件结构。SVG 中的 `press-*` 图层用于交互热区;`controller.png` 为隐藏 press 图层的基础图,`controller-hit.png` 为带热区和标注的调试图。++- 画布 / 显示:`viewBox="0 0 1050 660"`+- PNG:`controller.png` 与 `controller-hit.png` 均为 `2100 × 2100`、RGBA。+- 热区样式:填充 `#a8c1f7`,边界 `#24366b`,标注 `#1d4ed8`。+- 摇杆 `moveRadius`:14。++| id | center | hit [x, y, w, h] | round | press | notes |+|---|---:|---:|---|---|---|+| `lt` | `191.0, 49.0` | `115.4, 16.3, 151.1, 65.3` | false | `#press-lt` | 左扳机 |+| `rt` | `859.0, 48.6` | `783.4, 15.9, 151.1, 65.3` | false | `#press-rt` | 右扳机 |+| `lb` | `188.0, 99.6` | `105.6, 59.3, 164.2, 80.5` | false | `#press-lb` | 左肩键 |+| `rb` | `861.9, 99.6` | `779.8, 59.3, 164.2, 80.5` | false | `#press-rb` | 右肩键 |+| `guide` | `525.2, 194.1` | `495.8, 168.6, 58.4, 52.7` | false | `#press-guide` | Xbox 徽标键 |+| `view` | `450.8, 268.9` | `427.7, 248.6, 47.5, 44.3` | true | `#press-view` | 左侧圆键 |+| `menu` | `599.6, 268.9` | `575.6, 248.6, 47.9, 43.8` | true | `#press-menu` | 右侧圆键 |+| `share` | `525.0, 270.8` | `500.9, 249.1, 48.3, 43.4` | false | `#press-share` | 中央分享键 |+| `y` | `845.5, 220.3` | `813.8, 188.7, 63.5, 63.1` | true | `#press-face/Y` | 面键 Y |+| `x` | `774.0, 272.1` | `742.3, 240.6, 63.5, 63.1` | true | `#press-face/X` | 面键 X |+| `b` | `910.0, 272.1` | `878.2, 240.6, 63.5, 63.1` | true | `#press-face/B` | 面键 B |+| `a` | `840.4, 324.2` | `808.7, 292.6, 63.5, 63.1` | true | `#press-face/A` | 面键 A |+| `left` | `209.1, 288.5` | `153.6, 233.4, 111.0, 110.1` | true | `#press-stick-left` | 左摇杆按下 |+| `right` | `687.8, 424.5` | `631.0, 368.4, 113.5, 112.2` | true | `#press-stick-right` | 右摇杆按下 |+| `dpadUp` | `372.1, 356.0` | `349.2, 335.7, 46.0, 40.6` | false | `#press-dpad/top` | 十字键上 |+| `dpadDown` | `372.1, 452.9` | `349.2, 432.0, 46.0, 41.9` | false | `#press-dpad/bottom` | 十字键下 |+| `dpadLeft` | `318.0, 404.9` | `294.4, 382.5, 49.2, 44.8` | false | `#press-dpad/left` | 十字键左 |+| `dpadRight` | `426.1, 404.9` | `402.2, 382.5, 47.7, 44.8` | false | `#press-dpad/right` | 十字键右 |+| `pairing` | `438.3, 92.0` | `425.9, 86.7, 24.8, 8.6` | false | `#press-pairing` | 配对键 / 指示灯 |++## 摇杆额外参数++| id | well [x, y, w, h] | moveRadius |+|---|---:|---:|+| `left` | `135.3, 202.0, 146.5, 141.7` | 14 |+| `right` | `611.8, 334.7, 150.8, 145.9` | 14 |diff --git a/docs/design-rules/gamepads/ultimate-c1/controller.png b/docs/design-rules/gamepads/ultimate-c1/controller.pngnew file mode 100644index 0000000000..81444d1857Binary files /dev/null and b/docs/design-rules/gamepads/ultimate-c1/controller.png differdiff --git a/docs/design-rules/gamepads/ultimate-c1/controller.svg b/docs/design-rules/gamepads/ultimate-c1/controller.svgnew file mode 100644index 0000000000..f9c961f03a--- /dev/null+++ b/docs/design-rules/gamepads/ultimate-c1/controller.svg@@ -0,0 +1,187 @@+<?xml version='1.0' encoding='utf-8'?>+<svg xmlns="http://www.w3.org/2000/svg" id="controller" data-name="Ultimate C Xbox controller" viewBox="0 0 1050 660">+ <title>Ultimate C Xbox gamepad</title><defs>+ <style>+ .cls-1 {+ fill: #231815;+ }++ .cls-2 {+ stroke-width: 4px;+ }++ .cls-2, .cls-3, .cls-4 {+ stroke-miterlimit: 10;+ }++ .cls-2, .cls-3, .cls-4, .cls-5 {+ fill: none;+ stroke: #231815;+ }++ .cls-6 {+ isolation: isolate;+ opacity: .079999998211861;+ }++ .cls-3 {+ stroke-width: 3px;+ }++ .cls-4, .cls-5 {+ stroke-width: 2px;+ }++ .cls-7 {+ opacity: .08;+ }+ </style>+ </defs>+ <g id="face">+ <g id="B">+ <path id="Vector-28" class="cls-5" d="M917.50347900390625,302.59051513671875c17.016845703125-4.376007080078125,27.4608154296875-21.57000732421875,23.25311279296875-38.40081787109375-4.2398681640625-16.736282348632812-21.244384765625-26.86663818359375-37.98065185546875-22.62677001953125-.12847900390625.03253173828125-.2567138671875.065887451171875-.384765625.100067138671875-17.016845703125,4.376007080078125-27.4608154296875,21.57000732421875-23.25311279296875,38.40081787109375,4.2398681640625,16.73626708984375,21.244384765625,26.86663818359375,37.98065185546875,22.62677001953125.12847900390625-.032562255859375.2567138671875-.06591796875.384765625-.100067138671875Z" />+ <path id="Vector-29" class="cls-5" d="M917.01629638671875,302.413330078125c15.94500732421875-4.101409912109375,25.68914794921875-20.19696044921875,21.764892578125-35.94708251953125-3.95172119140625-15.653533935546875-19.844970703125-25.139694213867188-35.49853515625-21.18792724609375-.13494873046875.034072875976562-.26971435546875.069107055664062-.4041748046875.105117797851562-15.94500732421875,4.101409912109375-25.68914794921875,20.188095092773438-21.764892578125,35.938186645507812,3.9471435546875,15.654693603515625,19.837646484375,25.1455078125,35.4923095703125,21.1983642578125.1370849609375-.034576416015625.27386474609375-.07012939453125.410400390625-.106658935546875Z" />+ <path id="B-2" class="cls-1" d="M919.469970703125,270.7625732421875s9.0355224609375-6.944915771484375,4.42913818359375-15.820953369140625c-2.719482421875-2.843521118164062-10.2579345703125-2.8258056640625-23.98834228515625-1.435043334960938l-.841552734375,38.888015747070312s10.71856689453125,1.39959716796875,18.7176513671875-2.728363037109375,14.013916015625-13.526702880859375,1.68310546875-18.9036865234375v.000030517578125ZM906.9974365234375,259.866851806640625c11.6043701171875-1.77166748046875,10.7451171875,3.463592529296875,10.7451171875,3.463592529296875,0,8.61029052734375-11.586669921875,6.3514404296875-11.586669921875,6.3514404296875l.841552734375-9.815032958984375ZM919.531982421875,280.58648681640625c-1.3907470703125,6.31597900390625-14.26190185546875,7.263824462890625-14.26190185546875,7.263824462890625l.88580322265625-11.808135986328125c13.9696044921875-2.002044677734375,13.37603759765625,4.544281005859375,13.37603759765625,4.544281005859375v.000030517578125h.00006103515625Z" />+ </g>+ <g id="A">+ <path id="A-2" class="cls-1" d="M838.18567247635292,304.266040596588027l-16.3323974609375,39.771362304686591h5.41107177734375s1.8758544921875-4.05828857421875,4.26568603515625-9.2529296875h17.56793212890625l2.70550537109375,7.3951416015625h7.21478271484375l-13.60888671875-37.877471923827216-7.2237548828125-.03607177734375.00006103515625-.000030517578125ZM847.52881212479042,330.013721260649618h-13.72607421875v-.081176757811591l7.9993896484375-17.3154296875,5.5914306640625,17.0899658203125c.07208251953125.0811767578125.09918212890625.18035888671875.13525390625.306610107420966v.000030517578125Z" />+ <path id="Vector-28-2" data-name="Vector-28" class="cls-5" d="M847.991855337681045,354.615482583714765c17.016845703125-4.376007080078125,27.4608154296875-21.57000732421875,23.25311279296875-38.400817871094659-4.2398681640625-16.736282348632812-21.244384765625-26.86663818359375-37.98065185546875-22.62677001953125-.12847900390625.03253173828125-.2567138671875.065887451171875-.384765625.100067138671875-17.016845703125,4.376007080078125-27.4608154296875,21.57000732421875-23.25311279296875,38.400817871094659,4.2398681640625,16.73626708984375,21.244384765625,26.86663818359375,37.98065185546875,22.62677001953125.12847900390625-.032562255859375.2567138671875-.06591796875.384765625-.100067138671875Z" />+ <path id="Vector-29-2" data-name="Vector-29" class="cls-5" d="M847.504672720493545,354.438297525121015c15.94500732421875-4.101409912109375,25.68914794921875-20.19696044921875,21.764892578125-35.947082519532159-3.95172119140625-15.653533935546875-19.844970703125-25.139694213867188-35.49853515625-21.18792724609375-.13494873046875.034072875976562-.26971435546875.069107055664062-.4041748046875.105117797851562-15.94500732421875,4.101409912109375-25.68914794921875,20.188095092773438-21.764892578125,35.938186645508722,3.9471435546875,15.654693603515625,19.837646484375,25.1455078125,35.4923095703125,21.1983642578125.1370849609375-.034576416015625.27386474609375-.07012939453125.410400390625-.106658935546875Z" />+ </g>+ <g id="X">+ <path id="X-2" class="cls-1" d="M784.54168701171875,254.953125l-10.511474609375,15.17938232421875-8.769775390625-14.308517456054688h-5.22528076171875l9.63189697265625,18.758712768554688-.870849609375.870880126953125-11.41717529296875,15.20550537109375h6.967041015625l8.76104736328125-11.608795166015625,8.8045654296875,11.608795166015625h6.09613037109375l-10.52020263671875-16.076385498046875,13.19384765625-19.629592895507812h-6.1396484375l-.0001220703125.000015258789062Z" />+ <path id="Vector-28-3" data-name="Vector-28" class="cls-5" d="M781.586395263671875,302.59051513671875c17.016845703125-4.376007080078125,27.4608154296875-21.57000732421875,23.25311279296875-38.40081787109375-4.2398681640625-16.736282348632812-21.244384765625-26.86663818359375-37.98065185546875-22.62677001953125-.12847900390625.03253173828125-.2567138671875.065887451171875-.384765625.100067138671875-17.016845703125,4.376007080078125-27.4608154296875,21.57000732421875-23.25311279296875,38.40081787109375,4.2398681640625,16.73626708984375,21.244384765625,26.86663818359375,37.98065185546875,22.62677001953125.12847900390625-.032562255859375.2567138671875-.06591796875.384765625-.100067138671875Z" />+ <path id="Vector-29-3" data-name="Vector-29" class="cls-5" d="M781.099212646484375,302.413330078125c15.94500732421875-4.101409912109375,25.68914794921875-20.19696044921875,21.764892578125-35.94708251953125-3.95172119140625-15.653533935546875-19.844970703125-25.139694213867188-35.49853515625-21.18792724609375-.13494873046875.034072875976562-.26971435546875.069107055664062-.4041748046875.105117797851562-15.94500732421875,4.101409912109375-25.68914794921875,20.188095092773438-21.764892578125,35.938186645507812,3.9471435546875,15.654693603515625,19.837646484375,25.1455078125,35.4923095703125,21.1983642578125.1370849609375-.034576416015625.27386474609375-.07012939453125.410400390625-.106658935546875Z" />+ </g>+ <g id="Y">+ <path id="Y-2" class="cls-1" d="M836.0894775390625,202.5277099609375l8.93194580078125,20.010391235351562,13.3846435546875-20.915130615234375h6.20892333984375l-16.95916748046875,28.197280883789062v12.73712158203125h-6.20892333984375v-13.650711059570312l-11.6373291015625-26.37896728515625h6.27984619140625l.00006103515625.000015258789062Z" />+ <path id="Vector-28-4" data-name="Vector-28" class="cls-5" d="M853.076800313971034,250.713122082075643c17.016845703125-4.376007080078125,27.4608154296875-21.57000732421875,23.25311279296875-38.40081787109375-4.2398681640625-16.736282348632812-21.244384765625-26.86663818359375-37.98065185546875-22.62677001953125-.12847900390625.03253173828125-.2567138671875.065887451171875-.384765625.100067138671875-17.016845703125,4.376007080078125-27.4608154296875,21.57000732421875-23.25311279296875,38.40081787109375,4.2398681640625,16.73626708984375,21.244384765625,26.86663818359375,37.98065185546875,22.62677001953125.12847900390625-.032562255859375.2567138671875-.06591796875.384765625-.100067138671875Z" />+ <path id="Vector-29-4" data-name="Vector-29" class="cls-5" d="M852.589617696783534,250.535937023481893c15.94500732421875-4.101409912109375,25.68914794921875-20.19696044921875,21.764892578125-35.94708251953125-3.95172119140625-15.653533935546875-19.844970703125-25.139694213867188-35.49853515625-21.18792724609375-.13494873046875.034072875976562-.26971435546875.069107055664062-.4041748046875.105117797851562-15.94500732421875,4.101409912109375-25.68914794921875,20.188095092773438-21.764892578125,35.938186645507812,3.9471435546875,15.654693603515625,19.837646484375,25.1455078125,35.4923095703125,21.1983642578125.1370849609375-.034576416015625.27386474609375-.07012939453125.410400390625-.106658935546875Z" />+ </g>+ </g>+ <g id="dpad">+ <path id="vector" class="cls-5" d="M444.43084716796875,379.22271728515625h-36.8817138671875c-4.9923095703125,0-9.039398193359375-4.23553466796875-9.039398193359375-9.460296630859375v-28.178863525390625c0-4.93109130859375-3.819580078125-8.928497314453125-8.531280517578125-8.928497314453125h-35.66998291015625c-4.711700439453125,0-8.531280517578125,3.9974365234375-8.531280517578125,8.928497314453125v28.178863525390625c0,5.22479248046875-4.047088623046875,9.460296630859375-9.039398193359375,9.460296630859375h-36.8819580078125c-4.711700439453125,0-8.531280517578125,3.9974365234375-8.531280517578125,8.928497314453125v33.3521728515625c0,4.93109130859375,3.819580078125,8.928497314453125,8.531280517578125,8.928497314453125h36.8819580078125c4.9923095703125,0,9.039398193359375,4.23553466796875,9.039398193359375,9.460296630859375v28.248138427734375c0,4.93109130859375,3.819580078125,8.928497314453125,8.531280517578125,8.928497314453125h35.66998291015625c4.711700439453125,0,8.531280517578125-3.9974365234375,8.531280517578125-8.928497314453125v-28.248138427734375c0-5.22479248046875,4.047088623046875-9.460296630859375,9.039398193359375-9.460296630859375h36.8817138671875c4.711700439453125,0,8.531280517578125-3.9974365234375,8.531280517578125-8.928497314453125v-33.3521728515625c0-4.93109130859375-3.819580078125-8.928497314453125-8.531280517578125-8.928497314453125Z" />+ <path id="vector-2" data-name="vector" class="cls-5" d="M452.962158203125,391.241455078125v-8.50836181640625c0-4.93109130859375-3.819580078125-8.928497314453125-8.531280517578125-8.928497314453125h-36.8817138671875c-4.992340087890625,0-9.039398193359375-4.23553466796875-9.039398193359375-9.460296630859375v-28.178863525390625c0-4.93109130859375-3.819580078125-8.928497314453125-8.531280517578125-8.928497314453125h-35.66998291015625c-4.711700439453125,0-8.531280517578125,3.9974365234375-8.531280517578125,8.928497314453125v28.178863525390625c0,5.22479248046875-4.047088623046875,9.460296630859375-9.039398193359375,9.460296630859375h-36.8819580078125c-4.711700439453125,0-8.531280517578125,3.9974365234375-8.531280517578125,8.928497314453125l-.000030517578125,9.294189453125" />+ <ellipse id="vector-3" data-name="vector" class="cls-5" cx="372.597686767578125" cy="402.357147216796875" rx="89.591949462890625" ry="82.841461181640625" />+ <circle id="vector-4" data-name="vector" class="cls-5" cx="372.143341064453125" cy="404.05487060546875" r="21.625335693359375" />+ <polygon id="vector-5" data-name="vector" class="cls-1" points="359.088653564453125 366.08233642578125 372.526153564453125 342.80596923828125 385.963653564453125 366.08233642578125 359.088653564453125 366.08233642578125" />+ <polygon id="vector-6" data-name="vector" class="cls-1" points="307.399200439453125 403.88995361328125 330.674591064453125 390.45245361328125 330.674591064453125 417.32843017578125 307.399200439453125 403.88995361328125" />+ <polygon id="vector-7" data-name="vector" class="cls-1" points="413.612091064453125 389.93878173828125 436.887481689453125 403.37628173828125 413.612091064453125 416.81378173828125 413.612091064453125 389.93878173828125" />+ <polygon id="vector-8" data-name="vector" class="cls-1" points="359.088653564453125 440.28350830078125 385.963653564453125 440.28350830078125 372.526153564453125 463.55889892578125 359.088653564453125 440.28350830078125" />+ </g>+ <g id="minus">+ <rect id="vector-9" data-name="vector" class="cls-1" x="438.632720947265625" y="268.441452961297728" width="24.706756591796875" height="4.0347900390625" />+ <path id="vector-10" data-name="vector" class="cls-4" d="M450.828047154705928,292.676390982797784c-13.864029951864723,0-25.14304240385809-10.660626880217023-25.14304240385809-23.764402419269572,0-13.103304434413985,11.279012451993367-23.763931314631009,25.14304240385809-23.763931314631009,13.864480068093144,0,25.143492520086511,10.660626880217023,25.143492520086511,23.763931314631009,0,13.103775539052549-11.279012451993367,23.764402419269572-25.143492520086511,23.764402419269572Z" />+ <path id="vector-11" data-name="vector" class="cls-4" d="M450.923812298414305,292.676390982797784c-13.458408256688017,0-24.407429200688057-9.887676388449108-24.407429200688057-22.041360543502378,0-12.153247207933418,10.94902094400004-22.040923596382527,24.407429200688057-22.040923596382527,13.458845203809688,0,24.407866147808818,9.887676388449108,24.407866147808818,22.040923596382527,0,12.15368415505327-10.94902094399913,22.041360543502378-24.407866147808818,22.041360543502378Z" />+ </g>+ <g id="plus">+ <rect id="vector-12" data-name="vector" class="cls-1" x="587.5982666015625" y="268.287413726146042" width="24.5906982421875" height="4.015838623046875" />+ <rect id="vector-13" data-name="vector" class="cls-1" x="597.885711669921875" y="257.721556792552292" width="4.015838623046875" height="24.5906982421875" />+ <path id="vector-14" data-name="vector" class="cls-4" d="M599.487305254446255,292.676390982797784c-13.864029951864723,0-25.14304240385718-10.660626880217023-25.14304240385718-23.764402419269572,0-13.103304434413985,11.279012451992457-23.763931314631009,25.14304240385718-23.763931314631009,13.864480068094053,0,25.143492520086511,10.660626880217023,25.143492520086511,23.763931314631009,0,13.103775539052549-11.279012451992457,23.764402419269572-25.143492520086511,23.764402419269572Z" />+ <path id="vector-15" data-name="vector" class="cls-4" d="M599.583070398153723,292.676390982797784c-13.458408256687107,0-24.407429200688057-9.887676388449108-24.407429200688057-22.041360543502378,0-12.153247207933418,10.949020944000949-22.040923596382527,24.407429200688057-22.040923596382527,13.458845203811507,0,24.407866147808818,9.887676388449108,24.407866147808818,22.040923596382527,0,12.15368415505327-10.949020943997311,22.041360543502378-24.407866147808818,22.041360543502378Z" />+ </g>+ <g id="capture">+ <ellipse id="vector-45" class="cls-2" cx="525.85683288463224" cy="270.525543212890625" rx="12.313385009765625" ry="11.638427734375" />+ <path id="vector-16" data-name="vector" class="cls-4" d="M525.188626348750404,292.676390982797784c-13.864029951864723,0-25.14304240385809-10.660626880217023-25.14304240385809-23.764402419269572,0-13.103304434413985,11.279012451993367-23.763931314631009,25.14304240385809-23.763931314631009,13.864480068092234,0,25.14349252008833,10.660626880217023,25.14349252008833,23.763931314631009,0,13.103775539052549-11.279012451996095,23.764402419269572-25.14349252008833,23.764402419269572Z" />+ <path id="vector-17" data-name="vector" class="cls-4" d="M525.28439149245969,292.676390982797784c-13.458408256688926,0-24.407429200688966-9.887676388449108-24.407429200688966-22.041360543502378,0-12.153247207933418,10.94902094400004-22.040923596382527,24.407429200688966-22.040923596382527,13.458845203807869,0,24.407866147808818,9.887676388449108,24.407866147808818,22.040923596382527,0,12.15368415505327-10.949020944000949,22.041360543502378-24.407866147808818,22.041360543502378Z" />+ </g>+ <g id="home">+ <ellipse id="vector-18" data-name="vector" class="cls-4" cx="525.191691404095764" cy="193.33551025390625" rx="37.2752685546875" ry="34.630645751953125" />+ <path id="vector-19" data-name="vector" class="cls-4" d="M524.885187425483309,221.29955753122249c-16.583715192618001,0-30.075314013975913-12.751905511608129-30.075314013975913-28.426228363054179,0-15.673759330940811,13.491598821357911-28.42566484254894,30.075314013975913-28.42566484254894,16.584253607448773,0,30.075852428806684,12.751905511608129,30.075852428806684,28.42566484254894,0,15.67432285144605-13.491598821357911,28.426228363054179-30.075852428806684,28.426228363054179Z" />+ <path id="vector-20" data-name="vector" class="cls-4" d="M524.9997386688201,221.29955753122249c-16.098523318963089,0-29.195396710301793-11.827326521373834-29.195396710301793-26.365180036421407,0-14.537330852688683,13.096873391338704-26.364657374062517,29.195396710301793-26.364657374062517,16.099045981322888,0,29.195919372660683,11.827326521373834,29.195919372660683,26.364657374062517,0,14.537853515047573-13.096873391337795,26.365180036421407-29.195919372660683,26.365180036421407Z" />+ <path id="vector-21" data-name="vector" class="cls-1" d="M543.408694021005431,193.959088904256532l.009942722588676.710819754368458c-.251524261762825,1.114546668969524-1.323725351061512,1.921138222041918-2.656891000186079,1.919822337341429l-1.953496511023332-.001928174620843.002386932090303,9.723202852090253c.000408121622968,1.66248942360744-1.466175786945314,3.010933827768895-3.380699944575099,3.01138147715119l-18.856914391113605.00440907785287c-1.984318717381029.000463968574877-3.459089322654108-1.343105015122092-3.457479461785624-3.079644519806607l.008953915667917-9.658491976890218-1.95316547067705.001076864950846c-1.333531337104432.00073523374067-2.40564009487025-.805134369722509-2.657072253437946-1.91982793806892l.009785620268303-.710758921251909c.127837374228875-.543113520780025.397777168313951-.952358172799904.860738508433315-1.360556860333418l14.593755637748473-12.867493203591948c1.176127891088981-1.037006375933743,2.799580910468649-1.037163281239373,3.975833272103046-.000053061135077l14.593821484884757,12.867478022621071c.462894726666491.408137630595775.732846972661719.817807110833201.860500939013946,1.360564269322822ZM529.886667905147988,205.038381872304853l-.003129038677798-3.762266327156794c.070817959385749-1.996580814604386-1.733609315902868-3.588813596625187-3.941133003836512-3.575730313548775-2.213292161070967.013117470964062-3.911052488227142,1.595995111367301-3.904078931650474,3.5767785907301l.013260275421999,3.766476145221532,7.835080698742786-.005258095246063Z" />+ </g>+ <g id="stick-right">+ <path id="Vector-18" class="cls-5" d="M762.4957275390625,411.0706787109375c1.77008056640625-40.198394775390625-30.516357421875-74.33221435546875-72.1075439453125-76.2376708984375s-76.760009765625,29.133209228515625-78.530029296875,69.29290771484375,30.516357421875,74.332183837890625,72.1075439453125,76.2376708984375,76.75994873046875-29.094512939453125,78.530029296875-69.29290771484375Z" />+ <path id="Vector-19" class="cls-5" d="M751.01458740234375,407.89813232421875c-2.5438232421875-32.62493896484375-29.3363037109375-61.980560302734375-63.837646484375-61.990234375-34.64642333984375,0-61.27447509765625,29.587799072265625-63.837646484375,61.400238037109375-3.09515380859375,38.515411376953125,29.452392578125,75.628265380859375,68.0064697265625,73.181182861328125,35.14935302734375-2.23431396484375,62.47381591796875-36.503570556640625,59.66888427734375-72.5911865234375h-.00006103515625Z" />+ <path id="Vector-20" class="cls-5" d="M701.35662841796875,478.60321044921875c30.58404541015625-7.873321533203125,49.3291015625-38.786224365234375,41.803955078125-69.03173828125s-38.3800048828125-48.36187744140625-68.97369384765625-40.517578125c-30.59375,7.844268798828125-49.3291015625,38.786224365234375-41.80401611328125,69.041412353515625s38.38006591796875,48.41021728515625,68.9737548828125,40.507904052734375Z" />+ <path id="Vector-21" class="cls-5" d="M688.3182373046875,466.02911376953125c21.9755859375-.357879638671875,39.5406494140625-16.559112548828125,39.23114013671875-36.194000244140625-.30950927734375-19.634918212890625-18.37750244140625-35.275146484375-40.33380126953125-34.917266845703125s-39.531005859375,16.559112548828125-39.23114013671875,36.19403076171875c.29986572265625,19.63494873046875,18.36785888671875,35.226776123046875,40.33380126953125,34.917236328125Z" />+ <path id="vector-22" class="cls-5" d="M664.24371337890625,373.0098876953125s5.1263427734375-14.082977294921875,24.3936767578125-12.02276611328125c5.48211669921875.334075927734375,10.4222412109375,3.42120361328125,13.12542724609375,8.202178955078125" />+ </g>+ <g id="stick-left">+ <path id="vector-23" data-name="vector" class="cls-5" d="M281.667724609375,276.102695445735662c1.7193603515625-39.047195434570312-29.642410278320312-72.203506469726562-70.042556762695312-74.054397583007812-40.400131225585938-1.85089111328125-74.561782836914062,28.298904418945312-76.281097412109375,67.308517456054688s29.642410278320312,72.2034912109375,70.042556762695312,74.05438232421875c40.400146484375,1.850921630859375,74.561737060546875-28.261322021484375,76.281097412109375-67.30853271484375v.000030517578125Z" />+ <path id="vector-24" data-name="vector" class="cls-5" d="M270.515411376953125,273.021030406673162c-2.470977783203125-31.690628051757812-28.496200561523438-60.205596923828125-62.009521484375-60.214996337890625-33.654266357421875,0-59.51971435546875,28.740463256835938-62.009521484375,59.641876220703125-3.00653076171875,37.41241455078125,28.60894775390625,73.46246337890625,66.058929443359375,71.08544921875,34.142776489257812-2.170318603515625,60.684722900390625-35.45819091796875,57.960113525390625-70.512359619140625v.000030517578125Z" />+ <path id="vector-25" data-name="vector" class="cls-5" d="M222.279510498046875,341.701267223079412c29.70819091796875-7.647857666015625,47.91644287109375-37.67547607421875,40.6068115234375-67.054840087890625-7.30963134765625-29.379348754882812-37.280868530273438-46.976898193359375-66.998458862304688-39.357269287109375-29.71759033203125,7.619644165039062-47.91644287109375,37.67547607421875-40.606857299804688,67.064239501953125,7.3095703125,29.388763427734375,37.280914306640625,47.02386474609375,66.998519897460938,39.347869873046875h-.000015258789062Z" />+ <path id="vector-26" data-name="vector" class="cls-5" d="M209.61456298828125,329.487277965266912c21.346282958984375-.347625732421875,38.4083251953125-16.08489990234375,38.107666015625-35.157501220703125s-17.851226806640625-34.26495361328125-39.178741455078125-33.917327880859375c-21.327529907226562.347625732421875-38.39892578125,16.08489990234375-38.107666015625,35.15753173828125s17.841827392578125,34.21795654296875,39.178741455078125,33.91729736328125Z" />+ <path id="vector-27" data-name="vector" class="cls-5" d="M186.229446411132812,239.131870250423162s4.979537963867188-13.679672241210938,23.69512939453125-11.678451538085938c5.325103759765625.324508666992188,10.123779296875,3.323226928710938,12.749542236328125,7.967300415039062" />+ </g>+ <g id="usb">+ <rect id="vector-28" data-name="vector" class="cls-4" x="489.741668701171875" y="87.160179138183594" width="71.825714111328125" height="16.353317260742188" rx="6.497344970703125" ry="6.497344970703125" />+ <path id="vector-29" data-name="vector" class="cls-4" d="M553.44415283203125,102.720787048339844v-.000015258789062c0-4.515838623046875-3.66082763671875-8.176651000976562-8.1766357421875-8.176651000976562h-40.435760498046875c-4.515838623046875,0-8.176666259765625,3.660812377929688-8.176666259765625,8.176651000976562v.000015258789062" />+ </g>+ <g id="pairing">+ <ellipse id="vector-30" data-name="vector" class="cls-4" cx="438.328857421875" cy="92.533050537109375" rx="12.394775390625" ry="5.791648864746094" />+ <ellipse id="vector-31" data-name="vector" class="cls-4" cx="438.328857421875" cy="91.248508453369141" rx="11.883208154881686" ry="4.507106781005859" />+ </g>+ <g id="Charge_LED" data-name="Charge LED">+ <ellipse id="vector-32" data-name="vector" class="cls-4" cx="610.15301513671875" cy="92.846145629882812" rx="9.58172607421875" ry="4.442718505859375" />+ </g>+ <g id="body">+ <path id="vector-33" data-name="vector" class="cls-3" d="M1031.511778445646996,370.72479248046875c-11.5166015625-58.32342529296875-24.79833984375-115.53106689453125-39.522705078125-172.984130859375l-8.362548828125-28.11383056640625-5.509521484375-18.8590087890625c-6.37890625-18.72344970703125-15.224853515625-34.30645751953125-30.678955078125-47.30072021484375.353271484375-10.45556640625-4.927734375-19.36279296875-13.135009765625-25.9573974609375-6.500732421875-11.89007568359375-27.467041015625-35.371337890625-34.02490234375-40.79510498046875-15.783447265625-13.05413818359375-39.630126953125-22.12054443359375-72.706298828125-19.76141357421875-6.724609375.4796142578125-13.2978515625,1.84814453125-19.140869140625,5.12261962890625-6.62890625,3.71502685546875-24.27880859375,24.64898681640625-25.546630859375,34.96319580078125-16.283935546875-2.314453125-25.3046875,9.30731201171875-40.82421875,15.53765869140625-2.60791015625,1.0469970703125-5.709716796875,1.8668212890625-9.15087890625,2.51177978515625-.587890625.10986328125-1.17578125.2137451171875-1.762939453125.31182861328125-.43896484375.0723876953125-.882568359375.14215087890625-1.3310546875.20941162109375-.18505859375.0281982421875-.369873046875.055908203125-.5546875.0830078125-2.541748046875.3662109375-5.228515625.65240478515625-8.010986328125.8758544921875-9.323974609375.69415283203125-18.647705078125.392822265625-28.189453125.37750244140625l-19.80029296875-.03179931640625c-.34912109375-.003662109375-.70361328125-.008056640625-1.045166015625-.0108642578125l.031005859375.00921630859375-20.1826171875-.03240966796875-55.296875-.68255615234375-130.826171875-.05908203125-88.244873046875.7222900390625c-20.40380859375.1669921875-53.117431640625,1.57550048828125-68.913818359375-4.76611328125-15.519287109375-6.2303466796875-25.471923828125-17.4127197265625-41.755859375-15.0982666015625-1.267822265625-10.314208984375-18.91796875-31.2481689453125-25.546875-34.96319580078125-5.8427734375-3.2745361328125-12.416015625-4.64300537109375-19.140625-5.1226806640625-33.076171875-2.35906982421875-56.9228515625,6.70733642578125-72.706298828125,19.761474609375-6.557861328125,5.42376708984375-27.524169921875,28.905029296875-34.02490234375,40.79510498046875-8.207275390625,6.5946044921875-13.48828125,15.50177001953125-13.135009765625,25.9573974609375-15.4541015625,12.9942626953125-23.54248046875,30.04632568359375-29.92138671875,48.769775390625-6.3203125,18.5517578125-11.49609375,36.61444091796875-16.394775390625,55.7794189453125-14.119873046875,55.2392578125-26.677978515625,110.15423583984375-37.57958984375,166.20050048828125-9.22042179107666,47.40350341796875-18.317589841783047,102.583984375-13.20064640045166,149.96148681640625,2.680908203125,24.82257080078125,10.499267578125,47.91424560546875,23.505127906799316,68.93365478515625,9.35302734375,15.116455078125,21.642578125,26.540771484375,37.165771484375,35.0604248046875,25.0517578125,13.7490234375,55.7568359375,22.1419677734375,81.556388854980469,7.7843017578125,25.982421875-14.4593505859375,48.29638671875-41.032958984375,67.66357421875-64.051025390625l28.89892578125-34.3463134765625c20.961669921875-24.91290283203125,53.49462890625-31.5123291015625,85.5419921875-31.115234375l121.9833984375,1.511474609375,184.264617919921875-.30413818359375,87.2607421875-1.076904296875c13.6630859375-.16864013671875,26.767578125,1.17413330078125,39.80615234375,4.44989013671875,18.05859375,4.53692626953125,33.10693359375,14.0762939453125,44.892822265625,28.2720947265625l27.080078125,32.617919921875,38.68408203125,42.2666015625c8.375244140625,9.151123046875,18.2041015625,15.8814697265625,28.969482421875,21.8270263671875,11.083984375,6.12158203125,22.680908203125,8.3424072265625,35.4912109375,7.2161865234375,28.86669921875-2.537841796875,62.231689453125-19.576904296875,79.2099609375-43.49072265625,15.488037109375-21.815185546875,24.5703125-46.90771484375,27.52783203125-73.7786865234375,5.386474609375-48.93707275390625-3.700439453125-106.2406005859375-13.36572265625-155.1875Z" />+ <path id="vector-34" data-name="vector" class="cls-5" d="M61.842592807219262,186.748123168945312s9.892818450927734-20.7705078125,16.283939361572266-29.355697631835938,19.776237487792969-20.021224975585938,19.776237487792969-20.021224975585938l5.100982666015625-33.41522216796875" />+ <g id="lb" data-name="left shoulder">+ <path id="uuid-c06a9c52-5459-4cf9-8e56-fdf99f151261" data-name="vector-21" class="cls-4" d="M264.648283572600121,61.481670379638672s.263214111328125,23.199115753173828-1.132781982421875,26.691272735595703-1.4788818359375,8.269660949707031-12.234390258789062,8.840362548828125-43.454055786132812.427215576171875-52.598068237304688,1.213127136230469-31.320999145507812,3.577484130859375-40.476333618164062,5.729537963867188-31.732887268066406,9.919319152832031-37.739410400390625,11.912391662597656c-4.68798828125,1.555564880371094-11.053993225097656,3.555061340332031-13.811882019042969-1.781700134277344" />+ <path id="uuid-db40406f-4cc6-4863-8d4c-83d07ad08741" data-name="vector-23" class="cls-5" d="M113.293325992033715,139.756454467773438s37.920158386230469-10.186065673828125,57.079811096191406-12.714080810546875,65.99224853515625-8.414131164550781,73.0042724609375-9.24078369140625,21.30511474609375-2.600883483886719,22.67962646484375-4.709747314453125,3.89117431640625-34.755233764648438,3.89117431640625-34.755233764648438c0,0-.70263671875-14.957687377929688-5.299957275390625-16.854949951171875s-24.289169311523438-2.439922332763672-34.268157958984375-2.035537719726562-36.294876098632812,1.688236236572266-50.959365844726562,5.593460083007812c-10.454971313476562,2.784202575683594-31.332672119140625,8.993858337402344-42.012222290039062,14.253227233886719-10.415519714355469,5.129341125488281-25.469314575195312,10.736434936523438-28.753181457519531,19.546272277832031-2.426483154296875,6.509681701660156-2.859275817871094,37.765106201171875-2.859275817871094,37.765106201171875,0,0,.485694885253906,3.841705322265625,7.497245788574219,3.152267456054688h.000030517578125Z" />+ <line id="uuid-ed9d2cd7-1ad9-40af-8816-79ede5b3ba0c" data-name="vector-24" class="cls-5" x1="116.118017764494653" y1="77.140411376953125" x2="112.33321246664309" y2="93.484123229980469" />+ <path id="uuid-556625bc-70ad-474b-b4d5-eb0d9ab3e6f7" data-name="vector-25" class="cls-5" d="M115.013678164885278,81.909225463867188s37.085197448730469-19.690032958984375,67.930259704589844-26.601108551025391c19.68841552734375-4.411342620849609,60.079193115234375-4.841243743896484,70.4136962890625-3.546947479248047,10.406890869140625,1.303359985351562,12.610687255859375,3.017436981201172,12.610687255859375,3.017436981201172l2.552642822265625,13.555126190185547" />+ <path id="uuid-3625f72c-0812-4654-8026-515ac744bf34" data-name="vector-26" class="cls-4" d="M268.520994754240746,66.5155029296875s2.505645751953125-.070747375488281,4.710968017578125.863510131835938,3.83050537109375,2.453285217285156,3.717864990234375,12.3675537109375-.88433837890625,28.468185424804688-1.68994140625,30.418785095214844c-1.90814208984375,4.620231628417969-3.83050537109375,9.688941955566406-24.898345947265625,11.491539001464844s-41.211105346679688,4.790107727050781-54.979141235351562,6.083755493164062c-18.87396240234375,1.773406982421875-36.4814453125,5.349136352539062-47.2054443359375,7.8863525390625-10.34393310546875,2.447296142578125-30.498870849609375,8.547927856445312-33.95135498046875,9.174758911132812s-17.759384155273438,5.706924438476562-16.322853088378906-7.430572509765625" />+ </g>+ <path id="vector-35" data-name="vector" class="cls-5" d="M988.075804324553246,186.777557373046875s-9.892822265625-20.7705078125-16.283935546875-29.355697631835938-19.7762451171875-20.021224975585938-19.7762451171875-20.021224975585938l-5.10101318359375-33.41522216796875" />+ <g id="rb" data-name="right shoulder">+ <path id="uuid-eb5aaf7f-a957-4ff9-bd00-be701e8fe239" data-name="vector-28" class="cls-5" d="M936.625059695646996,139.785888671875s-37.920166015625-10.186065673828125-57.079833984375-12.714080810546875-65.99224853515625-8.414131164550781-73.0042724609375-9.24078369140625-21.30511474609375-2.600883483886719-22.67962646484375-4.709747314453125-3.89117431640625-34.755233764648438-3.89117431640625-34.755233764648438c0,0,.70263671875-14.957687377929688,5.2999267578125-16.854949951171875s24.2891845703125-2.439922332763672,34.26812744140625-2.035537719726562,36.29486083984375,1.688236236572266,50.9593505859375,5.593460083007812c10.4549560546875,2.784202575683594,31.33270263671875,8.993858337402344,42.01220703125,14.253227233886719,10.41552734375,5.129341125488281,25.46929931640625,10.736434936523438,28.753173828125,19.546272277832031,2.426513671875,6.509681701660156,2.8592529296875,37.765106201171875,2.8592529296875,37.765106201171875,0,0-.4857177734375,3.841705322265625-7.49725341796875,3.152267456054688h.0001220703125Z" />+ <line id="uuid-ef6b7264-04d4-4641-b5e7-ad19e9b81305" data-name="vector-29" class="cls-5" x1="933.800413699553246" y1="77.169845581054688" x2="937.585203738615746" y2="93.513565063476562" />+ <path id="uuid-28a9e3ed-f519-4ec2-8f38-60c2690dca2a" data-name="vector-30" class="cls-5" d="M934.904722781584496,81.938667297363281s-37.085205078125-19.690032958984375-67.9302978515625-26.601108551025391c-19.68841552734375-4.411342620849609-60.07916259765625-4.841243743896484-70.4136962890625-3.546947479248047-10.4068603515625,1.303359985351562-12.6107177734375,3.017436981201172-12.6107177734375,3.017436981201172l-2.55267333984375,13.555126190185547" />+ <path id="uuid-be44504e-65f6-4ac7-8ae6-6263259299d1" data-name="vector-31" class="cls-4" d="M781.397398562834496,66.544944763183594s-2.505615234375-.070747375488281-4.71099853515625.863510131835938-3.83050537109375,2.453285217285156-3.71783447265625,12.3675537109375.88433837890625,28.468185424804688,1.68994140625,30.418785095214844c1.90814208984375,4.620231628417969,3.83050537109375,9.688949584960938,24.8983154296875,11.491539001464844s41.21112060546875,4.790107727050781,54.9791259765625,6.083755493164062c18.87396240234375,1.773399353027344,36.4814453125,5.349128723144531,47.2054443359375,7.886344909667969,10.34393310546875,2.447296142578125,30.49884033203125,8.547927856445312,33.95135498046875,9.174758911132812s17.7593994140625,5.706924438476562,16.3228759765625-7.430572509765625" />+ <path id="uuid-57cb6fba-2a37-4bbd-a295-4fc8f2a44405" data-name="vector-32" class="cls-4" d="M785.270140262053246,61.5111083984375s-.26324462890625,23.199111938476562,1.1328125,26.691268920898438,1.4788818359375,8.269660949707031,12.234375,8.840362548828125,43.45404052734375.427215576171875,52.59808349609375,1.213127136230469,31.32098388671875,3.577484130859375,40.476318359375,5.729537963867188,31.73291015625,9.919319152832031,37.7393798828125,11.912391662597656c4.68798828125,1.555564880371094,11.05401611328125,3.555061340332031,13.8118896484375-1.781700134277344" />+ </g>+ <path id="vector-36" data-name="vector" class="cls-4" d="M774.221922488615746,106.940765380859375l-2.66558837890625-.273384094238281c-.98443603515625-.100967407226562-1.97381591796875-.146873474121094-2.96337890625-.137519836425781l-161.42816162109375,1.526603698730469c-5.044921875.047706604003906-10.06915283203125-.651321411132812-14.90948486328125-2.074378967285156l-30.49615478515625-8.965934753417969" />+ <path id="vector-37" data-name="vector" class="cls-4" d="M489.933378787443871,95.777656555175781l-30.496185302734375,8.965934753417969c-4.840301513671875,1.423057556152344-9.864532470703125,2.122085571289062-14.909454345703125,2.074378967285156l-160.892425537109375-1.521537780761719c-1.346282958984375-.012733459472656-2.69207763671875.056198120117188-4.029998779296875.206398010253906l-3.313079833984375.3719482421875" />+ </g>+ <g id="press">+ <g id="press-lb">+ <path id="uuid-ec6583f7-b506-43e6-af3e-115e4be8a6a9" data-name="vector-23" class="cls-7" d="M113.101615905761719,139.756454467773438s37.920158386230469-10.186065673828125,57.079811096191406-12.714080810546875,65.99224853515625-8.414131164550781,73.0042724609375-9.24078369140625,21.30511474609375-2.600883483886719,22.67962646484375-4.709747314453125,3.89117431640625-34.755233764648438,3.89117431640625-34.755233764648438c0,0-.70263671875-14.957687377929688-5.299957275390625-16.854949951171875s-24.289169311523438-2.439922332763672-34.268157958984375-2.035537719726562-36.294876098632812,1.688236236572266-50.959365844726562,5.593460083007812c-10.454971313476562,2.784202575683594-31.332672119140625,8.993858337402344-42.012222290039062,14.253227233886719-10.415519714355469,5.129341125488281-25.469314575195312,10.736434936523438-28.753181457519531,19.546272277832031-2.426483154296875,6.509681701660156-2.859275817871094,37.765106201171875-2.859275817871094,37.765106201171875,0,0,.485694885253906,3.841705322265625,7.497245788574219,3.152267456054688h.000030517578125Z" />+ </g>+ <g id="press-rb">+ <path id="uuid-c374b92f-ad0d-4280-b33e-5a6fe2ab8220" data-name="vector-23" class="cls-7" d="M936.433265686035156,139.785888671875s-37.920158386230469-10.186065673828125-57.079811096191406-12.714080810546875-65.99224853515625-8.414131164550781-73.0042724609375-9.24078369140625-21.30511474609375-2.600883483886719-22.67962646484375-4.709747314453125-3.89117431640625-34.755233764648438-3.89117431640625-34.755233764648438c0,0,.70263671875-14.957687377929688,5.299957275390625-16.854949951171875s24.289169311523438-2.439922332763672,34.268157958984375-2.035537719726562,36.294876098632812,1.688236236572266,50.959365844726562,5.593460083007812c10.454971313476562,2.784202575683594,31.332672119140625,8.993858337402344,42.012222290039062,14.253227233886719,10.415519714355469,5.129341125488281,25.469314575195312,10.736434936523438,28.753181457519531,19.546272277832031,2.426483154296875,6.509681701660156,2.859275817871094,37.765106201171875,2.859275817871094,37.765106201171875,0,0-.485694885253906,3.841705322265625-7.497245788574219,3.152267456054688h-.000030517578125Z" />+ </g>+ <g id="press-lt">+ <path id="vector-38" data-name="vector" class="cls-7" d="M134.398222304100273,52.339018911180574l-13.821528247873175,17.177150942188746-5.034455028706361,9.282743577153269-.119421294873973,2.795269503013515s27.887347488085652-13.382893491429968,37.577905179760819-16.92693986087761,29.485968726174178-9.800692569021521,37.882219654577057-10.813111470568401,37.754068074216775-2.832063157899938,45.545218761975775-2.732138056671829,19.80376944510499.808259600958081,23.339957329949357,1.711646772178028,6.706671227606421,2.368088757762962,6.706671227606421,2.368088757762962c0,0-3.091145584284277-7.847766588340164-5.961720734508162-11.961530985568061s-12.285174923986233-15.7041167775742-15.134348508329822-18.052258366582464-12.802783803882448-7.122764665279647-18.017632106592828-7.700060446197313-19.667159990283835-1.738757944415738-24.710399331853296-.951237972460149-23.456089399917801,3.922848582173174-30.016198162942601,6.741940400399471-21.352738672083433,11.517036751874002-24.374049721188385,14.422322707786407-13.862219017000825,14.638114498443429-13.862219017000825,14.638114498443429Z" />+ </g>+ <g id="press-rt">+ <path id="vector-39" data-name="vector" class="cls-7" d="M915.509901573841489,51.980305167246115l13.821528247872266,17.177150942188746,5.034455028706361,9.282743577153269.119421294873973,2.795269503013515s-27.887347488085652-13.382893491429968-37.57790517975991-16.92693986087761c-9.690557691676077-3.544046369447642-29.485968726174178-9.800692569021521-37.882219654577057-10.813111470568401s-37.754068074216775-2.832063157899938-45.545218761977594-2.732138056671829c-7.791150687757181.099925101228109-19.80376944510499.808259600958081-23.339957329948447,1.711646772178028s-6.706671227606421,2.368088757762962-6.706671227606421,2.368088757762962c0,0,3.091145584285186-7.847766588340164,5.961720734509072-11.961530985568061s12.285174923985323-15.7041167775742,15.134348508328912-18.052258366582464,12.802783803881539-7.122764665279647,18.017632106593737-7.700060446197313c5.21484830270856-.577295780917666,19.667159990283835-1.738757944415738,24.710399331852386-.951237972460149s23.45608939991871,3.922848582173174,30.016198162942601,6.741940400399471,21.352738672083433,11.517036751874002,24.374049721187475,14.422322707786407c3.021311049105861,2.905285955912404,13.862219017002644,14.638114498443429,13.862219017002644,14.638114498443429Z" />+ </g>+ <g id="press-stick-left">+ <path id="vector-40" data-name="vector" class="cls-6" d="M222.29718493839755,341.772456096190581c29.747957452787887-7.658077426309319,47.980566403553894-37.725896945008571,40.661146440760604-67.144568455648368-7.3194199627942-29.418671510639797-37.330748578945531-47.03977560342355-67.088129907968323-39.409943628388646-29.757368240307187,7.629831975035813-47.980566403553894,37.725896945008571-40.661211884344993,67.153992331885092,7.3193545192089,29.428069209442583,37.330814022529921,47.086790274867781,67.088195351552713,39.400519752151922Z" />+ </g>+ <g id="press-stick-right">+ <path id="vector-41" data-name="vector" class="cls-6" d="M701.281653277588703,478.770977089900043c30.425281695279409-7.804097706110042,49.07300457564088-38.445196944794588,41.586947937092191-68.424782965435952-7.486056638550508-29.979586020639545-38.1807358687347-47.93667612236095-68.615613152556762-40.161365181869769-30.434877283820242,7.775310940491181-49.073004575642699,38.445196944794588-41.587003402921255,68.434406286891317,7.486001172719625,29.989153876264027,38.180791334563764,47.984570866316062,68.615724084214889,40.151769593328936l-.000055465829064-.000027732914532Z" />+ </g>+ <g id="press-face">+ <path id="A" class="cls-6" d="M847.42689497549145,354.881926679454409c15.769624263408332-4.056302237038835,25.406636174897358-19.97483423302765,21.525536540370013-35.551735633672251-3.90826327769355-15.481365303831808-19.626745756631863-24.863218516023153-35.108168978682443-20.954897320115379-.133443568989605.033708401541844-.266771301545305.068343494534929-.39975152480838.103963197194389-15.769624263408332,4.056302237039745-25.406636174895539,19.966088582458724-21.525536540370013,35.542961023993485,3.903745656869432,15.482523668148133,19.619448061452204,24.868981378487661,35.101971729600336,20.965235721620047.135528624754443-.034200706377305.27082557664653-.069357063308416.405890855674443-.105498029908631l.000057918216044-.00002895911166Z" />+ <path id="X" class="cls-6" d="M780.691910085537529,302.882695000438616c16.280605796895543-4.097841942538253,26.229874646889584-20.179392148821535,22.223017843505659-35.915813195426381-4.034883736925622-15.639906585489371-20.262712301977444-25.11783730785919-36.245729405794918-21.16949184798159-.137794213958841.034053601921187-.275412893888642.069043385338773-.412680505756725.105027861595772-16.280605796895543,4.097841942538253-26.229874646887765,20.170556935951936-22.22301784350384,35.906948726884366,4.030261340787547,15.641076812360552,20.255164338665054,25.123659186538134,36.239351669350071,21.179936122798608.139900622327332-.034550948341348.279625710621985-.070067333849693.419058242199753-.106578412199269l.000058511344832-.000029255671507h-.000058511344832Z" />+ <path id="B" class="cls-6" d="M916.782196825977735,301.253501080806018c16.109927336903638-3.988989714075615,25.954849596508211-19.643371959495198,21.990011212690661-34.961795700277435-3.992619914028182-15.224488566819673-20.050284372284295-24.450656745369088-35.865775491602108-20.6071750458932-.136327508937029.03315182600636-.272535011265063.067203701587459-.408382493760655.102245631702317-16.109927336901819,3.988989714073796-25.954849596506392,19.634791486881113-21.99001121269248,34.953185226009737,3.987999659544585,15.225628629614221,20.04278395916117,24.456327057690032,35.85941514127444,20.617345606090566.138427624609903-.033631852446888.276675239307224-.068193756122128.414622837479328-.103745714327488l.000060003303588-.000030001652704.000060003307226-.000030001651794Z" />+ <path id="Y" class="cls-6" d="M853.704039054237001,251.131091179999203c16.642439945144361-4.097841942539162,26.812881673597076-20.179392148822444,22.716970605393726-35.915813195426381-4.124581626521831-15.639906585489371-20.713074112953109-25.11783730785919-37.051372094547332-21.169491847982499-.140836803821003.034053601921187-.281556584955979.069043385339683-.421866786686223.105027861595772-16.64243994514618,4.097841942538253-26.812881673595257,20.170556935952845-22.716970605391907,35.906948726885275,4.119783696351078,15.641076812360552,20.70535061560804,25.123659186538134,37.044818824071626,21.179936122797699.143001723532507-.034550948341348.285827913032335-.070067333849693.428361545817097-.10657841219836l.000058511343013-.000029255671507Z" />+ </g>+ <g id="press-minus">+ <path id="Vector-35-3-2" class="cls-6" d="M456.788205182552701,292.105000888119321c12.782860418258679-3.295936383880871,20.78150751639896-15.521534385195991,17.859288714494141-27.30537514500611-2.922149761154287-11.783840759809209-15.630239046718089-18.674746277788472-28.447102034555428-15.37880989390851-12.816793947086808,3.295936383880871-20.78150751639987,15.514733871280441-17.859288714495051,27.30537514500611,2.922149761154287,11.790675794100025,15.657406582005933,18.667980284248188,28.447102034556337,15.37880989390851Z" />+ </g>+ <g id="press-capture">+ <path id="vector-42" data-name="vector" class="cls-6" d="M530.425796756448108,291.638817583031596c13.001966854140846-3.223959640069552,21.137751105303323-15.182492405456287,18.165482581258402-26.708944719133797-2.972268524043102-11.52645231367751-15.898175181506303-18.266841661359649-28.934756256890068-15.042918520735839-13.03650516700327,3.223959640069552-21.137751105300595,15.175849506132181-18.165482581257493,26.708944719135616,2.972268524043102,11.533131712448267,15.925805831796424,18.260235261479465,28.934756256889159,15.04291852073402Z" />+ </g>+ <g id="press-plus">+ <path id="vector-43" data-name="vector" class="cls-6" d="M604.899904291092753,291.629836308146878c12.879821688107768-3.25994037388773,20.939101568310434-15.352018580955701,17.994724210664572-27.007164123278926-2.94430733844456-11.655145542321407-15.748788367907764-18.470793204870461-28.662849444568565-15.21085283098364-12.913991057461317,3.25994037388682-20.939101568312253,15.345292337698993-17.994724210666391,27.007164123278926,2.944307338446379,11.661905928945089,15.776165874909566,18.464101104980728,28.662849444570384,15.21085283098364Z" />+ </g>+ <g id="press-home">+ <path id="vector-44" data-name="vector" class="cls-6" d="M531.507104439302566,220.321956358850912c15.70979508282835-3.920499726667913,25.53996192278646-18.462686872982886,21.948679929248101-32.479442102666326-3.591281993536541-14.01675522968344-19.209176357249817-22.213413235816915-34.960794521828575-18.292957894341271-15.751526447293145,3.920499726669732-25.539961922783732,18.454608767830905-21.948679929246282,32.479442102669964,3.591281993539269,14.024877720030418,19.242561448825654,22.205379515853565,34.960794521826756,18.292957894337633Z" />+ </g>+ <g id="press-pairing" class="cls-7">+ <ellipse id="uuid-c88d9853-07d1-4dac-a7b5-b23e1bbbb4bf" data-name="vector-17" cx="438.328857421875" cy="91.039119720458984" rx="12.394775390625" ry="4.297718048095703" />+ </g>+ <g id="press-dpad">+ <rect id="top" class="cls-6" x="349.153854370116278" y="335.743524211748081" width="45.979003906250909" height="40.611828885883369" rx="7.009460449218751" ry="7.009460449218751" />+ <rect id="left" class="cls-6" x="294.413406372070312" y="382.481119053849397" width="49.246978759765625" height="44.772391198956029" rx="5.8997802734375" ry="5.8997802734375" />+ <rect id="right" class="cls-6" x="402.232636054881368" y="382.481119053849397" width="47.6876220703125" height="44.772391198956029" rx="7.00946044921875" ry="7.00946044921875" />+ <rect id="bottom" class="cls-6" x="349.153854370116278" y="431.964965636232591" width="45.979003906250909" height="41.86431884765625" rx="5.899780273437483" ry="5.899780273437483" />+ </g>+ </g>+</svg>