- Home /
one button doesn't work on gamepad after exporting to webgl
My attack button with xbox gamepad is rt and it works in unity, but once I port to webgl you can't attack with anything but the mouse.
Answer by WarmedxMints · Mar 02, 2019 at 08:55 PM
I could be wrong but I believe webgl uses xbox pads via directinput rather than xinput.
When accessing an Xbox pad via Xinput, the triggers are mapped to two axis and can be used separately. When accssed via direct input, the triggers are mapped to one axis so can only be used one at a time.
Your answer
Follow this Question
Related Questions
WebGL Recognizing Gamepad Triggers 0 Answers
Are the gamepad Inputs different between firefox and chrome in webGL? 0 Answers
PS4 controls not working in WebGL build 0 Answers
Can you create a Progressive Web Application (PWA) using Unity? 2 Answers
webgl, Unity time and system time mismatch with low FPS 1 Answer