-
Notifications
You must be signed in to change notification settings - Fork 93
Uncaught Error: Invalid gamepad info #159
Comments
Hmm, I have an xbox360 controller too and for me the right-thumbstick is defined as the seventh button. So I can do I am not sure why we would have different behavior, but we can easily support more axes. Just need to change around here: |
unfortunatly, that doesn't appear to fix it. for me, gamepad-button #7 is the start-button. I should note that I'm using a 'slightly-offbrand' Disney Tron branded controller. And, while I was once able to use the original code I posted above in an earlier version of superpowers, it very well could just be something wonky going on with the controller. When I get some time, I'll try and modify the parts you referenced and rebuild to see what happens... |
Can you post of screenshot of what you see on html5gamepad.com? Sounds like your gamepad is fairly unconventional in its mappings. Also are you on Windows? As @bilou84 said, we can increase from 4 to 8 axes or whatever if that works for you. |
When I attempt to use the code:
Sup.Input.getGamepadAxisValue( 0, 4 )
[ which should return the value of the right-thumbstick on a wired xbox360 controller ], I am met with the error:Uncaught Error: Invalid gamepad info
.I receive this error when I set the 'axis' in
Sup.Input.getGamepadAxisValue( gamepad: number, axis: number )
to anything above 3.However, according to this site: www.html5gamepad.com, it shows that I should be able to go up to axis-7.
The text was updated successfully, but these errors were encountered: