|
ChaiLove API 2.1.0
|
Represents a physical joystick. More...
#include <Joystick.h>
Public Member Functions | |
| std::string | getName () |
| Gets the name of the joystick. | |
| bool | isDown (int button) |
| Checks if a button on the Joystick is pressed. | |
| bool | isDown (const std::string &button) |
| Checks if a button on the Joystick is pressed. | |
| bool | isConnected () |
| Gets whether the Joystick is connected. | |
| int | getID () |
| Gets the joystick's unique identifier. | |
Represents a physical joystick.
Gets the joystick's unique identifier.
| std::string love::Types::Input::Joystick::getName | ( | ) |
Gets the name of the joystick.
Gets whether the Joystick is connected.
| bool love::Types::Input::Joystick::isDown | ( | const std::string & | button | ) |
Checks if a button on the Joystick is pressed.
| button | The button to be checked |
| bool love::Types::Input::Joystick::isDown | ( | int | button | ) |
Checks if a button on the Joystick is pressed.
| button | The index of the button to be checked |