Live data from Hacker News

Show HN: DualShock calibration in the browser using WebHID

blog.the.al

41–50 of 82 posts

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

#41

Hey - total tangent, but... I'm playing through Horizon Forbidden West. It's the first game on PC I've played that supports the DualSense (PS5 controller)'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!

Funny, I wish most games gave more options to turn them down. Some newer games are REALLY excessive with it. I encountered one game recently that felt it was necessary (no way to disable) to make the controller vibrate every single time you used the d-pad in the UI.

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

#43

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…

The important part is how smooth the remaining values are.

Even a hundred discrete values should be enough for an axis.

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

#44

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.

I have revived my CH Mach III twice now with DeoxIT on the potentiometers. I've owned that stick for over 30 years at this point.

P.S. I wish someone made a modern joystick with a similar feel, but more than two buttons.

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

#45
post #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),…

What is the chrome team's threat model for this? Why are they ok with it?

Chrome enables Chrome OS. These security holes are allowed into the spec to ensure the Chrome machines are not totally hobbled.

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

#46
post #42

Does this mean that a malicious website could intentionally miscalibrate any HID devices connected, or does it ask for permissions?

The site has to request permission to access a device, then the user has to select the device from a permission dialog to grant access.

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

#47
post #42

Does this mean that a malicious website could intentionally miscalibrate any HID devices connected, or does it ask for permissions?

it does ask for permission, but a malicious website could ask it for a valid reason and then brick it, yup. On the other side, a controller should not be brickable via HID commands...

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

#50
post #36
post #35

Earlier quoted context omitted.

Would be nice to see the same sort of aggressive policing in Brave posts, that are constantly rife with attacks and misinformation. Aside from that, in this case its pretty obvious you're letting yourself be used as a suppression vehicle by FOSS crazies ramming the flag button. Would have been nice to see a more neutral action being taken instead of choosing a side.

Your comment was completely unrelated to the Show HN - a place for people to discuss and receive feedback on their work. No side-choosing needed here other than that of the original author and the people who want to talk about the thing being showhn.

WebHID is related, especially because usually on every single post involving WebHID you’ll have people bringing up how it’s not a real standard.

That also segues into something I’ve mentioned before: moderation needs to be consistent. Randomly picking when to pull the trigger and when not is a bunch of crap.

Post reply on HN