Helper class for Input-related functions: gamepads.
More...
#include <GamepadHelper.hpp>
Helper class for Input-related functions: gamepads.
◆ getGamepadAxisCount()
| int raylib::helper::input::GamepadHelper::getGamepadAxisCount |
( |
const int & |
gamepad | ) |
|
|
static |
Get gamepad axis count for a gamepad.
- Parameters
-
| gamepad | the gamepad to get the axis count from |
- Returns
- the axis count of the gamepad
◆ getGamepadAxisMovement()
| float raylib::helper::input::GamepadHelper::getGamepadAxisMovement |
( |
const int & |
gamepad, |
|
|
const GamepadAxis & |
axis |
|
) |
| |
|
static |
Get axis movement value for a gamepad axis.
- Parameters
-
| gamepad | the gamepad to get the axis movement from |
| axis | the axis to get the movement from |
- Returns
- the axis movement value
◆ getGamepadButtonPressed()
| int raylib::helper::input::GamepadHelper::getGamepadButtonPressed |
( |
| ) |
|
|
static |
Get the last pressed gamepad button.
- Returns
- the last pressed gamepad button
◆ getGamepadName()
| std::string raylib::helper::input::GamepadHelper::getGamepadName |
( |
const int & |
gamepad | ) |
|
|
static |
Get the name of a gamepad.
- Parameters
-
| gamepad | the gamepad to get the name from |
- Returns
- the name of the gamepad
◆ isGamepadAvailable()
| bool raylib::helper::input::GamepadHelper::isGamepadAvailable |
( |
const int & |
gamepad | ) |
|
|
static |
Check if a gamepad is available.
- Parameters
-
| gamepad | the gamepad to check |
- Returns
- true if the gamepad is available
◆ isGamepadButtonDown()
| bool raylib::helper::input::GamepadHelper::isGamepadButtonDown |
( |
const int & |
gamepad, |
|
|
const GamepadButton & |
button |
|
) |
| |
|
static |
Check if a gamepad button is down.
- Parameters
-
| gamepad | the gamepad to check |
| button | the button to check |
- Returns
- true if the button is down
◆ isGamepadButtonPressed()
| bool raylib::helper::input::GamepadHelper::isGamepadButtonPressed |
( |
const int & |
gamepad, |
|
|
const GamepadButton & |
button |
|
) |
| |
|
static |
Check if a gamepad button is pressed (once)
- Parameters
-
| gamepad | the gamepad to check |
| button | the button to check |
- Returns
- true if the button is pressed
◆ isGamepadButtonReleased()
| bool raylib::helper::input::GamepadHelper::isGamepadButtonReleased |
( |
const int & |
gamepad, |
|
|
const GamepadButton & |
button |
|
) |
| |
|
static |
Check if a gamepad button is released (once)
- Parameters
-
| gamepad | the gamepad to check |
| button | the button to check |
- Returns
- true if the button is released
◆ isGamepadButtonUp()
| bool raylib::helper::input::GamepadHelper::isGamepadButtonUp |
( |
const int & |
gamepad, |
|
|
const GamepadButton & |
button |
|
) |
| |
|
static |
Check if a gamepad button is NOT being pressed.
- Parameters
-
| gamepad | the gamepad to check |
| button | the button to check |
- Returns
- true if the button is NOT being pressed
◆ setGamepadMappings()
| int raylib::helper::input::GamepadHelper::setGamepadMappings |
( |
const std::string & |
mappings | ) |
|
|
static |
Set internal gamepad mappings (SDL_GameControllerDB)
- Parameters
-
| mappings | the mappings to set |
- Returns
- the number of mappings set
The documentation for this class was generated from the following files: