Skip to content

JoyXDir

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

Blitz3DBlitzPlusBlitzBasic

JoyXDir

JoyXDir: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 JoyX, but as a direction only: -1 when pushed left past a third of the range, 1 when pushed right past a third, otherwise 0. Handy for menus.

Related Commands

JoyChanged, JoyDeviceConnected, JoyDeviceCount, JoyUDir, JoyVDir, JoyX, JoyYDir, JoyZDir

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally