0 Favourites

Bad controller indexes on webkit browsers

  • 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)

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Just a side note: on initial "Run layout" (on webkit browsers, Firefox works fine) all gamepad buttons are inactive until A, B, X or Y are pressed. But I have no .capx to prove it so might be lying.

  • Construct 2 reports gamepads in the same order the browser reports them. So it must be Chrome that is not reporting gamepads in the correct order. I'd report this to Google instead. (Note Chrome and Opera are now based on Blink, not webkit).

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
221 16,418
dripple's avatar
dripple
Unread hot topic
0 Favourites
Airconsole controller maker
171 12,605
DaniellMesquito's avatar
DaniellMesquito
Unread hot topic
116 14,201
mrwiseguy's avatar
mrwiseguy