#include <RayGamepad.hpp>
|
| enum | Button {
BUTTON_UNKNOWN = -1
, BUTTON_A
, BUTTON_B
, BUTTON_X
,
BUTTON_Y
, BUTTON_LEFT_BUMPER
, BUTTON_RIGHT_BUMPER
, BUTTON_BACK
,
BUTTON_START
, BUTTON_LEFT_THUMB
, BUTTON_RIGHT_THUMB
, BUTTON_DPAD_UP
,
BUTTON_DPAD_RIGHT
, BUTTON_DPAD_DOWN
, BUTTON_DPAD_LEFT
, BUTTON_LENGTH
} |
| enum | Axis {
AXIS_LEFT_X
, AXIS_LEFT_Y
, AXIS_RIGHT_X
, AXIS_RIGHT_Y
,
AXIS_LEFT_TRIGGER
, AXIS_RIGHT_TRIGGER
, AXIS_LENGTH
} |
◆ RayGamepad()
| RayGamepad::RayGamepad |
( |
int | index = 0 | ) |
|
|
inline |
◆ ~RayGamepad()
| RayGamepad::~RayGamepad |
( |
| ) |
|
|
overridedefault |
◆ getAxisMovement()
| float RayGamepad::getAxisMovement |
( |
Axis | axis | ) |
const |
|
inlineoverridevirtual |
the movement of an axis, in [-1, 1]
- Parameters
-
- Returns
- float
Implements graphic::IGamepad.
◆ isAvailable()
| bool RayGamepad::isAvailable |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isButtonDown()
| bool RayGamepad::isButtonDown |
( |
Button | button | ) |
const |
|
inlineoverridevirtual |
◆ isButtonPressed()
| bool RayGamepad::isButtonPressed |
( |
Button | button | ) |
const |
|
inlineoverridevirtual |
◆ isButtonReleased()
| bool RayGamepad::isButtonReleased |
( |
Button | button | ) |
const |
|
inlineoverridevirtual |
notice if the button is released
- Parameters
-
- Returns
- bool
Implements graphic::IGamepad.
◆ isButtonUp()
| bool RayGamepad::isButtonUp |
( |
Button | button | ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: