joyZ method
Gets the current value of a specified analog trigger on a given gamepad port.
Returns the trigger value, typically ranging from 0.0 (released) to 1.0 (fully pressed). Returns 0.0 if the port or trigger is invalid.
Implementation
double joyZ(int port, Trigger trigger) {
int index = trigger.index;
if (port < 0 || port >= _input.length) return 0.0;
if (index < 0 || index >= _input[port].trigger.length) return 0.0;
return _input[port].trigger[index];
}