#include <Controller.hpp>
Definition at line 34 of file Controller.hpp.
static int jop::Controller::controllersPresent |
( |
| ) |
|
|
static |
Check how many controllers are connected.
- Returns
- Number of controllers
static float jop::Controller::getAxisOffset |
( |
const int |
index, |
|
|
const int |
axis |
|
) |
| |
|
static |
Get an axis offset.
- Parameters
-
index | The index if the controller |
axis | The axis |
- Returns
- The axis offsed, between -1 and 1
static bool jop::Controller::isButtonDown |
( |
const int |
index, |
|
|
const int |
button |
|
) |
| |
|
static |
Check if a controller button is currently pressed.
- Parameters
-
index | The controller index |
button | The controller button |
- Returns
- True if currently pressed
static bool jop::Controller::isControllerPresent |
( |
const int |
index | ) |
|
|
static |
Check if specific controller is connected.
- Parameters
-
index | The index of the controller to check |
- Returns
- True if connected
The documentation for this class was generated from the following file: