Input-related functions: gamepads.
More...
|
| Gamepad (int gamepadNumber=0) |
|
int | GetAxisCount () const |
| Return gamepad axis count for a gamepad.
|
|
float | GetAxisMovement (int axis) const |
| Return axis movement value for a gamepad axis.
|
|
int | GetButtonPressed () const |
| Get the last gamepad button pressed.
|
|
std::string | GetName () const |
| Return gamepad internal name id.
|
|
int | GetNumber () const |
| Retrieves the number value for the object. More...
|
|
bool | IsAvailable () const |
| Detect if a gamepad is available.
|
|
bool | IsButtonDown (int button) const |
| Detect if a gamepad button is being pressed.
|
|
bool | IsButtonPressed (int button) const |
| Detect if a gamepad button has been pressed once.
|
|
bool | IsButtonReleased (int button) const |
| Detect if a gamepad button has been released once.
|
|
bool | IsButtonUp (int button) const |
| Detect if a gamepad button is NOT being pressed.
|
|
| operator int () const |
|
| operator std::string () const |
| Return gamepad internal name id.
|
|
Gamepad & | operator= (const Gamepad &gamepad) |
|
Gamepad & | operator= (int gamepadNumber) |
|
int | SetMappings (const std::string &mappings) |
|
void | SetNumber (int value) |
| Sets the number value for the object. More...
|
|
void | SetVibration (float leftMotor, float rightMotor, float duration) |
| Set gamepad vibration for both motors (duration in seconds)
|
|
|
static bool | IsAvailable (int number) |
| Detect if a gamepad is available.
|
|
|
void | set (int gamepadNumber) |
|
Input-related functions: gamepads.
Definition at line 13 of file Gamepad.hpp.
◆ GetNumber()
int raylib::Gamepad::GetNumber |
( |
| ) |
const |
|
inline |
Retrieves the number value for the object.
- Returns
- The number value of the object.
Definition at line 18 of file Gamepad.hpp.
◆ SetNumber()
void raylib::Gamepad::SetNumber |
( |
int |
value | ) |
|
|
inline |
Sets the number value for the object.
- Parameters
-
value | The value of which to set number to. |
Definition at line 18 of file Gamepad.hpp.