<vizjoy:joystick>.isButtonDown

Returns whether a button is down

 

<vizjoy:joystick>.isButtonDown(
    button    

)

 

button

1-based index number


Remarks

This command will return whether the given joystick button is currently down.

Return Value

True/False

Example

if joy.isButtonDown(1):
    print 'button 1 is down'
if joy.isButtonDown(3):
    print 'button 3 is down'