Offroaders123 / gamepad-state

Diving into making reactive state handling with the Gamepad API!
MIT License
1 stars 0 forks source link

Firefox Polling Speed #1

Open Offroaders123 opened 3 months ago

Offroaders123 commented 3 months ago

This might only be an issue in non-secure contexts, but in Firefox, the lower precision of performance.now() seems to be making the poll diff slower, because the timestamp isn't able to properly express that something changed, until the next number rolls over. So I can try to work around this by one way or another, we'll see. Right now, using the timestamp as a diff between Gamepad object changes works really well, and from the docs, it seems to be how one is meant to see if any key changes were made since the last reference.