Skip to content
Narta Xaymar Dirks edited this page Oct 30, 2026 · 7 revisions

Blitz3DBlitzPlusBlitzBasic

JoyZ

JoyZ:Float32 port:Int32=0
Parameter Mode Type Default Description
port In Int32 0 The joystick to ask, counted from 0. Defaults to 0.

Returns: The axis position from -1 to 1, -1 if the joystick has no such axis, or 0 if there is no joystick.

Description

The third axis of the joystick, from -1 to 1. On a joystick it is usually the throttle slider, on a gamepad often a trigger. The yaw, pitch and roll commands read the axes after the five position axes, and scale them to degrees.

Related Commands

JoyChanged, JoyDeviceConnected, JoyDeviceCount, JoyDeviceName, JoyDown, JoyHat, JoyHit, JoyZDir

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally