joyY method
Gets the current Y-axis value of a specified joystick on a given gamepad port.
Returns the Y-axis value, typically ranging from -1.0 (up) to 1.0 (down). Note: Y-axis conventions can vary (some APIs use positive up). This implementation follows the standard where positive Y is often down for screen coordinates. Returns 0.0 if the port or joystick is invalid.
Implementation
double joyY(int port, Joystick joystick) {
int index = joystick.index;
if (port < 0 || port >= _input.length) return 0.0;
if (index < 0 || index >= _input[port].yAxis.length) return 0.0;
return _input[port].yAxis[index];
}