Navigation:  thinBasic Modules > TBDI (Direct Input) >

TBDI_JoyButton

Previous pageReturn to chapter overviewNext page

 

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