![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Public Member Functions | |
| Gamepad (int gamepadNumber=0) | |
| int | GetAxisCount () const |
| Return gamepad axis count for a gamepad. More... | |
| float | GetAxisMovement (int axis) const |
| Return axis movement value for a gamepad axis. More... | |
| int | GetButtonPressed () const |
| Get the last gamepad button pressed. More... | |
| std::string | GetName () const |
| Return gamepad internal name id. More... | |
| int | GetNumber () const |
| bool | IsAvailable () const |
| Detect if a gamepad is available. More... | |
| bool | IsButtonDown (int button) const |
| Detect if a gamepad button is being pressed. More... | |
| bool | IsButtonPressed (int button) const |
| Detect if a gamepad button has been pressed once. More... | |
| bool | IsButtonReleased (int button) const |
| Detect if a gamepad button has been released once. More... | |
| bool | IsButtonUp (int button) const |
| Detect if a gamepad button is NOT being pressed. More... | |
| bool | IsName (const std::string &name) const |
| Check gamepad name (if available) More... | |
| operator int () const | |
| operator std::string () const | |
| Return gamepad internal name id. More... | |
| Gamepad & | operator= (const Gamepad &gamepad) |
| Gamepad & | operator= (int gamepadNumber) |
| void | SetNumber (int value) |
Static Public Member Functions | |
| static bool | IsAvailable (int number) |
| Detect if a gamepad is available. More... | |
Public Attributes | |
| int | number |
Protected Member Functions | |
| void | set (int gamepadNumber) |
Definition at line 34 of file Gamepad.hpp.
|
inline |
Definition at line 36 of file Gamepad.hpp.
References set().
|
inline |
Return gamepad axis count for a gamepad.
Definition at line 128 of file Gamepad.hpp.
References number.
|
inline |
Return axis movement value for a gamepad axis.
Definition at line 135 of file Gamepad.hpp.
References number.
|
inline |
Get the last gamepad button pressed.
Definition at line 121 of file Gamepad.hpp.
|
inline |
Return gamepad internal name id.
Definition at line 79 of file Gamepad.hpp.
References number.
Referenced by operator std::string().
|
inline |
Definition at line 41 of file Gamepad.hpp.
|
inline |
|
inlinestatic |
|
inline |
Detect if a gamepad button is being pressed.
Definition at line 100 of file Gamepad.hpp.
References number.
|
inline |
Detect if a gamepad button has been pressed once.
Definition at line 93 of file Gamepad.hpp.
References number.
|
inline |
Detect if a gamepad button has been released once.
Definition at line 107 of file Gamepad.hpp.
References number.
|
inline |
Detect if a gamepad button is NOT being pressed.
Definition at line 114 of file Gamepad.hpp.
References number.
|
inline |
|
inline |
Definition at line 53 of file Gamepad.hpp.
References number.
|
inline |
Definition at line 43 of file Gamepad.hpp.
References set().
|
inline |
Definition at line 48 of file Gamepad.hpp.
References set().
|
inlineprotected |
Definition at line 140 of file Gamepad.hpp.
References number.
Referenced by Gamepad(), and operator=().
|
inline |
Definition at line 41 of file Gamepad.hpp.
| int raylib::Gamepad::number |
Definition at line 39 of file Gamepad.hpp.
Referenced by GetAxisCount(), GetAxisMovement(), GetName(), IsAvailable(), IsButtonDown(), IsButtonPressed(), IsButtonReleased(), IsButtonUp(), IsName(), operator int(), and set().
1.8.17