whoisryosuke/react-gamepads

Uncaught TypeError: Cannot read properties of undefined (reading 'buttons')

Opened this issue · 0 comments

Hi !
I'm trying to create an app that uses a controller, but when I try to use
gamepads[0].buttons[4].pressed;,
the website breaks and I get this error.
What should I do ?