-1
\$\begingroup\$

I need the gamepad Input on my game, and I'm trying the Input.getAxis("Horizontal") function and the documentation says that returns a value from -1 to 1, 0 is the central value, when I not move the stick left or right. Well, I'm on linux-editor on mint 17.3 and all is ok, the joystick configuration on mint is correct, but in Unity I having a 0 to maximum stick move to left and 1 to maximum stick moved to right on my gamepad (logitech rumblepad2). Center is 0.56.

What is the problem?? Is a linux editor problem, is a bad Unity configuration...

\$\endgroup\$
4
  • \$\begingroup\$ Could you post the Unity configuration you're using? \$\endgroup\$
    – hobnob
    Commented Nov 7, 2016 at 14:40
  • \$\begingroup\$ Input configuration? \$\endgroup\$
    – Jordi4321
    Commented Nov 7, 2016 at 16:44
  • \$\begingroup\$ what do you mean by "top left moved" and "top right moved"? That confuses me greatly. \$\endgroup\$
    – Gnemlock
    Commented Nov 7, 2016 at 23:55
  • \$\begingroup\$ Yes, top-left and top-right I mean when I move the stick at the maximum at right or left. My english is limited xD...I edited the question. Sorry. \$\endgroup\$
    – Jordi4321
    Commented Nov 8, 2016 at 6:34

1 Answer 1

0
\$\begingroup\$

This is probably caused by the drivers in your connected gamepad. It seems that the values are on the right side of the Cartesian plane, which is different to how Unity processes input.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .