|
|
| JoyButton | ||
| Status = JoyButton(DeviceIndex, ButtonIndex) | ||
| Parameters: DeviceIndex = The Index of the joystick you wish to query ButtonIndex = The Index of the button you wish to query (1 to 10) |
||
| Returns: Status = The status of this button (0= not pressed, 1=pressed) |
||
JoyButton checks if a joystick button is pressed. JoyButton returns a true (1) if the button is pressed and a false(0) if it's not. FACTS: * Supports up to 10 buttons (1 to 10) buttons * Joysticks can not be detected while the program is running, they must be connected before. Mini Tutorial: The following example show a basic joystick implementation.
This example would output.
|
| Related Info: | JoyDown | JoyLeft | JoyRight | JoyStatus | JoyUp : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |