w3c / gamepad

Gamepad
https://w3c.github.io/gamepad/
Other
139 stars 49 forks source link

Clarify what "up" and "down" mean for input axes #94

Closed jacobcdewitt closed 4 years ago

jacobcdewitt commented 5 years ago

The spec says the following about the axes attribute for GamepadButton https://www.w3.org/TR/gamepad/#dom-gamepadbutton "As appropriate, -1.0 SHOULD correspond to "up" or "left", and 1.0 SHOULD correspond to "down" or "right""

For a controller with a joystick that is perpendicular to the ground, does "up" mean the joystick is being pushed away from the user holding the controller and "down" mean the joystick is being pulled towards the user? In that case, the words "forwards" and "backwards" might be more accurate.

marcoscaceres commented 5 years ago

@jacobcdewitt seem like reasonable suggestions... PR? 🙏

knyg commented 4 years ago

@marcoscaceres @jacobcdewitt PR created.