Search Unity

Linux 5.1.0f3 WebGL player: mapped controls not working correctly for either keyboard or controller

Discussion in 'Linux' started by Cottage_Pi, Feb 6, 2016.

  1. Cottage_Pi

    Cottage_Pi

    Joined:
    Dec 21, 2014
    Posts:
    55
    I am building a game using Linux version 5.1.0f3 of Unity that makes use of keyboard controls and an xbox controller. In a stand alone player for Linux the keys and the controller correspond to what has been mapped in the project settings. However, when I build a WebGL version of the player some weird stuff happens. I describe it below.

    Some of the buttons work for the controller: x, y, a, b, left and right bumpers.
    The left and right analogues are behaving as if they're mapped to random axes and some are inverse. The right trigger buttons are calling the functions mapped to the start button.

    What this suggests to me is the joystick axis numbers are different for WebGL, is this true?

    Some of the buttons work for the keyboard: number buttons, arrow keys.
    However the w, s, a, d axes are behaving like with the controller and the + and - keys aren't working.

    Any clues what is going on here?
     
  2. AurimasBlazulionis

    AurimasBlazulionis

    Joined:
    Aug 13, 2013
    Posts:
    209
    I have an idea. Download the latest build which is 5.3.2 and then complain about something that doesn't work!
     
  3. wildtux

    wildtux

    Joined:
    Feb 12, 2016
    Posts:
    1
    What a stupid answer...
    Aren't aware that Linux build is 5.3.0f3 ?
     
  4. LukaKotar

    LukaKotar

    Joined:
    Sep 25, 2011
    Posts:
    394
    Actually, the latest build is currently 5.3.2.
     
  5. Cottage_Pi

    Cottage_Pi

    Joined:
    Dec 21, 2014
    Posts:
    55
    So sorry I couldn't find the latest build... and by the way, I am not "complaining".

    Thanks LukaKotar for being helpful!
     
  6. longroadhwy

    longroadhwy

    Joined:
    May 4, 2014
    Posts:
    1,551
    Cottage_Pi likes this.
  7. Cottage_Pi

    Cottage_Pi

    Joined:
    Dec 21, 2014
    Posts:
    55
  8. FuzzyQuills

    FuzzyQuills

    Joined:
    Jun 8, 2013
    Posts:
    2,871
    That, and it really is the newest version, not one behind like it was before. ;)
     
  9. Cottage_Pi

    Cottage_Pi

    Joined:
    Dec 21, 2014
    Posts:
    55
    So, the keyboard inputs work with WebGL in the latest version. But not with an xbox controller. I have seen this reported as a bug and it is apparently fixed in 5.4. Looks like I just have to wait until 5.4 is released for Linux to see if it has been fixed.
     
    Last edited: Mar 12, 2016