Live data from Hacker News

Show HN: DualShock calibration in the browser using WebHID

blog.the.al

21–30 of 82 posts

Re: Show HN: DualShock calibration in the browser using WebHID

#21
post #17
post #14

Earlier quoted context omitted.

You could acquaint yourself with the timeline of WebHID. Google presented a "spec" that wasn't even a spec. They were asked to create a better spec. Instead they just shipped WebHID, and several months later dumped several hundred pages of specifications saying "there". Whatever your position on hardware standards are, this is not how standards are presented. Edit: the status of WebHID is literally "not a W3C Standar…

I am acquainted with the process. Did you just miss entire premise of the article, how WebHID made the lives of a bunch of working people much better? Would you rather make these people have a much more difficult time now so Firefox diehard can have a “proper” WebHID in 5 years..?

My phone app would work much better if Android would drop all of its security measures and just let my app access everything on the system. That would make the lives of the bunch of people who use my app much better.

It doesn't mean it's a good idea.

Re: Show HN: DualShock calibration in the browser using WebHID

#22

Really nicely done! 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? I'd love to somehow restore my PS5 DualSense that's fallen victim to stick drift. I looked once in Steam'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've lost 2/3 of the…

i fixed a busted analog stick by opening it up and cleaning the sensor thanks to some youtube video.

Re: Show HN: DualShock calibration in the browser using WebHID

#24

Really nicely done! 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? I'd love to somehow restore my PS5 DualSense that's fallen victim to stick drift. I looked once in Steam'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've lost 2/3 of the…

Yes, that's the point! I suggest to try calibration in temporary mode (center calibration has a checkbox in the wizard). See with https://hardwaretester.com/gamepad if the controller is calibrated correctly, in that case redo calibration in permanent mode. That flashes the calibration in the controller.

Re: Show HN: DualShock calibration in the browser using WebHID

#25

Calibration immediately errors out for my DualSense. Luckily mine doesn't actually need any calibration, I was just trying it out :)

What is the build date of your firmware? Sometimes updating the firmware to the latest version solves any issue

Re: Show HN: DualShock calibration in the browser using WebHID

#27
post #14
post #8

[flagged]

You could acquaint yourself with the timeline of WebHID. Google presented a "spec" that wasn't even a spec. They were asked to create a better spec. Instead they just shipped WebHID, and several months later dumped several hundred pages of specifications saying "there". Whatever your position on hardware standards are, this is not how standards are presented. Edit: the status of WebHID is literally "not a W3C Standar…

There is probably a point of view in here where Google is being stupid, lazily pushing like WebHID without any kind of standards support - like they've done countless times before. But Mozilla is also being stupid about clutching impractically tight to their ideals in a way that harms their users.

Mozilla has done it many times in the past when they tried to only support open-source codecs or refused to implement the DRM black box. In practice, at the time that meant on Firefox you used Adobe Flash for any video playback, and Chrome had a native `` implementation. Even now, due to DRM differences, Netflix maxes out at 720p in Firefox, but 1080p in Chrome, and 4K in Edge.

Re: Show HN: DualShock calibration in the browser using WebHID

#28
post #14
post #8

[flagged]

You could acquaint yourself with the timeline of WebHID. Google presented a "spec" that wasn't even a spec. They were asked to create a better spec. Instead they just shipped WebHID, and several months later dumped several hundred pages of specifications saying "there". Whatever your position on hardware standards are, this is not how standards are presented. Edit: the status of WebHID is literally "not a W3C Standar…

That's literally the W3C standards process!!! W3C standard are supposed to start with a single vendor implementation, then a draft spec, then collaboration and multiple implementation from other vendors, and THEN a final W3C Standard Specification. The very reason why this spec is not on the standard track is because Mozilla refuses to implement it in Firefox.

Re: Show HN: DualShock calibration in the browser using WebHID

#29
post #14
post #8

[flagged]

You could acquaint yourself with the timeline of WebHID. Google presented a "spec" that wasn't even a spec. They were asked to create a better spec. Instead they just shipped WebHID, and several months later dumped several hundred pages of specifications saying "there". Whatever your position on hardware standards are, this is not how standards are presented. Edit: the status of WebHID is literally "not a W3C Standar…

WebHID is work done under Web Platform Incubator Community Group, wicg. http://wicg.io

There's tons of work done with this group, and it is very much a genuine, multi-party attempt to standardize out specs.

I have a hard time believing this is an innocent mistake you've made, portraying such a stark "Google couldn't care less" dark-world fantasy. Over something very normal very boring and very commonly done by everyone in the web community. Yes, the web is bigger than w3c today. It has been for a long long long time now. HTML5 isnt w3c either, but no one is saying the sky is falling because of that.

Re: Show HN: DualShock calibration in the browser using WebHID

#30
> 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.

I didn’t know about WebHID, but it’s interesting Firefox doesn’t support it. According to Mozilla’s position[0]:

> 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.

[0]: https://mozilla.github.io/standards-positions/#webhid

Post reply on HN