TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: DualShock calibration in the browser using WebHID

125 点作者 al_al大约 1 年前
This website uses undocumented HID commands of both DS4 and DualSense to re-center and recalibrate DualShock analog sticks.

16 条评论

NelsonMinar大约 1 年前
Really nicely done!<p>Can recalibration help when the controller is connected to a Playstation? Does it store the calibration somehow in the controller? Or is this only useful on a PC?<p>I&#x27;d love to somehow restore my PS5 DualSense that&#x27;s fallen victim to stick drift. I looked once in Steam&#x27;s debug info and instead of the stick reading 0 at center it was reading about 20,000. Given the max is 32,767 I&#x27;ve lost 2&#x2F;3 of the useful range, so maybe there&#x27;s no fixing it with software.
评论 #39981744 未加载
评论 #39980839 未加载
评论 #39981494 未加载
评论 #39983495 未加载
solardev大约 1 年前
This is amazing!! Thank you! I don&#x27;t even have a PS controller and I&#x27;m grateful this exists.<p>I hope you&#x27;ll do one for Xbox Elite controllers and button remapping next :) It sucks having to boot into a Windows VM to remap them.
sumo89大约 1 年前
&quot;I noticed that many repair technicians were using my scripts to recalibrate controllers, which significantly reduced repair times and costs. However, many of them were also having a tough time setting up the environment to run the scripts: Python, libusb, Windows drivers, and all that complicated stuff: the user experience was completely off.<p>This led me to the idea of creating a multiplatform web UI that could simplify everything. I developed a prototype and shared the link on a Facebook group for repair technicians, where it was warmly (..really warmly!) received.&quot;<p>That&#x27;s so wholesome. Other people would have seen their software being used and decided they should be turning a profit from it.
评论 #39980423 未加载
评论 #39980320 未加载
terandle大约 1 年前
Helped out with the drift on my DualSense, now I don&#x27;t have to trash it, thanks man!
TehCorwiz大约 1 年前
It&#x27;s detecting my Sony original DS4 controller as a clone.
评论 #39981889 未加载
herpdyderp大约 1 年前
Calibration immediately errors out for my DualSense. Luckily mine doesn&#x27;t actually need any calibration, I was just trying it out :)
评论 #39981775 未加载
aidenn0大约 1 年前
Does this mean that a malicious website could intentionally miscalibrate any HID devices connected, or does it ask for permissions?
评论 #39983545 未加载
评论 #39983553 未加载
opan大约 1 年前
Are there any plans to support Switch Pro Controllers?
heystefan大约 1 年前
Can I detect analog stick drift with this?
sotix大约 1 年前
&gt; It is available only for Google Chrome, Chromium or compatiable browsers (e.g. Edge) because it uses WebHID, a javascript extension that can be used to send commands to a HID device.<p>I didn’t know about WebHID, but it’s interesting Firefox doesn’t support it. According to Mozilla’s position[0]:<p>&gt; This API, like WebUSB, provides access to generic devices. Though this API is limited to human interface devices (HID), the same concerns apply as WebUSB, namely that devices are generally not designed with access from arbitrary websites in their threat model.<p>[0]: <a href="https:&#x2F;&#x2F;mozilla.github.io&#x2F;standards-positions&#x2F;#webhid" rel="nofollow">https:&#x2F;&#x2F;mozilla.github.io&#x2F;standards-positions&#x2F;#webhid</a>
评论 #39985480 未加载
评论 #39982596 未加载
评论 #39982140 未加载
hnburnsy大约 1 年前
JFC, is there any host functionality that Chrome will not try and implement in the browser. No wonder it is so bloated and leaks your fingerprint in a million different ways.<p>Apple says they will not implement WebHID and 15 other &quot;features&quot; in WebKit...<p>&gt;Here are some examples of features we have decided to not yet implement due to fingerprinting, security, and other concerns, and where we do not yet see a path to resolving those concerns:<p><pre><code> Web Bluetooth Web MIDI API Magnetometer API Web NFC API Device Memory API Network Information API Battery Status API Web Bluetooth Scanning Ambient Light Sensor HDCP Policy Check extension for EME Proximity Sensor WebHID Serial API Web USB Geolocation Sensor (background geolocation) User Idle Detection</code></pre>
评论 #39985547 未加载
alickz大约 1 年前
cool
steelbrain大约 1 年前
Chrome is doing amazing work with these WebAPIs. Here&#x27;s a quick list of things enabled by Chrome being open-minded and allowing WebHID and WebUSB APIs to exist:<p>- Turn your Stadia controllers into bluetooth controllers: <a href="https:&#x2F;&#x2F;stadia.google.com&#x2F;controller&#x2F;index_en_GB.html" rel="nofollow">https:&#x2F;&#x2F;stadia.google.com&#x2F;controller&#x2F;index_en_GB.html</a><p>- Android Flash Tool: <a href="https:&#x2F;&#x2F;flash.android.com&#x2F;welcome" rel="nofollow">https:&#x2F;&#x2F;flash.android.com&#x2F;welcome</a><p>- fastboot.js - FastBoot API but entirely though the web: <a href="https:&#x2F;&#x2F;kdrag0n.github.io&#x2F;fastboot.js&#x2F;demo&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kdrag0n.github.io&#x2F;fastboot.js&#x2F;demo&#x2F;</a><p>- WebADB - Android debugging interface through the web: <a href="https:&#x2F;&#x2F;app.webadb.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;app.webadb.com&#x2F;</a><p>and here&#x27;s my favorite (because I used it in my RX-8)<p>- Node-Carplay - Carplay interface through a USB dongle in your browser with no external dependencies!!1! (<a href="https:&#x2F;&#x2F;github.com&#x2F;rhysmorgan134&#x2F;node-CarPlay">https:&#x2F;&#x2F;github.com&#x2F;rhysmorgan134&#x2F;node-CarPlay</a>)
评论 #39985168 未加载
评论 #39986022 未加载
评论 #39985487 未加载
评论 #39985094 未加载
the__alchemist大约 1 年前
Hey - total tangent, but... I&#x27;m playing through Horizon Forbidden West. It&#x27;s the first game on PC I&#x27;ve played that supports the DualSense (PS5 controller)&#x27;s haptic motors and adaptive triggers. They are something else when integrated properly with game events and sounds. It would be cool if this were integrated into more games!
评论 #39983120 未加载
评论 #39980024 未加载
mdrzn大约 1 年前
Helvetica with font-weight 300 makes the text really thin and hard to read at 100% zoom.
评论 #39980381 未加载
评论 #39980124 未加载
michaelmrose大约 1 年前
So a malicious website can brick controllers. Good for author but I&#x27;m surprised its even possible.
评论 #39984150 未加载
评论 #39982661 未加载