High performance 2D Mice these days have 1000Hz sampling rate and 10000+ DPI. Inferring mouse input by checking what pixel the pointer is on isn't receiving the maximum precision of these 2D Mice. Is there a way that JavaScript can tap into the full precision?
While it wouldn't be practical for JavaScript itself to collect all 1000 samples every second, the browser could collect them all. Then when JavaScript queries, say every 16ms, the browser could give it the average of the last 16 samples. Like GamePad API it could give axis data directly without having to infer.
Why? WebGL games and simulations could really take advantage of it.
Aucun commentaire:
Enregistrer un commentaire