|
ChaiLove API 2.1.0
|
Provides an interface to connected joysticks. More...
#include <joystick.h>
Public Member Functions | |
| std::vector< Joystick * > & | getJoysticks () |
| Gets a list of connected Joysticks. | |
| int | getJoystickCount () |
| Gets the number of connected joysticks. | |
| bool | isDown (int joystick, int button) |
| Checks if a button number is pressed on a joystick. | |
| bool | isDown (int joystick, const std::string &button) |
| Checks if a button is pressed on a joystick. | |
| Joystick * | operator[] (int joystick) |
| Retrieve the given joystick. | |
Provides an interface to connected joysticks.
| int love::joystick::getJoystickCount | ( | ) |
Gets the number of connected joysticks.
| std::vector< Joystick * > & love::joystick::getJoysticks | ( | ) |
Gets a list of connected Joysticks.
| bool love::joystick::isDown | ( | int | joystick, |
| const std::string & | button ) |
Checks if a button is pressed on a joystick.
| joystick | The joystick to be checked. |
| button | The button to be checked. |
| bool love::joystick::isDown | ( | int | joystick, |
| int | button ) |
Checks if a button number is pressed on a joystick.
| joystick | The joystick to be checked. |
| button | The button to be checked. |