'How do I get Joystick Axis to be recognized on a Unity WebGL Build

I am currently trying to set up a controller with my WebGL Unity Game to make an object move left and right. The controller is an iNNEXT SNES USB controller. I have mapped the Horizontal D-Pad controls to:

Type: Joystick Axis 
Axis: 4th axis (Joysticks) 
Joy Num: Get Motion from all Joysticks 

enter image description here The controls work in the Unity Editor. When using the D-Pad, the player moves left and right. However, once I build the game for WebGL the Joystick controls are no longer recognized and the object no longer moves left or right. I also tried adding print statement for "Input.GetAxis("Horizontal")" and I receive -1 or 1 while testing in Unity, but when I build the game for WebGL, it stays on 0.

void Update () {

    if (Input.GetAxis("HorizontalDPAD") > 0){
        MoveRight();
    }else if(Input.GetAxis("HorizontalDPAD") < 0){
        MoveLeft();
    }
}

public void MoveLeft(){
   transform.position += Vector3.left * movementSpeed * Time.deltaTime;
}

public void MoveRight(){
   transform.position += Vector3.right * movementSpeed * Time.deltaTime;
} 

I am not receiving any error messages, and Input.GetAxis("HorizontalDPAD") works in the Unity Editor. It just appears that the Joystick controls are not being recognized in WebGL. Please let me know if you have a solution, or any ideas to test.



Solution 1:[1]

Try removing cross-platform input in edit -> project settings -> script execution order

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 RiveN