TBDI_JoyButton

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > TBDI (Direct Input) >

TBDI_JoyButton

 

Description

 

Check if a button is pressed.

 

Syntax

 

n = TBDI_JoyButton(JoyID, ButtonNumber)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

JoyID

Numeric

No

Joystick ID number

ButtonNumber

Numeric

No

The button number to check if pressed

 

Remarks

 

Restrictions

 

See also

 

Examples