Result = JoystickAxisZ(#Joystick [, Pad [, Mode]])Description
Returns the joystick Z axis state. This axis is often referred as trigger on new gamepad.
#Joystick The joystick to use. The first joystick index is 0. The number of available joysticks is returned by InitJoystick(). Pad (optional) The pad to use, if the joystick has multiple pads. The first pad index is 0. Mode (optional) The mode can be one of the following value:#PB_Absolute: Returned value is either -1, 0 (no movement) or 1 (default) #PB_Relative: Returned value is between the range -1000 and 1000. If the gamepad doesn't support relative movement, the result will be -1000, 0 or 1000.
Returns the joystick Z axis value, depending of the specified mode.
ExamineJoystick() has to be called before this function is used, to update the current joystick state.
ExamineJoystick(), JoystickAxisX(), JoystickAxisY()