Skip to content

JoyUDir

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

Blitz3DBlitzPlusBlitzBasic

JoyUDir

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

Returns: -1, 0 or 1.

Description

Like JoyU, but as a direction only: -1 when the axis is pushed more than a third of the way to its low end, 1 when it is pushed more than a third of the way to its high end, otherwise 0.

Related Commands

JoyChanged, JoyDeviceConnected, JoyDeviceCount, JoyU, JoyVDir, JoyXDir, JoyYDir, JoyZDir

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally