summaryrefslogtreecommitdiffstats
path: root/micro.pinapelz.moe/posts/2025-12-04-procon2-hid-tool/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'micro.pinapelz.moe/posts/2025-12-04-procon2-hid-tool/index.html')
-rw-r--r--micro.pinapelz.moe/posts/2025-12-04-procon2-hid-tool/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/micro.pinapelz.moe/posts/2025-12-04-procon2-hid-tool/index.html b/micro.pinapelz.moe/posts/2025-12-04-procon2-hid-tool/index.html
index 137cf9a..921301e 100644
--- a/micro.pinapelz.moe/posts/2025-12-04-procon2-hid-tool/index.html
+++ b/micro.pinapelz.moe/posts/2025-12-04-procon2-hid-tool/index.html
@@ -104,7 +104,7 @@
</span></div><div class="e-content">
<p>Switch 2 Pro Controller is very comfy in my hands, but unfortunately it didn&rsquo;t work out of box on PC (Linux) for me like it&rsquo;s predacessor. Until there&rsquo;s actual better driver support for this thing in the kernel (or Valve does something), here&rsquo;s a hacky Python script to initialize HID-mode on the controller</p>
-<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#75715e"># I only tested this script on Linux w/ Steam but in theory it shoud work on Windows?</span>
+<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#75715e"># I only tested this script on Linux w/ Steam but in theory it shoud work on Windows?</span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">import</span> usb.core <span style="color:#75715e"># install pyusb first: pip install pyusb</span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">import</span> usb.util
</span></span><span style="display:flex;"><span><span style="color:#f92672">import</span> time
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage