[Edit added 17 Sept 2015]
In the latest version of Google Chrome I am calling:
var arr = navigator.getGamepads();
which results in:
arr = [undefined, undefined, undefined, undefined];
I have a Logitech Pro connected in a usb port on my pc.
I am calling navigator.getGamepads when the user clicks a select box where he chooses either Keyboard, Joystick 1 or Joystick 2. I am calling navigator.getGamepads to see if an element of arr (ie a gamepad) has index 0 or index 1 for when the user selects Joystick 1 or Joystick 2 respectively. But obviously since each gamepad is undefined, I do not even get that far.
Anyone know why this is going wrong? Why is my Logitech pro not being recognised?
Edit: It is only working in Firefox. It does not work on the latest version of Google Chrome. It does not work in Internet Explorer 11.