tomayac / joy-con-webhid

Use the Nintendo Switch Joy-Cons via the WebHID API
https://tomayac.github.io/joy-con-webhid/demo/
Apache License 2.0
139 stars 19 forks source link

Control the refresh rate #23

Closed JerryI closed 11 months ago

JerryI commented 11 months ago

Great project! Is it possible to control the refresh-rate on a hardware level? Or is it coded somewhere

tomayac commented 11 months ago

The controllers send low-level events whenever they are observed, and the library surfaces them to you as high-level events. This line is where this happens.