|
ChaiLove API
2.0.0
|
Provides an interface to connected joysticks. More...
Public Member Functions | |
| std::vector< Joystick * > & | getJoysticks () |
| Gets a list of connected Joysticks. More... | |
| int | getJoystickCount () |
| Gets the number of connected joysticks. More... | |
| bool | isDown (int joystick, int button) |
| Checks if a button number is pressed on a joystick. More... | |
| bool | isDown (int joystick, const std::string &button) |
| Checks if a button is pressed on a joystick. More... | |
| Joystick * | operator[] (int joystick) |
| Retrieve the given joystick. More... | |
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. |