Hello! I have a problem with making an angle variable from gamepad right stick. I made my character to move on left stick with angle(0, 0, Gamepad.Axis(0, 0), Gamepad.Axis(0, 1)) and it works well but I can't make to work angle(0, 0, Gamepad.Axis(0, 2), Gamepad.Axis(0, 3)) [right stick angle] normally. The only two numbers I get is 0 or 180 and it seems like left-right moving of stick doesn't work. Gamepad isn't broken (tested in games). So I can't understand what is the problem. Help, please!
I believe this is a bug, I reported it here:
Filtered input doesn't work, but you should be able to use raw input.
What is raw input? I saw it but haven't understood what is it.
Tried angle(0, 0, Gamepad.RawAxis(0, 2), Gamepad.RawAxis(0, 3)) - result is the same - Axis X doesn't work and I have only 90 and -90
Develop games in your browser. Powerful, performant & highly capable.
For me the right Y axis worked at index 5.
The only thing different indexes changing is what angle of stick what number will give the main problem is that left-right stick movings doesn't work at all
I'm not sure I understand your problem..
Try this file:
https://www.dropbox.com/s/e1ynw17s50ldx ... .capx?dl=0
I tested it on two different gamepads - on both I can control the blue circle with the right stick.
Thanks a lot! Now I have only one problem: when I move stick near to end right or end left position I get 0 variable and then I tested it awfully says that right analog X and Y positions are equal to 0.
I don't know.. Could be a problem with your gamepad.
Tested with x360ce in Chrome - not working but in x360ce shows that stick works well