Skip to content

JoyRoll

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

Blitz3DBlitzPlusBlitzBasic

JoyRoll

JoyRoll: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 roll in degrees, -180 if the joystick has no such axis, or 0 if there is no joystick.

Description

The rotation around the long axis of the stick, from -180 to 180. On many joysticks this is the twist of the handle or a rudder pedal.

Related Commands

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

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally