Problem Description
Controller indexes switch places on webkit browsers
Attach a Capx
https://www.dropbox.com/s/zwkj0wwrbifl2 ... .capx?dl=0
Description of Capx
4 platformer objects set to react (jump) on A button (Xbox360 controller) pressed
Steps to Reproduce Bug
- Get 4 xBox 360 controllers
- Open attached capx
- run in Chrome or Opera
- press A on different controllers and observe behavior
Observed Result
Most of the time index 1 is not detected; 0 works fine, 2 is 1 and 3 is 2.
So it goes something like this:
Pressing A on controller with index 0 makes the plaformer with instance variable "Player" set to 0 to jump;
Pressing A on controller with index 1 does nothing at all;
Pressing A on controller with index 2 makes the plaformer with instance variable "Player" set to 1 to jump;
Pressing A on controller with index 3 makes the plaformer with instance variable "Player" set to 2 to jump;
I've also gotten a result where index 0 is not detected and 0,1,2 were offset to 1,2,3 and 3 was not working becase there's no index 4.
Expected Result
Pressing A on controller with index 0 to make the plaformer with instance variable "Player" set to 0 to jump;
Pressing A on controller with index 1 to make the plaformer with instance variable "Player" set to 1 to jump;
Pressing A on controller with index 2 to make the plaformer with instance variable "Player" set to 2 to jump;
Pressing A on controller with index 3 to make the plaformer with instance variable "Player" set to 3 to jump;
Affected Browsers
- Chrome: YES
- FireFox: NO
- Internet Explorer: YES (Does not work at all (controllers are not supported))
Operating System and Service Pack
Windows 8.1
Construct 2 Version ID
Release 212.2 (64bit)