Browse Source

hide extra modes for now

Jariullah Safi 4 months ago
parent
commit
489c0f7309
2 changed files with 6 additions and 4 deletions
  1. 1 1
      README.md
  2. 5 3
      docs/index.html

+ 1 - 1
README.md

@@ -32,7 +32,7 @@ Similarly you can hold all 4 back buttons and press Y to switch (teehee) over to
 | back-4 + A | Steam | Steam Controller Mode |
 | back-4 + B | Lizard | Lizard mode, even if Steam is open |
 | back-4 + X | Xbox | Xbox 360 Controller |
-| back-4 + Y | HORI | Switch Controller (works on the consoles) |
+| back-4 + Y | Swith Pro | Switch Controller + Gyro + Haptics |
 | WebUSB panel → mode 4 | Switch Pro + Gyro | PC only |
 | WebUSB panel → mode 5 | DualSense + Gyro + Trackpad | PC only |
 | WebUSB panel → mode 6 | DS4/HIDGYRO + Gyro + Trackpad | PC only |

+ 5 - 3
docs/index.html

@@ -59,8 +59,9 @@
         <button data-mode="4" class="modebtn">Switch Pro + gyro</button>
         <button data-mode="5" class="modebtn">PS5 DualSense</button>
         <button data-mode="6" class="modebtn">HID gyro (DS4)</button>
-        <button data-mode="7" class="modebtn">PS5 (game/clean)</button>
-        <button data-mode="8" class="modebtn">DS4 (game/clean)</button>
+        <!-- modes 7/8 (PS5/DS4 "game/clean") hidden from the panel for now; still reachable via serial console -->
+        <!-- <button data-mode="7" class="modebtn">PS5 (game/clean)</button> -->
+        <!-- <button data-mode="8" class="modebtn">DS4 (game/clean)</button> -->
       </div>
       <p class="note">Switching reboots the copycat and re-enumerates USB (~2 s). WebUSB works in every mode, including Steam/Lizard with Steam running (Chrome claims the vendor interface; Steam keeps the HID slots). Switch HORIPAD + WebUSB is PC-only.</p>
       <div class="row"><label>Persist last mode</label>
@@ -176,7 +177,8 @@ for(const sel of document.querySelectorAll("select.back")){
   for(const [c,n] of BTN_CODES){ if(c===0) continue; const o=document.createElement("option"); o.value=c; o.textContent=n; sel.appendChild(o); }
 }
 for(const sel of document.querySelectorAll("select.chord")){
-  MODE_NAMES.forEach((n,i)=>{ const o=document.createElement("option"); o.value=i; o.textContent=n; sel.appendChild(o); });
+  MODE_NAMES.forEach((n,i)=>{ if(i===7||i===8) return;   // hide PS5/DS4 "game/clean" modes from the panel for now
+    const o=document.createElement("option"); o.value=i; o.textContent=n; sel.appendChild(o); });
 }
 // Switch Pro report-rate options (0=66Hz, 1=120Hz default, 2=full ~250Hz)
 { const sel=document.getElementById("swRate");