Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2019.4
2020.3
2020.3.15f1
2021.1
2021.2
Issue ID
1378054
Regression
No
Controller buttons mapped incorrectly when project is built for WebGL platform
Reproduction steps:
1. Open the "Hangar" Scene in the project attached by the user
2. Connect the DualShock 4 controller
3. Enter the Play mode and press the Circle button on the controller, notice that Console shows dialog log "Button 2 = Circle"
4. In the Build Settings make sure that Scenes/Hangar is added in the Scenes in Build and Platform is set to the WebGL
5. Build and Run
6. Press Shift+Ctrl+J to open the Console in the browser
7. Press the Circle button on the controller
8. Observe the Console
Expected result: Console shows dialog log "Button 2 = Circle"
Actual result: Console shows dialog log "Button 1 = X"
Reproducible with: 2019.4.32f1, 2020.3.23f1, 2021.1.28f1, 2021.2.2f1
Could not test with: 2022.1.0a15 (Building crashes)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Active Targets section text in Graph Inspector is truncated despite available space
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
Resolution Note (fix version 2022.2):
The mappings follow the W3 spec's definition of standard gamepad mapping. While it is indeed inconsistent with the other platforms, since the issue is only in the old input system, and changing it will break existing users' project, we won't change it, but will communicate this information either in the docs or in a forum post.